ASA fruit01: Add hog appear effect
authorWuzzy <Wuzzy2@mail.ru>
Thu, 17 Jan 2019 01:41:44 +0100
changeset 14631 ab6be7d200b0
parent 14630 835072bcbfb6
child 14632 2e2b31cf0871
ASA fruit01: Add hog appear effect
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Thu Jan 17 01:35:43 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Thu Jan 17 01:41:44 2019 +0100
@@ -504,6 +504,7 @@
 		if not chooseToBattle and not GetHealth(yellow1.gear) then
 			SetGearPosition(yellowArmy[3].gear, yellow1.x, yellow1.y)
 		end
+		AnimOutOfNowhere(yellowArmy[3].gear)
 	elseif TotalRounds == 7 then
 		RestoreHog(yellowArmy[4].gear)
 		RestoreHog(yellowArmy[5].gear)
@@ -511,6 +512,8 @@
 		if not chooseToBattle and not GetHealth(yellow1.gear) and not GetHealth(yellowArmy[3].gear) then
 			SetGearPosition(yellowArmy[4].gear, yellow1.x, yellow1.y)
 		end
+		AnimOutOfNowhere(yellowArmy[4].gear)
+		AnimOutOfNowhere(yellowArmy[5].gear)
 	elseif TotalRounds == 10 then
 		RestoreHog(yellowArmy[6].gear)
 		RestoreHog(yellowArmy[7].gear)
@@ -519,6 +522,8 @@
 				and not GetHealth(yellowArmy[4].gear) then
 			SetGearPosition(yellowArmy[6].gear, yellow1.x, yellow1.y)
 		end
+		AnimOutOfNowhere(yellowArmy[6].gear)
+		AnimOutOfNowhere(yellowArmy[7].gear)
 	end
 end