mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user