fix(core): Converts mobile stats packets (#360)

- [X] Converts mobile stats packets
- [X] Removes human racial from non-players
This commit is contained in:
Kamron Batman 2020-12-27 14:44:03 -08:00 • committed by GitHub
parent d73afdba8e
commit 5b69f1d389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 413 additions and 423 deletions

View file

@ -61,9 +61,14 @@ namespace Server.Misc
points += 40;
}
if (Core.ML && from.Race == Race.Human) // Is this affected by the cap?
if (Core.ML && from is PlayerMobile) // does racial bonus go before/after?
{
points += 2;
if (from.Race == Race.Human)
{
points += 2;
}
points = Math.Min(points, 18);
}
if (points < 0)
@ -71,11 +76,6 @@ namespace Server.Misc
points = 0;
}
if (Core.ML && from is PlayerMobile) // does racial bonus go before/after?
{
points = Math.Min(points, 18);
}
if (CheckTransform(from, typeof(HorrificBeastSpell)))
{
points += 20;
@ -86,7 +86,7 @@ namespace Server.Misc
points += from.Skills.Ninjitsu.Fixed / 30;
}
return TimeSpan.FromSeconds(1.0 / (0.1 * (1 + points)));
return TimeSpan.FromSeconds(10.0 / (1 + points));
}
private static TimeSpan Mobile_StamRegenRate(Mobile from)