share/hedgewars/Data/Maps/Control/map.lua
changeset 14988 0ebecd424fc7
parent 14987 932f1375a5c7
child 14989 5188ecbf726f
equal deleted inserted replaced
14987:932f1375a5c7 14988:0ebecd424fc7
   424 		end
   424 		end
   425 	end
   425 	end
   426 
   426 
   427 end
   427 end
   428 
   428 
       
   429 function onHogAttack(ammoType)
       
   430 	-- Update TimeCounter after using extra time
       
   431 	if ammoTime == amExtraTime then
       
   432 		if (TimeCounter == 0) and (TurnTimeLeft > 0) then
       
   433 			TimeCounter = TurnTimeLeft
       
   434 		end
       
   435 		TimeCounter = TimeCounter + 30000
       
   436 	end
       
   437 end
       
   438 
   429 function InABetterPlaceNow(gear)
   439 function InABetterPlaceNow(gear)
   430 	for i = 0, (numhhs-1) do
   440 	for i = 0, (numhhs-1) do
   431 		if gear == hhs[i] then
   441 		if gear == hhs[i] then
   432 			hhs[i] = nil
   442 			hhs[i] = nil
   433 		end
   443 		end