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.
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>',
<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><: