share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
branchspacecampaign
changeset 9595 1acc5c3dc066
parent 9594 749ef5bd0eaf
child 9596 feb3d880852d
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua	Thu Aug 29 19:50:45 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua	Thu Aug 29 19:51:44 2013 +0300
@@ -120,7 +120,6 @@
 		timeLeft = 0
 	end
 	turnHogs()
-	WriteLnToConsole("NEW TURN")
 end
 
 function onGameTick20()
@@ -129,20 +128,9 @@
 	end
 end
 
-function onGearDamage(gear, damage)
-	FollowGear(gear)
-	WriteLnToConsole("GEAR DAMAGED")
-end
-
-function onGearDelete(gear)
-	WriteLnToConsole("HERO : "..hero.gear)
-	WriteLnToConsole("GEAR : "..gear)
-	WriteLnToConsole("UPPER BOUND : "..enemiesOdd[table.getn(enemiesOdd)].gear)
-	WriteLnToConsole("UPPER BOUND : "..enemiesEven[table.getn(enemiesEven)].gear)
-	
+function onGearDelete(gear)	
 	if (gear > hero.gear and gear <= enemiesOdd[table.getn(enemiesOdd)].gear) or 
 			(gear > hero.gear and gear <= enemiesEven[table.getn(enemiesEven)].gear) then
-		WriteLnToConsole("NOT HERO GEAR")
 		local availableTeleports = GetAmmoCount(hero.gear,amTeleport)
 		local availableSniper = GetAmmoCount(hero.gear,amSniperRifle)
 		if availableTeleports < 2 then
@@ -152,7 +140,6 @@
 			AddAmmo(hero.gear, amSniperRifle, availableSniper + 1 )
 		end
 	end
-	WriteLnToConsole("GEAR KILLED")
 end
 
 -------------- EVENTS ------------------