Show extra seconds when collecting a crate in Teamwork
authorWuzzy <Wuzzy2@mail.ru>
Mon, 19 Nov 2018 18:27:45 +0100
changeset 14241 bf627790da14
parent 14240 c94905a5109c
child 14247 7363168382ca
Show extra seconds when collecting a crate in Teamwork String freeze is not violated because the string was already collected.
share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua
--- 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