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: drop cost images in favour of color styling
[sheet.git]
/
sc.plp
diff --git
a/sc.plp
b/sc.plp
index 8b0e5e84ab27a02627c14eec6074be7ca97e7aed..5d82a8d0ba657cb66c1d525c1c900f5f854d32cb 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-95,10
+95,11
@@
sub coltoggle {
<thead><tr>
<th></th>
<th><:= coltoggle('name', '') :></th>
<thead><tr>
<th></th>
<th><:= coltoggle('name', '') :></th>
- <th class="val min"
><img src="/minerals.png" alt="min">
</th>
- <th class="val gas">
<img src="/gas.png" alt="gas">
</th>
+ <th class="val min"
title=minerals>cost
</th>
+ <th class="val gas">
gas
</th>
<th class="val time"><:= coltoggle(qw'build cost') :></th>
<th class="val time"><:= coltoggle(qw'build cost') :></th>
- <th class="unit" colspan="4"><:= coltoggle(qw'size size') :></th>
+ <th class="unit" colspan="2"><:= coltoggle(qw'size size') :></th>
+ <th class="unit" colspan="2">attr</th>
<th class="val unit-hp">HP</th>
<th class="val unit-shield">shield</th>
<th class="val unit-armor" title="armor">⛨</th>
<th class="val unit-hp">HP</th>
<th class="val unit-shield">shield</th>
<th class="val unit-armor" title="armor">⛨</th>
@@
-114,7
+115,7
@@
sub showrange {
my ($min, $max) = @_;
return '' if not defined $min;
$_ &&= int($_ + .5) for $min, $max; # round halves up
my ($min, $max) = @_;
return '' if not defined $min;
$_ &&= int($_ + .5) for $min, $max; # round halves up
- return $min if not defined $max or $min == $max;
+ return $min
|| '-'
if not defined $max or $min == $max;
return "$min-$max";
}
return "$min-$max";
}