Allow skipping in two ASA missions
authorWuzzy <almikes@aol.com>
Thu, 21 Sep 2017 05:11:01 +0200
changeset 12474 2041d1e98ab2
parent 12473 d652c6f5d5f1
child 12475 5b5c3c1f3154
Allow skipping in two ASA missions
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Thu Sep 21 04:58:37 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Thu Sep 21 05:11:01 2017 +0200
@@ -83,6 +83,11 @@
 	AnimationSetup()
 end
 
+function onAmmoStoreInit()
+	SetAmmo(amRope, 9, 0, 0, 0)
+	SetAmmo(amSkip, 9, 0, 0, 0)
+end
+
 function onGameStart()
 	AnimWait(hero.gear, 3000)
 	FollowGear(hero.gear)
@@ -93,8 +98,6 @@
 	SpawnHealthCrate(healthX, health1Y)
 	SpawnHealthCrate(healthX, health2Y)
 
-	AddAmmo(hero.gear, amRope, 100)
-
 	SendHealthStatsOff()
 	AddAnim(dialog01)
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Thu Sep 21 04:58:37 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Thu Sep 21 05:11:01 2017 +0200
@@ -416,6 +416,7 @@
 		TurnTimeLeft = 0
 	end
 	AddAmmo(hero.gear, amJetpack, 0)
+	AddAmmo(hero.gear, amSkip, 100)
 	heroVisitedAntiFlyArea = true
 end