Show # of turns left in the 12-turn parcour segment of ACF3
authorWuzzy <Wuzzy2@mail.ru>
Tue, 06 Feb 2018 06:23:37 +0100
changeset 12909 c851be2c0494
parent 12908 9e7c1d5eec73
child 12910 06791c62c759
Show # of turns left in the 12-turn parcour segment of ACF3
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua	Tue Feb 06 05:54:34 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua	Tue Feb 06 06:23:37 2018 +0100
@@ -1191,6 +1191,9 @@
   else
     SetInputMask(0xFFFFFFFF)
     TurnsLeft = TurnsLeft - 1
+    if TurnsLeft >= 1 then
+      AddCaption(string.format(loc("Turns left: %d"), TurnsLeft), 0xFFFFFFFF, capgrpGameState)
+    end
   end
 end