share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
changeset 9802 00216d609140
parent 9758 3b8058b251b8
child 9831 afa4e3e04cc5
equal deleted inserted replaced
9800:169fbb968bb3 9802:00216d609140
   224 	end
   224 	end
   225 	ExecuteAfterAnimations()
   225 	ExecuteAfterAnimations()
   226 	CheckEvents()
   226 	CheckEvents()
   227 end
   227 end
   228 
   228 
       
   229 function onGameTick20()
       
   230 	setFoundDeviceVisual()
       
   231 end
       
   232 
   229 function onPrecise()
   233 function onPrecise()
   230 	if GameTime > 3000 then
   234 	if GameTime > 3000 then
   231 		SetAnimSkip(true)
   235 		SetAnimSkip(true)
   232 	end
   236 	end
   233 end
   237 end
   467 	AddAnim(dialog06)
   471 	AddAnim(dialog06)
   468 end
   472 end
   469 
   473 
   470 function heroDeath(gear)
   474 function heroDeath(gear)
   471 	sendStatsOnRetry()
   475 	sendStatsOnRetry()
       
   476 end
       
   477 
       
   478 function setFoundDeviceVisual()
       
   479 	--WriteLnToConsole("status: "..status.fruit01.." - "..status.fruit02)
       
   480 	if status.moon01 then
       
   481 		vgear = AddVisualGear(1116, 848, vgtBeeTrace, 0, false)
       
   482 
       
   483 	end
       
   484 	if status.ice01 then
       
   485 		vgear = AddVisualGear(1512, 120, vgtBeeTrace, 0, false)
       
   486 
       
   487 	end
       
   488 	if status.desert01 then
       
   489 		vgear = AddVisualGear(4015, 316, vgtBeeTrace, 0, false)
       
   490 
       
   491 	end
       
   492 	if status.fruit01 and status.fruit02 then
       
   493 		vgear = AddVisualGear(2390, 384, vgtBeeTrace, 0, false)
       
   494 
       
   495 	end
       
   496 	if status.death01 then
       
   497 		vgear = AddVisualGear(444, 400, vgtBeeTrace, 0, false)
       
   498 
       
   499 	end
       
   500 	if status.final then
       
   501 		vgear = AddVisualGear(3070, 810, vgtBeeTrace, 0, false)
       
   502 
       
   503 	end
   472 end
   504 end
   473 
   505 
   474 -------------- ANIMATIONS ------------------
   506 -------------- ANIMATIONS ------------------
   475 
   507 
   476 function Skipanim(anim)
   508 function Skipanim(anim)
   560 
   592 
   561 function sendStats(planet)
   593 function sendStats(planet)
   562 	SendStat(siGameResult, loc("Hog Solo arrived at "..planet))
   594 	SendStat(siGameResult, loc("Hog Solo arrived at "..planet))
   563 	SendStat(siCustomAchievement, loc("Return to the mission menu by pressing the \"Go back\" button"))
   595 	SendStat(siCustomAchievement, loc("Return to the mission menu by pressing the \"Go back\" button"))
   564 	SendStat(siCustomAchievement, loc("You can choose another planet by replaying this mission"))
   596 	SendStat(siCustomAchievement, loc("You can choose another planet by replaying this mission"))
       
   597 	SendStat(siCustomAchievement, loc("Planets with completed main missions will be marked with a flower"))
   565 	SendStat(siPlayerKills,'1',teamC.name)
   598 	SendStat(siPlayerKills,'1',teamC.name)
   566 	EndGame()
   599 	EndGame()
   567 end
   600 end
   568 
   601 
   569 function sendStatsOnRetry()
   602 function sendStatsOnRetry()