Show extra seconds when collecting a crate in Teamwork
String freeze is not violated because the string was already collected.
--- a/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua Mon Nov 19 18:18:06 2018 +0100
+++ b/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua Mon Nov 19 18:27:45 2018 +0100
@@ -89,6 +89,7 @@
if (GetGearType(gear) == gtCase) and (band(GetGearMessage(gear), gmDestroy) ~= 0) then
SetTurnTimeLeft(TurnTimeLeft + 5000)
+ AddCaption(string.format(loc("+%d seconds!"), 5), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage)
PlaySound(sndExtraTime)
end
-- Note: The victory sequence is done automatically by Hedgewars