From: Mischa POSLAWSKY Date: Sat, 13 Jun 2015 03:50:43 +0000 (+0200) Subject: sc: suit fallback for sc2 X-Git-Tag: v1.8~161 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/e487749bf1899655bb0c7b7fe9c2d4cbff3b8021?ds=sidebyside sc: suit fallback for sc2 Size in hots indicates cargo points, but show comparable class derived from hex size if untransportable. --- diff --git a/sc.plp b/sc.plp index 13248fb..cf2155f 100644 --- a/sc.plp +++ b/sc.plp @@ -178,7 +178,13 @@ sub showval { local $_ = $row; $_->{hp} += $_->{shield} if $_->{shield}; my $suitchar = ''; - if ($_->{suit}) { + if ($_->{cargo} > 0) { + $suitchar = [qw/? s m l l h h h h/]->[abs $_->{cargo}]; + } + elsif ($_->{size}) { + $suitchar = [qw/s m l h h h/]->[$_->{size}]; + } + elsif ($_->{suit}) { $suitchar = [qw/? s m l/]->[$_->{suit}]; } @@ -275,9 +281,17 @@ sub showval {
excludes construction of dependencies such as buildings and +parent units
size -
affected by Small, +
<: +if ($scver{major} > 1) { + :>transports can fit 8 Small, + 4 Medium, + 2 Large, + or a single Huge unit<: +} else { + :>affected by Small, Medium, - or Large unit damage + or Large unit damage<: +} :>
number of command points taken per unit
organic/mechanic unit
HP