sc: convert to fast bw seconds for sc2 compatibility
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 30 Jun 2015 21:03:47 +0000 (23:03 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 1 Jul 2015 17:32:34 +0000 (19:32 +0200)
Unit speeds match only if "Fast" speed of 56ms frames is used
instead of more commonly used "Fastest" of 42ms.  Affects dps calculations
as well, also better matching StarCraft 2 in-game seconds.

sc-units-bw.inc.pl
sc.plp

index 74cfba0098e656a99aebbfb13ab11ea6cd9a5923..196be6370ef649ba36421b0bd4dccd3b48f42431 100644 (file)
@@ -1,11 +1,11 @@
 use utf8;
 use strict;
 
 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 = .555;  # pixels per frame to tiles per second 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>',
 
 [
 '<span title="no known changes as of v1.16.1">version≥1.08</span>',
diff --git a/sc.plp b/sc.plp
index 5f18477389b53f8cd183e3298e106468102c045b..ac78eb622f897db4844d9fe6f6ed5dfca67eae8b 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -450,7 +450,8 @@ if ($scver{major} > 1) {
 <dt>attack
        <dd>damage given per single hit
        <dd><span class="hurtrel">dps</span> indicates relative amount of damage
 <dt>attack
        <dd>damage given per single hit
        <dd><span class="hurtrel">dps</span> indicates relative amount of damage
-               done in 1 second of in-game time
+               done in 1 second of <:= $scver{major} > 1 ? '<em>Normal</em> in-game time' :
+               'time on <em>Fast</em> game speed' :>
        <dd>splash damage hits all objects nearby <span class="unit-splash">⁜</span>
                or in a straight line <span class="unit-splash">+</span>.
        <dd><:
        <dd>splash damage hits all objects nearby <span class="unit-splash">⁜</span>
                or in a straight line <span class="unit-splash">+</span>.
        <dd><: