X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/493605e6b15347cd72e4a9e35fafcabece98383d..821e607e7760124765b4a5b00687990153d001ba:/sc.plp diff --git a/sc.plp b/sc.plp index ede1e5a..7207117 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; @@ -145,8 +142,8 @@ sub coltoggle { <:= coltoggle('name', '') :> - min - gas + min + gas <:= coltoggle(qw'build cost') :> <:= coltoggle(qw'size size') :> HP @@ -239,7 +236,7 @@ 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} ||= ''; @@ -273,10 +270,10 @@ sub showrange { '' . join('', $_->{unit} ? $_->{unit} == .5 ? '½' : $_->{unit} : ' ', defined $_->{organic} && sprintf( - '%s', + '%s', $_->{organic} ? 'o' : 'u', - $_->{race} . ($_->{organic} ? 'o' : ''), - $_->{organic} ? 'o' : 'm' + $_->{organic} ? 'organic' : 'mechanic', + $_->{organic} ? 'o' : 'm', ), ), '' . $_->{hp},