sc: bw speed data from bwapi
[sheet.git] / sc-units-bw.inc.pl
index 7d3feb17563e0ce308c4c899760ca343feab197c..ae4689af80f052f19a2d75724e0e3f911fb6b31f 100644 (file)
@@ -1,11 +1,11 @@
 use utf8;
 use strict;
 
-# time in fastest game seconds
-my $FPS = 24;  # frames per second
-# toss shield += .65 per second
-# zerg regen  += .37 per second
-my $SM = .2;  # speed multiplication
+my $FPS = 1000 / 56;  # frames per second on fast
+# energy      += 8HP/frame ≈ .74 per second
+# toss shield += 7HP/frame ≈ .65/s
+# zerg regen  += 4HP/frame ≈ .37/s
+my $SM = $FPS / 32;  # pixels per frame to tiles per second multiplication
 
 [
 '<span title="no known changes as of v1.16.1">version≥1.08</span>',
@@ -35,11 +35,11 @@ attack => [
                name => "Particle Beam",
                damage => 5,
                cooldown => 22 / $FPS,
-               range => 0,
+               range => 1,
        },
 ],
 sight => 8,
-speed => 14 * $SM,
+speed => 4.92 * $SM,
 counter => ['vulture', 'dark templar'],
 },
 
@@ -106,11 +106,11 @@ attack => [
        },
 ],
 sight => 7,
