changes in cosmos map spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Wed, 18 Sep 2013 01:25:59 +0300
branchspacecampaign
changeset 9635 ea454f8a1593
parent 9634 8032df67a249
child 9636 e1921235fc78
changes in cosmos map
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.hwp
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
Binary file share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.hwp has changed
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Tue Sep 17 04:09:14 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Sep 18 01:25:59 2013 +0300
@@ -87,7 +87,13 @@
 	MinesNum = 0
 	Explosives = 0
 	Delay = 5
-	Map = "cosmos_map" -- custom map included in file
+	-- completed main missions
+	status = getCompletedStatus()
+	if status.death01 then
+		Map = "cosmos2_map"
+	else
+		Map = "cosmos_map" -- custom map included in file
+	end
 	Theme = "Nature"
 	-- I had originally hero in PAoTH team and changed it, may reconsider though
 	-- PAoTH
@@ -106,8 +112,6 @@
 	AnimSetGearPosition(guard1.gear, guard1.x, guard1.y)
 	guard2.gear = AddHog(guard2.name, 1, 100, "policecap")
 	AnimSetGearPosition(guard2.gear, guard2.x, guard2.y)
-	-- completed main missions
-	status = getCompletedStatus()
 	-- get the check point
 	if tonumber(GetCampaignVar("CosmosCheckPoint")) then
 		checkPointReached = tonumber(GetCampaignVar("CosmosCheckPoint"))