ASA fruit01: Save campaign variable about whether hero joined battle
authorWuzzy <Wuzzy2@mail.ru>
Fri, 31 May 2019 15:20:03 +0200
changeset 15085 84bab72a0b7f
parent 15084 5ff651c926ef
child 15086 9f2374425744
ASA fruit01: Save campaign variable about whether hero joined battle
ChangeLog.txt
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
--- a/ChangeLog.txt	Fri May 31 15:04:43 2019 +0200
+++ b/ChangeLog.txt	Fri May 31 15:20:03 2019 +0200
@@ -65,6 +65,7 @@
  + Show your current records at mission start when re-playing one of the challenges
  + Spacetrip: Move flowers of desert planet above cactus
  + Searching in the dust: Enable skip in entire mission
+ + Getting to the device: Different ending when hero chose to battle in "Bad timing" mission
  * Searching in the dust: Fix mission ending when all smugglers are dead
  * Searching in the dust: Fix a lot of broken/stupid smuggler behaviours
  * Chasing the blue hog: Fix player not losing the race when timing out while still having the rope
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Fri May 31 15:04:43 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Fri May 31 15:20:03 2019 +0200
@@ -557,6 +557,11 @@
 
 function saveVariables()
 	saveCompletedStatus(2)
+	if chooseToBattle then
+		SaveCampaignVar("Fruit01JoinedBattle", "true")
+	else
+		SaveCampaignVar("Fruit01JoinedBattle", "false")
+	end
 	SaveCampaignVar("UnlockedMissions", "4")
 	SaveCampaignVar("Mission1", "8")
 	SaveCampaignVar("Mission2", "3")