share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
branchspacecampaign
changeset 9322 18cbaf1436c7
parent 9320 1845b420cb5d
child 9324 98368198a75d
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Jul 09 22:24:29 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Jul 09 22:53:28 2013 +0300
@@ -43,7 +43,6 @@
 local parachuteX = 110
 local grenadeX = 160
 local deserteagleX = 200
-local torchblowX = 3270
 -- hogs
 local hero = {}
 local paoth1 = {}
@@ -171,9 +170,9 @@
 	ShowMission(campaignName, missionName, loc("Hog Solo has to refuel his saucer.")..
 	"|"..loc("Rescue the imprisoned PAoTH team and get your fuels!"), -amSkip, 0)
 	
-	AddAmmo(minion1.gear, amDEagle, 2)
-	AddAmmo(minion2.gear, amDEagle, 2)
-	AddAmmo(minion3.gear, amDEagle, 2)
+	AddAmmo(minion1.gear, amDEagle, 10)
+	AddAmmo(minion2.gear, amDEagle, 10)
+	AddAmmo(minion3.gear, amDEagle, 10)
 	AddAmmo(minion1.gear, amBazooka, 2)
 	AddAmmo(minion2.gear, amBazooka, 2)
 	AddAmmo(minion3.gear, amBazooka, 2)
@@ -300,6 +299,13 @@
 	return false
 end
 
+function onMinionsDeath(gear)
+	if GetHealth(mimion1.gear) or GetHealth(mimion2.gear) or GetHealth(mimion3.gear) then
+		return true
+	end
+	return false
+end
+
 -------------- OUTCOMES ------------------
 
 function weaponsPlatform(gear)	
@@ -337,6 +343,11 @@
 	EndGame()
 end
 
+function minionsDeath(gear)
+	-- do staffs here
+	EndGame()
+end
+
 -------------- ANIMATIONS ------------------
 
 function Skipanim(anim)