mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- capped physical resistance at 95%
- mercs with the 'airdrop' background property do no get the interrupt penalty upon landing only if they have a positive bonus - Fix: supression resistence wasn't applied as a percentage - adjusted background min/max values git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6665 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -14296,9 +14296,9 @@ INT32 SOLDIERTYPE::GetDamageResistance(BOOLEAN fAutoResolve, BOOLEAN fCalcBreath
|
||||
|
||||
resistance += this->GetBackgroundValue(BG_RESI_PHYSICAL);
|
||||
|
||||
// resistance is between -100% and 100%
|
||||
resistance = max( 0, resistance);
|
||||
resistance = min(100, resistance);
|
||||
// resistance is between -100% and 95%
|
||||
resistance = max(-100, resistance);
|
||||
resistance = min( 95, resistance);
|
||||
|
||||
return( resistance );
|
||||
}
|
||||
@@ -16983,7 +16983,7 @@ INT16 SOLDIERTYPE::GetInterruptModifier( UINT8 usDistance )
|
||||
bonus -= 3;
|
||||
|
||||
// if we are airdropping and do not have the 'airdrop' background, we receive a substantial malus to our interrupt level. Roping down takes a lot of attention
|
||||
if ( this->bSoldierFlagMask & SOLDIER_AIRDROP_TURN && (this->GetBackgroundValue(BG_AIRDROP) == 0) )
|
||||
if ( this->bSoldierFlagMask & SOLDIER_AIRDROP_TURN && (this->GetBackgroundValue(BG_AIRDROP) <= 0) )
|
||||
bonus -= 8;
|
||||
|
||||
return bonus;
|
||||
|
||||
Reference in New Issue
Block a user