From e7bfeef2cd2c4a231da50199cb591c2e5ad7b81a Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 17 May 2016 13:49:21 +0100 Subject: [PATCH] Suspicion tweaks. --- src/battle/ai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index cd8fee3..61d6957 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -977,7 +977,7 @@ void checkSuspicionLevel(void) battle.suspicionCoolOff = MAX(battle.suspicionCoolOff - 1, 0); /* raise if player is too far away and there are no enemies */ - if (battle.suspicionCoolOff == 0 && battle.numEnemies == 0 && getDistance(self->x, self->y, player->x, player->y) > SCREEN_HEIGHT / 2) + if (battle.suspicionCoolOff == 0 && battle.numEnemies == 0 && getDistance(self->x, self->y, player->x, player->y) > SCREEN_HEIGHT) { battle.suspicionLevel++; } @@ -986,7 +986,7 @@ void checkSuspicionLevel(void) if (battle.numEnemies > 0 && battle.stats[STAT_TIME] % 5 == 0) { battle.suspicionLevel++; - battle.suspicionCoolOff = FPS * 10; + battle.suspicionCoolOff = FPS * 5; } if (battle.suspicionLevel >= MAX_SUSPICION_LEVEL)