fixed bug not displaying fuit02 after selecting fruitPlanet from cosmos spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Tue, 27 Aug 2013 03:29:25 +0300
branchspacecampaign
changeset 9587 d6ddcafb1c56
parent 9586 0b2494d87d99
child 9588 797b8a41f8ca
fixed bug not displaying fuit02 after selecting fruitPlanet from cosmos
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Tue Aug 27 02:54:15 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Tue Aug 27 03:29:25 2013 +0300
@@ -361,9 +361,16 @@
 	else		
 		AnimCaption(hero.gear,loc("Welcome to the Fruit Planet!"))
 		SaveCampaignVar("Planet", "fruitPlanet")
-		SaveCampaignVar("UnlockedMissions", "2")
-		SaveCampaignVar("Mission1", "3")
-		SaveCampaignVar("Mission2", "1")
+		if status.fruit02 then
+			SaveCampaignVar("UnlockedMissions", "3")
+			SaveCampaignVar("Mission1", "3")
+			SaveCampaignVar("Mission2", "8")
+			SaveCampaignVar("Mission3", "1")
+		else
+			SaveCampaignVar("UnlockedMissions", "2")
+			SaveCampaignVar("Mission1", "3")
+			SaveCampaignVar("Mission2", "1")
+		end
 		sendStats(loc("the Fruit Planet"))
 	end
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Tue Aug 27 02:54:15 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Tue Aug 27 03:29:25 2013 +0300
@@ -426,7 +426,6 @@
 ------------- OTHER FUNCTIONS ---------------
 
 function startBattle()
-	--HideHog(green1.human)
 	RestoreHog(green1.bot)
 	DeleteGear(green1.human)
 	green1.gear = green1.bot
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Tue Aug 27 02:54:15 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Tue Aug 27 03:29:25 2013 +0300
@@ -275,7 +275,7 @@
 
 function onAmmoStoreInit()
 	SetAmmo(amDEagle, 0, 0, 0, 6)
-	SetAmmo(amGirder, 0, 0, 0, 3)
+	SetAmmo(amGirder, 0, 0, 0, 2)
 	SetAmmo(amRope, 0, 0, 0, 1)
 	SetAmmo(amWatermelon, 0, 0, 0, 1)
 	SetAmmo(amSniperRifle, 0, 0, 0, 1)