share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
changeset 12540 baee67bfa5c2
parent 12539 34a91e2b927e
child 12543 952afc3d2df2
equal deleted inserted replaced
12539:34a91e2b927e 12540:baee67bfa5c2
   286 end
   286 end
   287 
   287 
   288 -------------- ANIMATIONS ------------------
   288 -------------- ANIMATIONS ------------------
   289 
   289 
   290 function Skipanim(anim)
   290 function Skipanim(anim)
   291 	if goals[anim] ~= nil then
   291 	startBattle()
   292 		ShowMission(unpack(goals[anim]))
       
   293     end
       
   294     startBattle()
       
   295 end
   292 end
   296 
   293 
   297 function AnimationSetup()
   294 function AnimationSetup()
   298 	local profDiedOnMoon = GetCampaignVar("ProfDiedOnMoon") == "1"
   295 	local profDiedOnMoon = GetCampaignVar("ProfDiedOnMoon") == "1"
   299 	-- DIALOG01, GAME START, INTRODUCTION
   296 	-- DIALOG01, GAME START, INTRODUCTION
   321 end
   318 end
   322 
   319 
   323 -------------- OTHER FUNCTIONS -----------------
   320 -------------- OTHER FUNCTIONS -----------------
   324 
   321 
   325 function startBattle()
   322 function startBattle()
       
   323 	ShowMission(unpack(goals[dialog01]))
   326 	DeleteGear(professor.human)
   324 	DeleteGear(professor.human)
   327 	RestoreHog(professor.bot)
   325 	RestoreHog(professor.bot)
   328 	AnimSwitchHog(professor.gear)
   326 	AnimSwitchHog(professor.gear)
   329 	EndTurn(true)
   327 	EndTurn(true)
   330 end
   328 end