equal
deleted
inserted
replaced
46 end |
46 end |
47 end |
47 end |
48 |
48 |
49 --Will end the turn + give escape time |
49 --Will end the turn + give escape time |
50 function EndTurnCS(seconds) |
50 function EndTurnCS(seconds) |
|
51 -- Set attacked state to prevent “Boring” sound to be played |
|
52 SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstAttacked)) |
51 --set escape time |
53 --set escape time |
52 TurnTimeLeft = GetAwayTime*10*seconds |
54 TurnTimeLeft = GetAwayTime*10*seconds |
53 if TurnTimeLeft > 0 then |
55 if TurnTimeLeft > 0 then |
54 Retreat(TurnTimeLeft, false) |
56 Retreat(TurnTimeLeft, false) |
55 end |
57 end |