share/hedgewars/Data/Missions/Challenge/User_Mission_-_Rope_Knock_Challenge.lua
changeset 13643 690cc84e9fd6
parent 13583 141cdfe0f3ca
child 13756 5525f69bf76b
equal deleted inserted replaced
13642:3d14950641a4 13643:690cc84e9fd6
   219 		if endTimer == 1 then
   219 		if endTimer == 1 then
   220 			GenericEnd()
   220 			GenericEnd()
   221 		end
   221 		end
   222 
   222 
   223 		if missionWon == true then
   223 		if missionWon == true then
   224 			AddCaption(loc("Victory!"), 0xFFFFFFFF,capgrpGameState)
   224 			AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
   225 		else
   225 		else
   226 			AddCaption(loc("Challenge over!"), 0xFFFFFFFF,capgrpGameState)
   226 			AddCaption(loc("Challenge over!"), capcolDefault, capgrpGameState)
   227 		end
   227 		end
   228 
   228 
   229 	end
   229 	end
   230 
   230 
   231 end
   231 end
   239 	if gear ~= hhs[0] and GetGearType(gear) == gtHedgehog and missionWon == nil and ouchies == false then
   239 	if gear ~= hhs[0] and GetGearType(gear) == gtHedgehog and missionWon == nil and ouchies == false then
   240 
   240 
   241 		AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
   241 		AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
   242 		DeleteGear(gear)
   242 		DeleteGear(gear)
   243 		PlaySound(sndExplosion)
   243 		PlaySound(sndExplosion)
   244 		AddCaption(string.format(knockTaunt(), GetHogName(gear)), 0xFFFFFFFF, capgrpMessage)
   244 		AddCaption(string.format(knockTaunt(), GetHogName(gear)), capcolDefault, capgrpMessage)
   245 
   245 
   246 		hogsKilled = hogsKilled +1
   246 		hogsKilled = hogsKilled +1
   247 		SetTeamLabel(playerTeamName, tostring(GetKillScore()))
   247 		SetTeamLabel(playerTeamName, tostring(GetKillScore()))
   248 
   248 
   249 		if hogsKilled == 15 then
   249 		if hogsKilled == 15 then