#W# Weapons: Weapon damage change for durability.
This commit is contained in:
parent
ebae100e6a
commit
800c0227da
1 changed files with 8 additions and 1 deletions
|
|
@ -2674,9 +2674,16 @@ public abstract partial class BaseWeapon
|
|||
{
|
||||
var scale = 100;
|
||||
|
||||
if (_maxHitPoints > 0 && _hitPoints < _maxHitPoints)
|
||||
if (_maxHitPoints > 0)
|
||||
{
|
||||
if (_hitPoints >= _maxHitPoints * 0.90)
|
||||
{
|
||||
scale = 110;
|
||||
}
|
||||
else
|
||||
{
|
||||
scale = 50 + 50 * _hitPoints / _maxHitPoints;
|
||||
}
|
||||
}
|
||||
|
||||
return AOS.Scale(damage, scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue