Raise suspicion levels if player fires guns or uses ECM when enemies are present.

This commit is contained in:
Steve 2016-05-16 17:03:46 +01:00
parent 2af1fa6476
commit 7471371b61
1 changed files with 10 additions and 0 deletions

View File

@ -311,6 +311,11 @@ static void handleMouse(void)
{ {
fireRocket(player); fireRocket(player);
} }
if (battle.hasSuspicionLevel && !battle.numEnemies)
{
battle.suspicionLevel += (MAX_SUSPICION_LEVEL * 0.05);
}
} }
if (isControl(CONTROL_ACCELERATE)) if (isControl(CONTROL_ACCELERATE))
@ -489,6 +494,11 @@ static void activateECM(void)
addECMEffect(player); addECMEffect(player);
battle.stats[STAT_ECM]++; battle.stats[STAT_ECM]++;
if (battle.hasSuspicionLevel && !battle.numEnemies)
{
battle.suspicionLevel += (MAX_SUSPICION_LEVEL * 0.25);
}
} }
static void switchGuns(void) static void switchGuns(void)