-speed => 11 * $SM,
+speed => 4 * $SM,
 upgrade => [
        {
                name => 'Leg Enhancements',
-               speed => (16 - 11) * $SM,
+               speed => (6 - 4) * $SM,
                min => 150,
                gas => 150,
                build => 133,
@@ -151,7 +151,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 15 * $SM,
+speed => 5 * $SM,
 upgrade => [
        {
                name => 'Singularity Charge',
@@ -189,7 +189,7 @@ hp => 40,
 shield => 40,
 armor => 0,
 sight => 7,
-speed => 9 * $SM,
+speed => 3.2 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -259,7 +259,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 15 * $SM,
+speed => 4.92 * $SM,
 special => [
        {
                name => 'Cloaked',
@@ -303,7 +303,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 14 * $SM,
+speed => 4.92 * $SM,
 },
 
 {
@@ -328,7 +328,7 @@ hp => 25,
 shield => 200,
 armor => 1,
 sight => 10,
-speed => 14 * $SM,
+speed => 4.92 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -413,7 +413,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 13 * $SM,
+speed => 5 * $SM,
 upgrade => [
        {
                name => 'Apial Sensors',
@@ -427,7 +427,7 @@ upgrade => [
                min => 200,
                gas => 200,
                build => 166,
-               speed => (18 - 13) * $SM,
+               speed => (6.67 - 5) * $SM,
        },
 ],
 },
@@ -464,7 +464,7 @@ attack => [
        },
 ],
 sight => 9,
-speed => 17 * $SM,
+speed => 6.67 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -521,7 +521,7 @@ attack => [
        },
 ],
 sight => 11,
-speed => 10 * $SM,
+speed => 3.33 * $SM,
 special => [
        {
                name => 'Build Interceptor',
@@ -548,8 +548,9 @@ special => [
                                range => 0,
                        },
                ],
-               sight => 0,
+               sight => 6,
                range => 0,
+               speed => 13.33 * $SM,
        },
 ],
 upgrade => [
@@ -597,7 +598,7 @@ attack => [
        },
 ],
 sight => 9,
-speed => 12 * $SM,
+speed => 5 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -661,7 +662,7 @@ attack => [
        {
                anti => 1,
                damage => 100,
-               cooldown => 60 / $FPS,
+               cooldown => 60 / $FPS, # 30 after drop
                splash => 1,
                min => 15,
                build => 7,
@@ -670,7 +671,7 @@ attack => [
        },
 ],
 sight => 10,
-speed => 5 * $SM,
+speed => 1.78 * $SM,
 upgrade => [
        {
                name => 'Scarab Damage',
@@ -726,7 +727,7 @@ shield => 20,
 armor => 0,
 sight => 9,
 detect => 1,
-speed => 9 * $SM,
+speed => 3.33 * $SM,
 upgrade => [
        {
                name => "Sensor Array",
@@ -740,7 +741,7 @@ upgrade => [
                min => 150,
                gas => 150,
                build => 166,
-               speed => (13 - 9) * $SM,
+               speed => (5 - 3.33) * $SM,
        },
 ],
 special => [
@@ -773,7 +774,7 @@ hp => 80,
 shield => 60,
 armor => 1,
 sight => 8,
-speed => 13 * $SM,
+speed => 4.43 * $SM,
 transport => 1,
 upgrade => [
        {
@@ -781,7 +782,7 @@ upgrade => [
                min => 200,
                gas => 200,
                build => 166,
-               speed => (19 - 13) * $SM,
+               speed => (6.67 - 4.43) * $SM,
        }
 ],
 },
@@ -814,7 +815,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 15 * $SM,
+speed => 4.92 * $SM,
 },
 
 {
@@ -875,7 +876,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 11 * $SM,
+speed => 4 * $SM,
 upgrade => [
        {
                name => 'U-238 Shells',
@@ -897,7 +898,7 @@ special => [
                gas => 100,
                build => 80,
                desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
-               speed => 17 * $SM,
+               speed => (6 - 4) * $SM,
                attack => [
                        {
                                anti => 3,
@@ -936,7 +937,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 11 * $SM,
+speed => 4 * $SM,
 upgrade => [
 ],
 special => [
@@ -947,7 +948,7 @@ special => [
                gas => 100,
                build => 80,
                desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
-               speed => 17 * $SM,
+               speed => (6 - 4) * $SM,
                attack => [
                        {
                                anti => 1,
@@ -988,7 +989,7 @@ attack => [
        },
 ],
 sight => 9,
-speed => 11 * $SM,
+speed => 4 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -1065,7 +1066,7 @@ attr => {
 hp =>  60,
 armor => 1,
 sight => 9,
-speed => 11 * $SM,
+speed => 4 * $SM,
 energy => 50,
 capacity => 200,
 upgrade => [
@@ -1141,14 +1142,14 @@ attack => [
        },
 ],
 sight => 8,
-speed => 20 * $SM,
+speed => 6.4 * $SM,
 upgrade => [
        {
                name => 'Ion Thrusters',
                min => 100,
                gas => 100,
                build => 100,
-               speed => (28 - 20) * $SM,
+               speed => (10 - 6.4) * $SM,
        },
 ],
 special => [
@@ -1177,7 +1178,7 @@ special => [
                        },
                ],
                sight => 3,
-               speed => 25 * $SM,
+               speed => 16 * $SM,
     },
 ],
 },
@@ -1205,13 +1206,13 @@ attack => [
                anti => 1,
                damage => 30,
                upgrade => 3,
-               cooldown => 37 / $FPS,
+               cooldown => 37 / $FPS, # 15 after drop
                type => 'explosive',
                range => 7,
        },
 ],
 sight => 10,
-speed => 12 * $SM,
+speed => 4 * $SM,
 special => [
        {
                name => 'Siege Mode',
@@ -1259,7 +1260,7 @@ attack => [
                anti => 1,
                damage => 12,
                upgrade => 1,
-               cooldown => 22 / $FPS,
+               cooldown => 22 / $FPS, # 15 after drop
                range => 5,
        },
        {
@@ -1272,7 +1273,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 13 * $SM,
+speed => 4.57 * $SM,
 upgrade => [
        {
                name => 'Charon Boosters',
@@ -1323,7 +1324,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 17 * $SM,
+speed => 6.67 * $SM,
 energy => 50,
 capacity => 200,
 special => [
@@ -1379,7 +1380,7 @@ attack => [
        },
 ],
 sight => 11,
-speed => 7 * $SM,
+speed => 2.5 * $SM,
 energy => 50,
 capacity => 200,
 special => [
@@ -1433,7 +1434,7 @@ hp => 200,
 armor => 1,
 sight => 10,
 detect => 1,
-speed => 15 * $SM,
+speed => 5 * $SM,
 energy => 50,
 capacity => 200,
 special => [
@@ -1515,7 +1516,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 19 * $SM,
+speed => 6.6 * $SM,
 },
 
 {
@@ -1536,7 +1537,7 @@ air => 1,
 hp => 150,
 armor => 1,
 sight => 8,
-speed => 15 * $SM,
+speed => 5.47 * $SM,
 transport => 1,
 },
 
@@ -1563,11 +1564,11 @@ attack => [
                anti => 1,
                damage => 5,
                cooldown => 22 / $FPS,
-               range => 0,
+               range => 1,
        },
 ],
 sight => 7,
-speed => 14 * $SM,
+speed => 4.92 * $SM,
 },
 
 {
@@ -1590,7 +1591,7 @@ armor => 0,
 cargo => 0,
 sight => 9,
 detect => 1,
-speed => 2 * $SM,
+speed => .83 * $SM,
 transport => 1,
 upgrade => [
        {
@@ -1612,7 +1613,7 @@ upgrade => [
                min => 150,
                gas => 150,
                build => 133,
-               speed => (10 - 2) * $SM,
+               speed => (3.33 - .83) * $SM,
        },
 ],
 },
@@ -1729,14 +1730,14 @@ attack => [
        },
 ],
 sight => 5,
-speed => 14 * $SM,
+speed => 5.49 * $SM,
 upgrade => [
        {
                name => 'Metabolic Boost',
                min => 100,
                gas => 100,
                build => 80,
-               speed => (22 - 14) * $SM,
+               speed => (8.36 - 5.49) * $SM,
        },
        {
                name => 'Adrenal Glands',
@@ -1779,7 +1780,7 @@ attack => [
        },
 ],
 sight => 6,
-speed => 11 * $SM,
+speed => 3.66 * $SM,
 upgrade => [
        {
                name => 'Grooved Spines',
@@ -1797,7 +1798,7 @@ upgrade => [
                min => 150,
                gas => 150,
                build => 100,
-               speed => (16 - 11) * $SM,
+               speed => (5.57 - 3.66) * $SM,
        },
        {
                name => 'Lurker Aspect',
@@ -1835,7 +1836,7 @@ attack => [
        },
 ],
 sight => 8,
-speed => 17 * $SM,
+speed => 5.82 * $SM,
 },
 
 {
@@ -1855,7 +1856,7 @@ air => 1,
 hp => 120,
 armor => 0,
 sight => 10,
-speed => 18 * $SM,
+speed => 6.67 * $SM,
 energy => 50,
 capacity => 200,
 special => [
@@ -1912,7 +1913,7 @@ special => [
                        },
                ],
                sight => 5,
-               speed => 19 * $SM,
+               speed => 6 * $SM,
        },
 ],
 },
@@ -1941,7 +1942,7 @@ attack => [
        },
 ],
 sight => 5,
-speed => 17 * $SM,
+speed => 5.82 * $SM,
 },
 
 {
@@ -1968,7 +1969,7 @@ attack => [
        },
 ],
 sight => 5,
-speed => 18 * $SM,
+speed => 6.67 * $SM,
 counter => ['cannon', 'goliath', 'hydralisk'],
 },
 
@@ -1999,7 +2000,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 18 * $SM,
+speed => 6.67 * $SM,
 special => [
        {
                alt => 'Cocoon',
@@ -2045,7 +2046,7 @@ attack => [
        },
 ],
 sight => 11,
-speed => 7 * $SM,
+speed => 2.5 * $SM,
 },
 
 {
@@ -2076,7 +2077,7 @@ attack => [
        },
 ],
 sight => 10,
-speed => 15 * $SM,
+speed => 5 * $SM,
 counter => ['goliath', 'dragoon', 'scourge'],
 },
 
@@ -2096,7 +2097,7 @@ attr => {
 hp => 80,
 armor => 1,
 sight => 10,
-speed => 12 * $SM,
+speed => 4 * $SM,
 energy => 50,
 capacity => 200,
 special => [
@@ -2168,7 +2169,7 @@ attack => [
        },
 ],
 sight => 7,
-speed => 16 * $SM,
+speed => 5.12 * $SM,
 upgrade => [
        {
                name => 'Chitinous Plating',
@@ -2182,7 +2183,7 @@ upgrade => [
                min => 200,
                gas => 200,
                build => 133,
-               speed => (21 - 16) * $SM,
+               speed => (8.1 - 5.12) * $SM,
        },
 ],
 },