share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua
changeset 14245 c94905a5109c
parent 14244 748c611bee79
child 14246 bf627790da14
equal deleted inserted replaced
14244:748c611bee79 14245:c94905a5109c
    85 
    85 
    86 	if gear == bCrate then
    86 	if gear == bCrate then
    87 		HogSay(CurrentHedgehog, loc("Hmmm..."), SAY_THINK)
    87 		HogSay(CurrentHedgehog, loc("Hmmm..."), SAY_THINK)
    88 	end
    88 	end
    89 
    89 
    90 	if GetGearType(gear) == gtCase then
    90 	if (GetGearType(gear) == gtCase) and (band(GetGearMessage(gear), gmDestroy) ~= 0) then
    91 		SetTurnTimeLeft(TurnTimeLeft + 5000)
    91 		SetTurnTimeLeft(TurnTimeLeft + 5000)
       
    92 		PlaySound(sndExtraTime)
    92 	end
    93 	end
    93 	-- Note: The victory sequence is done automatically by Hedgewars
    94 	-- Note: The victory sequence is done automatically by Hedgewars
    94 	if  ( ((gear == player) or (gear == p2)) and (GameOver == false)) then
    95 	if  ( ((gear == player) or (gear == p2)) and (GameOver == false)) then
    95 		ShowMission(loc("Teamwork"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
    96 		ShowMission(loc("Teamwork"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
    96 		GameOver = true
    97 		GameOver = true