mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fix to stackable throwables:
Stop assertion failure for stack of 6 throwables. Report correct damage and AP for stacked throwables. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1036 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5690,7 +5690,11 @@ UINT8 GetDamage ( OBJECTTYPE *pObj )
|
||||
}
|
||||
else
|
||||
{
|
||||
UINT8 ubDamage = Weapon[ pObj->usItem ].ubImpact + GetDamageBonus(pObj);
|
||||
UINT8 ubDamage = Weapon[ pObj->usItem ].ubImpact;
|
||||
if (Item[ pObj->usItem ].ubPerPocket == 0)
|
||||
{
|
||||
ubDamage += GetDamageBonus(pObj);
|
||||
}
|
||||
return min(255, (UINT8)( (ubDamage) + ( (double)ubDamage / 100) * gGameExternalOptions.ubGunDamageMultiplier ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user