sc: colourise shield column to match bonus indicator style
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 19 Jun 2015 06:07:02 +0000 (08:07 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 22 Jun 2015 13:38:51 +0000 (15:38 +0200)
sc.css
sc.plp

diff --git a/sc.css b/sc.css
index 424d482e5b02166f438473ce49cd07d244ed97cf..6da59adae5bd3ccc4e6b830372057f8d65079ba8 100644 (file)
--- a/sc.css
+++ b/sc.css
@@ -58,8 +58,14 @@ td .unit-jump,
 }
 td.hurtrel {
        padding-left: 1em;
+}
+td.unit-shield,
+td.hurtrel {
        font-size: 70%;
 }
+tbody .unit-shield {
+       color: #46A;
+}
 .unit-splash {
        color: #4A0;
 }
diff --git a/sc.plp b/sc.plp
index e5a5b44b6a6af851496a74fa528230a00f6a531c..237ba713f1bbc1c9402cbb308556ae8d1cdf6bc4 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -131,6 +131,7 @@ sub showrange {
                                $_ eq 'armored' ? 'unit-l' :
                                $_ eq 'organic' ? 'unit-o' :
                                $_ =~ /^massive/ ? 'unit-h' :
+                               $_ eq 'shields' ? 'unit-shield' :
                                '',
                        } join '_', keys %{ $attack->{bonus} }),
                        join(', ', map {(