X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/493605e6b15347cd72e4a9e35fafcabece98383d..bb07d710e95b75eb0089b07165616e825f406aae:/sc.plp?ds=inline
diff --git a/sc.plp b/sc.plp
index ede1e5a..9a9a12a 100644
--- a/sc.plp
+++ b/sc.plp
@@ -28,6 +28,7 @@ Unit properties as seen or measured in Brood War
border-collapse: separate;
border-spacing: 0;
margin: 0 auto;
+ white-space: nowrap;
}
.units th, .units td {
border: 0;
@@ -51,10 +52,6 @@ Unit properties as seen or measured in Brood War
margin: 0;
text-align: center;
}
- .units th.cat {
- font-size: 70%;
- text-transform: uppercase;
- }
.units thead th, .units tfoot th {
font-size: 70%;
font-weight: normal;
@@ -66,6 +63,10 @@ Unit properties as seen or measured in Brood War
margin-left: 0.2em;
vertical-align: middle;
}
+ .unit-composed {
+ color: #C88;
+ font-size: 70%;
+ }
.unit {
text-align: center;
white-space: nowrap;
@@ -126,10 +127,17 @@ Unit properties as seen or measured in Brood War
display: table-cell;
}
.legend {
- min-width: 15em;
- padding-left: 2em;
+ min-width: 20em;
text-align: left;
}
+ .units {
+ float: left;
+ padding-bottom: 1em;
+ margin-right: 2em;
+ }
+ .footer {
+ clear: left;
+ }
<:
@@ -145,8 +153,8 @@ sub coltoggle {
<:= coltoggle('name', '') :>
-
-
+
+
<:= coltoggle(qw'build cost') :>
<:= coltoggle(qw'size size') :>
HP
@@ -192,8 +200,8 @@ sub showrange {
elsif ($type eq 'implosive') {
$min /= 4;
}
- $min = int($min + .5); # round halves up
}}
+ $_ = int($_ + .5) for $min, $max; # round halves up
return $min == $max ? $min : "$min-$max";
}
@@ -239,12 +247,12 @@ sub showrange {
}
my $units = do 'sc-units.inc.pl';
- die "Cannot open unit data: $_\n" for $! || $@ || ();
+ die "Cannot open unit data: $_\n" for $@ || $! || ();
my $grouped = !exists $get{order};
if (exists $get{order}) {
$get{order} ||= '';
if ($get{order} eq 'size') {
- $_->{order} = $_->{unit}*8 + $_->{size} + $_->{hp}/512 + $_->{min}/8192 for @$units;
+ $_->{order} = $_->{unit}*8 + $_->{suit} + $_->{hp}/512 + $_->{min}/8192 for @$units;
}
elsif ($get{order} eq 'cost') {
$_->{order} = $_->{gas}*1.5 + $_->{min} + $_->{unit}/8 + $_->{build}/256/8 for @$units;
@@ -261,26 +269,32 @@ sub showrange {
printf '