Suspicion tweaks.

This commit is contained in:
Steve 2016-05-17 13:49:21 +01:00
parent 3778b2e22e
commit e7bfeef2cd
1 changed files with 2 additions and 2 deletions

View File

@ -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)