688 AddEvent(CheckChoiceRefuse, {}, DoChoiceRefuse, {}, 0) |
688 AddEvent(CheckChoiceRefuse, {}, DoChoiceRefuse, {}, 0) |
689 AddEvent(CheckChoiceRunaway, {}, DoChoiceRefuse, {}, 0) |
689 AddEvent(CheckChoiceRunaway, {}, DoChoiceRefuse, {}, 0) |
690 ShowMission(loc("Backstab"), loc("Judas"), |
690 ShowMission(loc("Backstab"), loc("Judas"), |
691 string.format(loc("Kill the traitor, %s, or spare his life!"), GetHogName(spyHog)) .. "|" .. |
691 string.format(loc("Kill the traitor, %s, or spare his life!"), GetHogName(spyHog)) .. "|" .. |
692 loc("Kill him or skip your turn."), |
692 loc("Kill him or skip your turn."), |
693 1, 8000) |
693 3, 8000) |
694 end |
694 end |
695 |
695 |
696 -----------------------------Events------------------------------------ |
696 -----------------------------Events------------------------------------ |
697 function CheckDeployedDead() |
697 function CheckDeployedDead() |
698 return deployedDead |
698 return deployedDead |
699 end |
699 end |
700 |
700 |
701 function DoDeployedDead() |
701 function DoDeployedDead() |
702 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), 0, 6000) |
702 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), -amSkip, 6000) |
703 DismissTeam(nativesTeamName) |
703 DismissTeam(nativesTeamName) |
704 DismissTeam(tribeTeamName) |
704 DismissTeam(tribeTeamName) |
705 DismissTeam(cyborgTeamName) |
705 DismissTeam(cyborgTeamName) |
706 EndTurn(true) |
706 EndTurn(true) |
707 end |
707 end |
757 return (nativesNum < startNativesNum and choice ~= choiceEliminate) or |
757 return (nativesNum < startNativesNum and choice ~= choiceEliminate) or |
758 (nativesNum < startNativesNum - 1 and choice == choiceEliminate) |
758 (nativesNum < startNativesNum - 1 and choice == choiceEliminate) |
759 end |
759 end |
760 |
760 |
761 function DoKilledOther() |
761 function DoKilledOther() |
762 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), 0, 6000) |
762 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), -amSkip, 6000) |
763 DismissTeam(nativesTeamName) |
763 DismissTeam(nativesTeamName) |
764 DismissTeam(tribeTeamName) |
764 DismissTeam(tribeTeamName) |
765 EndTurn(true) |
765 EndTurn(true) |
766 end |
766 end |
767 |
767 |