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
This commit is contained in:
Flugente
2013-11-07 20:43:55 +00:00
parent 6c9d6cec68
commit 1122203771
+7
View File
@@ -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;
}