Skip to content

Commit

Permalink
fix: Fixes damage scale for AOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Aug 16, 2024
1 parent 71a6812 commit 91e76ca
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Projects/UOContent/Items/Weapons/BaseWeapon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2552,12 +2552,9 @@ public virtual double ScaleDamageAOS(Mobile attacker, double damage, bool checkS
var strengthBonus = GetBonus(attacker.Str, 0.300, 100.0, 5.00);
var anatomyBonus = GetBonus(attacker.Skills.Anatomy.Value, 0.500, 100.0, 5.00);
var tacticsBonus = GetBonus(attacker.Skills.Tactics.Value, 0.625, 100.0, 6.25);
var lumberBonus = GetBonus(attacker.Skills.Lumberjacking.Value, 0.200, 100.0, 10.00);

if (Type != WeaponType.Axe)
{
lumberBonus = 0.0;
}
var lumberBonus = Type == WeaponType.Axe
? GetBonus(attacker.Skills.Lumberjacking.Value, 0.200, 100.0, 10.00)
: 0.0;

/*
* The following are damage modifiers whose effect shows on the status bar.
Expand Down Expand Up @@ -2595,9 +2592,10 @@ public virtual double ScaleDamageAOS(Mobile attacker, double damage, bool checkS
damageBonus = 100;
}

var totalBonus = strengthBonus + anatomyBonus + tacticsBonus + lumberBonus + damageBonus + GetDamageBonus();
var totalBonus = strengthBonus + anatomyBonus + tacticsBonus + lumberBonus +
(damageBonus + GetDamageBonus()) / 100.0;

return damage + damage * totalBonus / 100.0;
return damage + damage * totalBonus;
}

public virtual int ComputeDamageAOS(Mobile attacker, Mobile defender) =>
Expand Down

0 comments on commit 91e76ca

Please sign in to comment.