fruit planet main mission first commit spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Wed, 07 Aug 2013 23:27:40 +0300
branchspacecampaign
changeset 9484 a63307092bc6
parent 9482 1c0f330f28f8
child 9486 036fece2fb5f
fruit planet main mission first commit
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini	Wed Aug 07 04:06:52 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini	Wed Aug 07 23:27:40 2013 +0300
@@ -10,8 +10,8 @@
 Script=moon01.lua
 
 [Mission 3]
-Name=FRUIT
-Script=fruit.lua
+Name=Main Mission: A Juicy Story
+Script=fruit01.lua
 
 [Mission 4]
 Name=Main Mission: Going Down
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Aug 07 04:06:52 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Aug 07 23:27:40 2013 +0300
@@ -333,6 +333,13 @@
 function fruitPlanetLanding(gear)
 	if checkPointReached < 5 then
 		AddAnim(dialog06)
+	else		
+		AnimCaption(hero.gear,loc("Welcome to the fruit planet!"))
+		SaveCampaignVar("Planet", "fruitPlanet")
+		SaveCampaignVar("UnlockedMissions", "2")
+		SaveCampaignVar("Mission1", "3")
+		SaveCampaignVar("Mission2", "1")
+		EndGame()
 	end
 end
 
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Wed Aug 07 04:06:52 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Wed Aug 07 23:27:40 2013 +0300
@@ -20,7 +20,6 @@
 }
 -- hogs
 local hero = {}
-local ally = {}
 -- teams
 local teamA = {}
 -- hedgehogs values