git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sc: colourise negative supply values (providers)
[sheet.git]
/
sc.plp
diff --git
a/sc.plp
b/sc.plp
index e1132b855564884470427bcdb21b7a1ad5ebf15c..09ae989cc26ea4b03dc1cf0bb9c62be3a07926a3 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-265,8
+265,9
@@
sub showrange {
$_->{attr}->{massive}
&& '<span class="unit-massive" title="massive">⚓</span>',
),
$_->{attr}->{massive}
&& '<span class="unit-massive" title="massive">⚓</span>',
),
- '<td class="val unit">' . (
- defined $_->{pop} && $_->{pop} == .5 ? '½' : $_->{pop}
+ sprintf('<td class="val unit%s">%s',
+ defined $_->{pop} && $_->{pop} < 0 && ' unit-supply',
+ defined $_->{pop} && $_->{pop} == .5 ? '½' : $_->{pop},
),
'<td class="unit unit-type">' . join('', grep { $_ }
(defined $_->{organic} ? !$_->{organic} : $_->{attr}->{mech})
),
'<td class="unit unit-type">' . join('', grep { $_ }
(defined $_->{organic} ? !$_->{organic} : $_->{attr}->{mech})