share/hedgewars/Data/Maps/Control/map.lua
changeset 7838 5c2337f8dbb2
parent 5842 30e374a27269
child 8349 a1dbe148f10f
equal deleted inserted replaced
7837:3e031b3b33e6 7838:5c2337f8dbb2
   398 
   398 
   399 		if gameWon == true then
   399 		if gameWon == true then
   400 			for i = 0, (numhhs-1) do
   400 			for i = 0, (numhhs-1) do
   401 				if hhs[i] ~= nil then				
   401 				if hhs[i] ~= nil then				
   402 					if GetHogClan(hhs[i]) ~= winnerClan then
   402 					if GetHogClan(hhs[i]) ~= winnerClan then
   403 						SetEffect(hhs[i], heResurrectable, false)
   403 						SetEffect(hhs[i], heResurrectable, 0)
   404 						SetHealth(hhs[i],0)
   404 						SetHealth(hhs[i],0)
   405 					end
   405 					end
   406 				end			
   406 				end			
   407 			end
   407 			end
   408 			TurnTimeLeft = 1
   408 			TurnTimeLeft = 1
   499 function onGearAdd(gear)
   499 function onGearAdd(gear)
   500 
   500 
   501 	if GetGearType(gear) == gtHedgehog then
   501 	if GetGearType(gear) == gtHedgehog then
   502 		hhs[numhhs] = gear
   502 		hhs[numhhs] = gear
   503 		numhhs = numhhs + 1
   503 		numhhs = numhhs + 1
   504 		SetEffect(gear, heResurrectable, true)
   504 		SetEffect(gear, heResurrectable, 1)
   505 	end
   505 	end
   506 
   506 
   507 end
   507 end
   508 
   508 
   509 function onGearDelete(gear)
   509 function onGearDelete(gear)