share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 12536 e12e2dfda06f
parent 12520 2df340544f25
child 12538 f8801c72a6c8
equal deleted inserted replaced
12535:00d3c280034b 12536:e12e2dfda06f
   372 	SendStat(siCustomAchievement, loc("You have eliminated Professor Hogevil."))
   372 	SendStat(siCustomAchievement, loc("You have eliminated Professor Hogevil."))
   373 	SendStat(siCustomAchievement, loc("You drove the minions away."))
   373 	SendStat(siCustomAchievement, loc("You drove the minions away."))
   374 	SendStat(siPlayerKills,'1',teamD.name)
   374 	SendStat(siPlayerKills,'1',teamD.name)
   375 	SendStat(siPlayerKills,'0',teamC.name)
   375 	SendStat(siPlayerKills,'0',teamC.name)
   376 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
   376 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
       
   377 	resetCheckpoint() -- reset this mission
   377 	gameOver = true
   378 	gameOver = true
   378 	EndGame()
   379 	EndGame()
   379 end
   380 end
   380 
   381 
   381 function minionsDeath(gear)
   382 function minionsDeath(gear)
   391 	SendStat(siCustomAchievement, loc("You have eliminated the evil minions."))
   392 	SendStat(siCustomAchievement, loc("You have eliminated the evil minions."))
   392 	SendStat(siCustomAchievement, loc("You drove Professor Hogevil away."))
   393 	SendStat(siCustomAchievement, loc("You drove Professor Hogevil away."))
   393 	SendStat(siPlayerKills,'1',teamD.name)
   394 	SendStat(siPlayerKills,'1',teamD.name)
   394 	SendStat(siPlayerKills,'0',teamC.name)
   395 	SendStat(siPlayerKills,'0',teamC.name)
   395 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
   396 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
       
   397 	resetCheckpoint() -- reset this mission
   396 	gameOver = true
   398 	gameOver = true
   397 	EndGame()
   399 	EndGame()
   398 end
   400 end
   399 
   401 
   400 -------------- ANIMATIONS ------------------
   402 -------------- ANIMATIONS ------------------