From 11222037710287f66457a6063d1cb6d9cd156d3a Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 7 Nov 2013 20:43:55 +0000 Subject: [PATCH] Fix: radio listening did not work git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6566 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tactical/Soldier Control.cpp b/Tactical/Soldier Control.cpp index af9f8a96..60fb8301 100644 --- a/Tactical/Soldier Control.cpp +++ b/Tactical/Soldier Control.cpp @@ -14279,6 +14279,9 @@ INT8 SOLDIERTYPE::GetHearingBonus() else bonus += this->GetBackgroundValue(BG_PERC_HEARING_DAY); + if ( this->IsRadioListening() ) + bonus += gSkillTraitValues.sVOListeningHearingBonus; + return bonus; } @@ -16885,6 +16888,10 @@ UINT8 SOLDIERTYPE::GetMoraleThreshold() INT16 SOLDIERTYPE::GetInterruptModifier( UINT8 usDistance ) { INT16 bonus = 0; + + // if we are listening on our radio, our mind will be somewhere else... we will be less focused + if ( this->IsRadioListening() ) + bonus -= 3; return bonus; }