sc: common icon for cliff walking
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 15 Jun 2015 22:55:58 +0000 (00:55 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 15 Jun 2015 22:55:58 +0000 (00:55 +0200)
sc-units-hots.inc.pl
sc.css
sc.plp

index b6e7048b3fe177ee9df3cbf8623a3ef379f62567..42707e764dea95f6709f26cac2046db2f2e51afe 100644 (file)
@@ -544,6 +544,7 @@ use strict;
                armored => 1,
                mech => 1,
                massive => 1,
+               jump => 'Cliff Walk',
        },
        attack => {
                ground => {
@@ -557,14 +558,6 @@ use strict;
        },
        speed => 2.25,
        sight => 10,
-       special => [
-               {
-                       name => 'Cliff Walk',
-                       abbr => 'cw',
-                       desc => 'can walk up and down cliffs',
-                       duration => -1,
-               },
-       ],
        upgrade => [
                {
                        name => 'Extended Thermal Lance',
@@ -1192,6 +1185,7 @@ use strict;
        attr => {
                light => 1,
                organic => 1,
+               jump => 'Jet Pack',
        },
        attack => {
                ground => {
@@ -1205,15 +1199,11 @@ use strict;
        speed => 3.75,
        sight => 9,
        special => [
-               {
-                       name => 'Jet Pack',
-                       abbr => 'jp',
-                       desc => 'jump up and down cliffs',
-               },
                {
                        name => 'Combat Drugs',
                        abbr => 'cd',
                        desc => 'heal 2 HP per second after 10 seconds out of combat',
+                       duration => -1,
                },
        ],
 },
diff --git a/sc.css b/sc.css
index 0b83d6b5c0680ec981101d2e43f9e95119ff1a73..95f53a310427f67827acb6b41961dbe0382c87ac 100644 (file)
--- a/sc.css
+++ b/sc.css
@@ -57,6 +57,7 @@ table h2 {
        color: #C66;
 }
 td .unit-massive,
+td .unit-jump,
 .hurt .unit-splash {
        position: absolute;
 }
@@ -77,6 +78,10 @@ td .unit-massive,
        font-size: 70%;
        vertical-align: super;
 }
+.unit-jump {
+       margin-left: -.2em;
+       color: #8A4;
+}
 .unit-magic {
        padding-left: 0.5em;
 }
diff --git a/sc.plp b/sc.plp
index 7f927cacef87c449356b996d70f61a272f9190d4..9a3d8229cda096d7d4beee8b76263b29d291b66e 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -246,6 +246,8 @@ sub showval {
                                showval($_, 'sight')
                        ),
                        '<td class="val unit-speed">' . showval($_, 'speed'),
+                       $_->{attr}->{jump}
+                               && qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
                        '<td class="unit-magic">' . showmagic($_),
                        "\n"
                );