equal
deleted
inserted
replaced
616 if anim == dialog09 then |
616 if anim == dialog09 then |
617 SetInputMask(0) |
617 SetInputMask(0) |
618 -- Quick punishment for the impatient |
618 -- Quick punishment for the impatient |
619 AddGear(GetX(hero.gear)-1, GetY(hero.gear)+1, gtDynamite, 0, 0, 0, 1) |
619 AddGear(GetX(hero.gear)-1, GetY(hero.gear)+1, gtDynamite, 0, 0, 0, 1) |
620 sendStatsOnRopedToMoon() |
620 sendStatsOnRopedToMoon() |
621 elseif anim == dialog05 or anim == dialog06 then |
621 elseif anim == dialog05 then |
622 sendStatsOnStuckOnMoon() |
622 sendStatsOnStuckOnMoon() |
|
623 elseif anim == dialog06 then |
|
624 sendStatsOnRetry() |
623 elseif CurrentHedgehog ~= hero.gear and anim ~= dialog03 then |
625 elseif CurrentHedgehog ~= hero.gear and anim ~= dialog03 then |
624 AnimSwitchHog(hero.gear) |
626 AnimSwitchHog(hero.gear) |
625 elseif anim == dialog03 then |
627 elseif anim == dialog03 then |
626 startCombat() |
628 startCombat() |
627 end |
629 end |
741 end |
743 end |
742 |
744 |
743 function sendStatsOnRopedToMoon() |
745 function sendStatsOnRopedToMoon() |
744 if ropedToMoon ~= 2 then |
746 if ropedToMoon ~= 2 then |
745 ropedToMoon = 2 |
747 ropedToMoon = 2 |
746 SendStat(siGameResult, loc("This is the wrong way!")) |
748 SendStat(siGameResult, loc("You have violated PAotH regulations!")) |
|
749 SendStat(siCustomAchievement, loc("You have triggered the secret Do-Not-Rope-to-the-Moon Defense System!")) |
747 SendStat(siCustomAchievement, loc("Collect the crate with the flying saucer!")) |
750 SendStat(siCustomAchievement, loc("Collect the crate with the flying saucer!")) |
748 SendStat(siCustomAchievement, loc("Fly to the moon.")) |
751 SendStat(siCustomAchievement, loc("Fly to the moon.")) |
749 sendSimpleTeamRankings({teamC.name}) |
752 sendSimpleTeamRankings({teamC.name}) |
750 EndGame() |
753 EndGame() |
751 end |
754 end |