X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/e75dbcba340459a1bef997680a7d1bf152039a32..e9ee5e5e683bffd3ffef39896a2735fde7117eb1:/sc.plp
diff --git a/sc.plp b/sc.plp
index dc32a47..e1132b8 100644
--- a/sc.plp
+++ b/sc.plp
@@ -266,7 +266,7 @@ sub showrange {
&& 'â',
),
'
' . (
- defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit}
+ defined $_->{pop} && $_->{pop} == .5 ? '½' : $_->{pop}
),
' | ' . join('', grep { $_ }
(defined $_->{organic} ? !$_->{organic} : $_->{attr}->{mech})
@@ -316,13 +316,13 @@ sub showrange {
$get{order} ||= '';
if ($get{order} eq 'size') {
$_->{order} = (
- $_->{unit}*16 + ($_->{size} // $_->{suit}) + $_->{cargo}/8
+ $_->{pop}*16 + ($_->{size} // $_->{suit}) + $_->{cargo}/8
+ $_->{hp}/512 + $_->{min}/8192
) for @$units;
}
elsif ($get{order} eq 'cost') {
$_->{order} = (
- $_->{gas}*1.5 + $_->{min} + $_->{unit}/8 + $_->{build}/256/8
+ $_->{gas}*1.5 + $_->{min} + $_->{pop}/8 + $_->{build}/256/8
) for @$units;
}
elsif ($get{order} eq 'attack') {
|