share/hedgewars/Data/Missions/Scenario/User_Mission_-_Spooky_Tree.lua
changeset 14464 ead8928a59f8
parent 14401 6c21bd8547dd
child 14482 d4aa64f51c9f
equal deleted inserted replaced
14463:bd1db668b7c0 14464:ead8928a59f8
   146 		SetTurnTimeLeft(TurnTimeLeft + 5000)
   146 		SetTurnTimeLeft(TurnTimeLeft + 5000)
   147 	end
   147 	end
   148 
   148 
   149 	if (gear == enemy) and (GameOver == false) then
   149 	if (gear == enemy) and (GameOver == false) then
   150 		ShowMission(loc("Spooky Tree"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0);
   150 		ShowMission(loc("Spooky Tree"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0);
       
   151 		SaveMissionVar("Won", "true")
   151 	elseif gear == player then
   152 	elseif gear == player then
   152 		ShowMission(loc("Spooky Tree"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
   153 		ShowMission(loc("Spooky Tree"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
   153 		GameOver = true
   154 		GameOver = true
   154 	end
   155 	end
   155 
   156