From 8f438c44679a69b9ab67cbcd13e12511cf373a3b Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 18 May 2016 09:47:27 +0100 Subject: [PATCH] Deactivate jumpgate if Pandoran choose to attack the player. --- src/battle/ai.c | 4 +++- src/battle/ai.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index 61d6957..208cfa9 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -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(); } } diff --git a/src/battle/ai.h b/src/battle/ai.h index 9342aa4..21c4cab 100644 --- a/src/battle/ai.h +++ b/src/battle/ai.h @@ -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;