equal
deleted
inserted
replaced
105 |
105 |
106 function onGearDelete(gear) |
106 function onGearDelete(gear) |
107 if gear == Pack then |
107 if gear == Pack then |
108 HogSay(CurrentHedgehog, loc("This will certianly come in handy."), SAY_THINK) |
108 HogSay(CurrentHedgehog, loc("This will certianly come in handy."), SAY_THINK) |
109 end |
109 end |
110 if (gear == enemy) and (GameOver == false) then |
110 -- Note: The victory sequence is done automatically by Hedgewars |
111 ShowMission(loc("Teamwork 2"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0) |
111 if ( ((gear == player) or (gear == hlayer)) and (GameOver == false)) then |
112 GameOver = true |
|
113 elseif ( ((gear == player) or (gear == hlayer)) and (GameOver == false)) then |
|
114 ShowMission(loc("Teamwork 2"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0) |
112 ShowMission(loc("Teamwork 2"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0) |
115 GameOver = true |
113 GameOver = true |
116 SetHealth(hlayer, 0) |
114 SetHealth(hlayer, 0) |
117 SetHealth(player, 0) |
115 SetHealth(player, 0) |
118 end |
116 end |