From 7471371b61ef4ca135fd3ea8c27649a2b0e40f50 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 16 May 2016 17:03:46 +0100 Subject: [PATCH] Raise suspicion levels if player fires guns or uses ECM when enemies are present. --- src/battle/player.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/battle/player.c b/src/battle/player.c index 6e3ecc8..080279a 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -311,6 +311,11 @@ static void handleMouse(void) { fireRocket(player); } + + if (battle.hasSuspicionLevel && !battle.numEnemies) + { + battle.suspicionLevel += (MAX_SUSPICION_LEVEL * 0.05); + } } if (isControl(CONTROL_ACCELERATE)) @@ -489,6 +494,11 @@ static void activateECM(void) addECMEffect(player); battle.stats[STAT_ECM]++; + + if (battle.hasSuspicionLevel && !battle.numEnemies) + { + battle.suspicionLevel += (MAX_SUSPICION_LEVEL * 0.25); + } } static void switchGuns(void)