sc: convert to fast bw seconds for sc2 compatibility
[sheet.git] / sc.plp
diff --git a/sc.plp b/sc.plp
index d8e89de68219ec5ec0fcb4b3d8975a5ec9ba2ebd..ac78eb622f897db4844d9fe6f6ed5dfca67eae8b 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -313,11 +313,20 @@ sub showrangeint {
                                $_->{detect} ? '<strong class="unit-detect">%s</strong>' : '%s',
                                showrangeint($_->{sight}, $_->{upgraded}->{sight})
                        ),
                                $_->{detect} ? '<strong class="unit-detect">%s</strong>' : '%s',
                                showrangeint($_->{sight}, $_->{upgraded}->{sight})
                        ),
-                       '<td class="val unit-speed">' .
+                       sprintf('<td class="val unit-speed"%2$s>%s',
                                showrange(
                                        map { $_ && sprintf '%.1f', $_ }
                                        $_->{speed}, $_->{upgraded}->{speed}
                                ),
                                showrange(
                                        map { $_ && sprintf '%.1f', $_ }
                                        $_->{speed}, $_->{upgraded}->{speed}
                                ),
+                               defined $_->{creep} && sprintf(' title="%s on creep"',
+                                       $_->{creep} == 1 ? 'same' : showrange(
+                                               map { $_ && sprintf '%.1f', $_ }
+                                               $_->{speed} * $_->{creep},
+                                               $_->{upgraded}->{speed} && $_->{upgraded}->{speed} *
+                                                       ($_->{upgraded}->{creep} // $_->{creep}),
+                                       ),
+                               ),
+                       ),
                        $_->{attr}->{jump}
                                && qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
                        '<td class="unit-magic">' . showmagic($_),
                        $_->{attr}->{jump}
                                && qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
                        '<td class="unit-magic">' . showmagic($_),
@@ -441,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><:
@@ -464,7 +474,8 @@ if ($scver{major} > 1) {
        <dd>range in which the unit detects other units
        <dd><strong class="unit-detect">emphasis</strong> indicates ability to detect cloaked units
 <dt>speed
        <dd>range in which the unit detects other units
        <dd><strong class="unit-detect">emphasis</strong> indicates ability to detect cloaked units
 <dt>speed
-       <dd>relative speed of movement (when in full motion, startup speed ignored)
+       <dd>top movement speed in hex per second
+       <dd>acceleration and deceleration ignored
 <dt>specials
        <dd>parentheses () indicate that it needs to be researched first
        <dd><span class="magic-perma">passive</span> abilities are always enabled
 <dt>specials
        <dd>parentheses () indicate that it needs to be researched first
        <dd><span class="magic-perma">passive</span> abilities are always enabled