ASA: Fix 2 important fruit planet mission unlocking bugs
authorWuzzy <almikes@aol.com>
Thu, 28 Sep 2017 00:46:06 +0200
changeset 12572 459543ef9b1b
parent 12571 172157a47986
child 12573 494d3e1c4810
ASA: Fix 2 important fruit planet mission unlocking bugs
ChangeLog.txt
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
--- a/ChangeLog.txt	Thu Sep 28 00:17:41 2017 +0200
+++ b/ChangeLog.txt	Thu Sep 28 00:46:06 2017 +0200
@@ -213,6 +213,8 @@
  * Precise flying: Fix victory not being recognized, also wait for flames to settle before losing
  * Hard Flying: Fix ending in a Lua error
  * The First Stop: Fix stats screen showing teams twice
+ * Fruit planet: Fix “Precise shooting” disappearing directly after completing “Bad timing”
+ * Fruit planet: Fix “Getting to the device” not visible when landing on fruit planet with first main mission completed only
  * Killing The Specialists: Fix killing hog with Deagle gave you chance to use another weapon in same turn
  * Fix weird behaviour when walking right before the first animation in most missions
  * Fix a coupe of texts being untranslatable
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Sep 28 00:17:41 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Sep 28 00:46:06 2017 +0200
@@ -480,10 +480,10 @@
 	else
 		AnimCaption(hero.gear,loc("Welcome to the Fruit Planet!"))
 		SaveCampaignVar("Planet", "fruitPlanet")
-		if status.fruit02 then
+		if status.fruit01 then
 			SaveCampaignVar("UnlockedMissions", "4")
-			SaveCampaignVar("Mission1", "3")
-			SaveCampaignVar("Mission2", "8")
+			SaveCampaignVar("Mission1", "8")
+			SaveCampaignVar("Mission2", "3")
 			SaveCampaignVar("Mission3", "10")
 			SaveCampaignVar("Mission4", "1")
 		else
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Thu Sep 28 00:17:41 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Thu Sep 28 00:46:06 2017 +0200
@@ -486,8 +486,9 @@
 
 function saveVariables()
 	saveCompletedStatus(2)
-	SaveCampaignVar("UnlockedMissions", "3")
-	SaveCampaignVar("Mission1", "3")
-	SaveCampaignVar("Mission2", "8")
-	SaveCampaignVar("Mission3", "1")
+	SaveCampaignVar("UnlockedMissions", "4")
+	SaveCampaignVar("Mission1", "8")
+	SaveCampaignVar("Mission2", "3")
+	SaveCampaignVar("Mission3", "10")
+	SaveCampaignVar("Mission4", "1")
 end