sc: indicate flying units
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 15 Jun 2015 23:02:26 +0000 (01:02 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 15 Jun 2015 23:02:26 +0000 (01:02 +0200)
sc-units-hots.inc.pl
sc.plp

index 42707e764dea95f6709f26cac2046db2f2e51afe..cdce16d3bab37bd4f35d8e84e8f9a62cd42b2756 100644 (file)
@@ -82,6 +82,7 @@ use strict;
                armored => 1,
                mech => 1,
                psionic => 1,
                armored => 1,
                mech => 1,
                psionic => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -140,6 +141,7 @@ use strict;
                mech => 1,
                psionic => 1,
                massive => 1,
                mech => 1,
                psionic => 1,
                massive => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -587,6 +589,7 @@ use strict;
        attr => {
                light => 1,
                mech => 1,
        attr => {
                light => 1,
                mech => 1,
+               flying => 1,
        },
        speed => 1.875,
        sight => 11,
        },
        speed => 1.875,
        sight => 11,
@@ -627,6 +630,7 @@ use strict;
                armored => 1,
                mech => 1,
                psionic => 1,
                armored => 1,
                mech => 1,
                psionic => 1,
+               flying => 1,
        },
        speed => 2.9531,
        sight => 10,
        },
        speed => 2.9531,
        sight => 10,
@@ -664,6 +668,7 @@ use strict;
        attr => {
                light => 1,
                mech => 1,
        attr => {
                light => 1,
                mech => 1,
+               flying => 1,
        },
        attack => {
                air => {
        },
        attack => {
                air => {
@@ -718,6 +723,7 @@ use strict;
        attr => {
                armored => 1,
                mech => 1,
        attr => {
                armored => 1,
                mech => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -759,6 +765,7 @@ use strict;
                light => 1,
                mech => 1,
                psionic => 1,
                light => 1,
                mech => 1,
                psionic => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -815,6 +822,7 @@ use strict;
                armored => 1,
                mech => 1,
                massive => 1,
                armored => 1,
                mech => 1,
                massive => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -848,6 +856,7 @@ use strict;
                armored => 1,
                mech => 1,
                massive => 1,
                armored => 1,
                mech => 1,
                massive => 1,
+               flying => 1,
        },
        attack => {
                range => 8, # leash range 14
        },
        attack => {
                range => 8, # leash range 14
@@ -869,6 +878,7 @@ use strict;
                        attr => {
                                light => 1,
                                mech => 1,
                        attr => {
                                light => 1,
                                mech => 1,
+                               flying => 1,
                        },
                        attack => {
                                ground => {
                        },
                        attack => {
                                ground => {
@@ -1525,6 +1535,7 @@ use strict;
        attr => {
                armored => 1,
                mech => 1,
        attr => {
                armored => 1,
                mech => 1,
+               flying => 1,
        },
        attack => {
                air => {
        },
        attack => {
                air => {
@@ -1573,6 +1584,7 @@ use strict;
        attr => {
                armored => 1,
                mech => 1,
        attr => {
                armored => 1,
                mech => 1,
+               flying => 1,
        },
        speed => 2.5,
        energy => 200,
        },
        speed => 2.5,
        energy => 200,
@@ -1620,6 +1632,7 @@ use strict;
        attr => {
                light => 1,
                mech => 1,
        attr => {
                light => 1,
                mech => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -1663,6 +1676,7 @@ use strict;
        attr => {
                light => 1,
                mech => 1,
        attr => {
                light => 1,
                mech => 1,
+               flying => 1,
        },
        speed => 2.25,
        sight => 11,
        },
        speed => 2.25,
        sight => 11,
@@ -1724,6 +1738,7 @@ use strict;
                                light => 1,
                                mech => 1,
                                structure => 1,
                                light => 1,
                                mech => 1,
                                structure => 1,
+                               flying => 1,
                        },
                        cooldown => 0,
                        attack => {
                        },
                        cooldown => 0,
                        attack => {
@@ -1804,6 +1819,7 @@ use strict;
                armored => 1,
                mech => 1,
                massive => 1,
                armored => 1,
                mech => 1,
                massive => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -1960,6 +1976,7 @@ use strict;
        attr => {
                armored => 1,
                organic => 1,
        attr => {
                armored => 1,
                organic => 1,
+               flying => 1,
        },
        speed => 0.586,
        creep => 0,
        },
        speed => 0.586,
        creep => 0,
@@ -2009,6 +2026,7 @@ use strict;
        attr => {
                armored => 1,
                organic => 1,
        attr => {
                armored => 1,
                organic => 1,
+               flying => 1,
        },
        speed => 1.875,
        creep => 0,
        },
        speed => 1.875,
        creep => 0,
@@ -2507,6 +2525,9 @@ use strict;
                        min => 200,
                        gas => 200,
                        build => 160,
                        min => 200,
                        gas => 200,
                        build => 160,
+                       attr => {
+                               flying => 1,
+                       },
                },
        ],
 },
                },
        ],
 },
@@ -2526,6 +2547,7 @@ use strict;
        attr => {
                light => 1,
                organic => 1,
        attr => {
                light => 1,
                organic => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -2564,6 +2586,7 @@ use strict;
        attr => {
                armored => 1,
                organic => 1,
        attr => {
                armored => 1,
                organic => 1,
+               flying => 1,
        },
        attack => {
                air => {
        },
        attack => {
                air => {
@@ -2605,6 +2628,7 @@ use strict;
                armored => 1,
                organic => 1,
                massive => 1,
                armored => 1,
                organic => 1,
                massive => 1,
+               flying => 1,
        },
        attack => {
                ground => {
        },
        attack => {
                ground => {
@@ -2670,6 +2694,7 @@ use strict;
                armored => 1,
                organic => 1,
                psionic => 1,
                armored => 1,
                organic => 1,
                psionic => 1,
+               flying => 1,
        },
        speed => 2.9531,
        sight => 11,
        },
        speed => 2.9531,
        sight => 11,
diff --git a/sc.plp b/sc.plp
index 9a3d8229cda096d7d4beee8b76263b29d291b66e..23833b63af5f6958ee4f72ebbd120529e8993edb 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -248,6 +248,8 @@ sub showval {
                        '<td class="val unit-speed">' . showval($_, 'speed'),
                        $_->{attr}->{jump}
                                && qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
                        '<td class="val unit-speed">' . showval($_, 'speed'),
                        $_->{attr}->{jump}
                                && qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
+                       $_->{attr}->{flying}
+                               && qq'<span class="unit unit-jump" title="flying">↑</span>',
                        '<td class="unit-magic">' . showmagic($_),
                        "\n"
                );
                        '<td class="unit-magic">' . showmagic($_),
                        "\n"
                );