X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/cf28b9f623e4f77924aa45fd9bd31ae7e0d3ac79..cb3850e29734fed8bdf97c0f67433d766d7a9153:/sc.plp?ds=sidebyside
diff --git a/sc.plp b/sc.plp
index 9747e64..e5f528f 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;
@@ -239,7 +240,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} ||= '';
@@ -268,7 +269,10 @@ sub showrange {
'
' . $_->{name},
' | ' . ($_->{min} || '0'),
' | ' . ($_->{gas} || ''),
- ' | ' . sprintf('%.0f', $_->{build} || '0'),
+ sprintf(' | %s%.0f',
+ !!$_->{base} && '+',
+ $_->{build} || '0',
+ ),
sprintf(' | %s', $sizechar, ucfirst $sizechar),
' | ' . join('',
$_->{unit} ? $_->{unit} == .5 ? '½' : $_->{unit} : ' ',
@@ -319,14 +323,17 @@ sub showrange {
- cost
- minerals+gas required to create one unit
+
- includes total expenses if based on existing units
- build
- relative time needed to create at least one unit
+
- excludes construction of dependencies such as buildings
+ and +parent units
- size
-
- Small,
+
- affected by Small,
Medium,
or Large unit damage
- number of command points taken per unit
-
- organic/mechanic unit
+
- organic/mechanic unit
- HP
-
total number of hitpoints (including shields)
- shield
@@ -337,7 +344,7 @@ sub showrange {
- base unit armor
- can be increased by upto 3 at various facilities
- each point decreases damage per hit by one, upto a minimum of ½
-
- reduction applies to initial damage, before size penalties (so a large plasma hit of 12 to 4 armor deals 2 damage, not ½)
+
- reduction applies to initial damage, before size penalties (so a plasma hit of 12 to 4 armor large deals 2 damage, not ½)
- ground/air
- damage done per single attack against ground/air units
- 2nd column indicates relative amount of damage done in
|