Deactivate jumpgate if Pandoran choose to attack the player.

This commit is contained in:
Steve 2016-05-18 09:47:27 +01:00
parent 592a020bb3
commit 8f438c4467
2 changed files with 4 additions and 1 deletions

View File

@ -986,7 +986,7 @@ void checkSuspicionLevel(void)
if (battle.numEnemies > 0 && battle.stats[STAT_TIME] % 5 == 0)
{
battle.suspicionLevel++;
battle.suspicionCoolOff = FPS * 5;
battle.suspicionCoolOff = FPS * 30;
}
if (battle.suspicionLevel >= MAX_SUSPICION_LEVEL)
@ -999,6 +999,8 @@ void checkSuspicionLevel(void)
destroyScript();
activateJumpgate(0);
activateTrespasserSpawner();
}
}

View File

@ -42,6 +42,7 @@ extern Entity *spawnMine(int type);
extern void addMessageBox(char *title, char *body, int type);
extern void destroyScript(void);
extern void activateTrespasserSpawner(void);
extern void activateJumpgate(int activate);
extern Battle battle;
extern Colors colors;