fix: Weapons cleanup (#857)

* Removes linq
* Removes list allocation for area effect
* Removes redundant swing overload
* Cleans up code
This commit is contained in:
Kamron Batman 2021-11-21 09:19:09 -08:00 committed by GitHub
parent 09613e2536
commit 43db0d09c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 173 additions and 215 deletions

View file

@ -22,8 +22,7 @@ namespace Server
{
int MaxRange { get; }
void OnBeforeSwing(Mobile attacker, Mobile defender);
TimeSpan OnSwing(Mobile attacker, Mobile defender);
TimeSpan OnSwing(Mobile attacker, Mobile defender, double damageBonus);
TimeSpan OnSwing(Mobile attacker, Mobile defender, double damageBonus = 1.0);
void GetStatusDamage(Mobile from, out int min, out int max);
}