From: Mischa POSLAWSKY Date: Mon, 15 Jun 2015 22:45:55 +0000 (+0200) Subject: sc: restyle massive indicator (append to suit char) X-Git-Tag: v1.8~150 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/5ab99079a9d50d78ea0ae1fead2a8d30910f1733 sc: restyle massive indicator (append to suit char) --- diff --git a/sc.css b/sc.css index f7249cb..0b83d6b 100644 --- a/sc.css +++ b/sc.css @@ -56,7 +56,7 @@ table h2 { content: '*'; color: #C66; } -.unit-massive, +td .unit-massive, .hurt .unit-splash { position: absolute; } @@ -69,7 +69,7 @@ table h2 { color: #4A0; } .unit-massive { - color: #A76; + color: #D88; } .unit-detect::before { content: '!'; diff --git a/sc.plp b/sc.plp index 840e082..7f927ca 100644 --- a/sc.plp +++ b/sc.plp @@ -211,7 +211,11 @@ sub showval { !!$_->{base} && '+', $_->{build} || '0', ), - !$suitchar ? '' : sprintf('%s', $suitchar, ucfirst $suitchar), + !$suitchar ? '' : sprintf('%s%s', + $suitchar, ucfirst $suitchar, + $_->{attr}->{massive} + && '⚓', + ), '' . ( defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit} ), @@ -242,8 +246,6 @@ sub showval { showval($_, 'sight') ), '' . showval($_, 'speed'), - $_->{attr}->{massive} - && '⚓', '' . showmagic($_), "\n" ); @@ -312,7 +314,8 @@ if ($scver{major} > 1) { :>transports can fit 8 Small, 4 Medium, 2 Large, - or a single Huge unit<: + or a single Huge unit +
massive ⚓ units are immune to certain spells<: } else { :>affected by Small, Medium, or