ASA, cosmos: Move meteorite into sprite, add sprite for blown-up meteorite
authorWuzzy <Wuzzy2@mail.ru>
Fri, 01 Nov 2019 11:42:53 +0100
changeset 15520 7f9d8f574ac9
parent 15519 7621c6157558
child 15521 e3bf91fbd3f8
ASA, cosmos: Move meteorite into sprite, add sprite for blown-up meteorite
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	Thu Oct 31 19:02:36 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Fri Nov 01 11:42:53 2019 +0100
@@ -117,11 +117,7 @@
 	HealthDecrease = 0
 	-- completed main missions
 	status = getCompletedStatus()
-	if status.death01 then
-		Map = "cosmos2_map"
-	else
-		Map = "cosmos_map" -- custom map included in file
-	end
+	Map = "cosmos_map" -- custom map included in file
 	Theme = "Nature"
 	-- Hero
 	teamC.name = AddMissionTeam(teamC.color)
@@ -187,6 +183,15 @@
 end
 
 function onGameStart()
+	-- Place meteorite on map
+	if status.final then
+		-- Campaign complete: Blown-up meteorite sprite
+		PlaceSprite(3171, 909, sprCustom2, 0, nil, false, false, false)
+	elseif status.death01 then
+		-- death01 mission complete: Normal meteorite sprite
+		PlaceSprite(3171, 909, sprCustom1, 0, nil, false, false, false)
+	end
+
 	-- wait for the first turn to start
 	AnimWait(hero.gear, 3000)
 
@@ -626,8 +631,8 @@
 		end
 	end
 	if status.final then
-		vgear = AddVisualGear(3070, 810, vgtBeeTrace, 0, false)
-		vgear = AddVisualGear(3070, 790, vgtBeeTrace, 0, false)
+		vgear = AddVisualGear(3080, 810, vgtBeeTrace, 0, false)
+		vgear = AddVisualGear(3080, 790, vgtBeeTrace, 0, false)
 	end
 end