fix: Cleanup IPoint3D calls (#704)

This commit is contained in:
Kamron Batman 2021-08-19 09:11:48 -07:00 • committed by GitHub
parent 788b04b958
commit 3293ffcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 158 additions and 264 deletions

View file

@ -203,22 +203,13 @@ namespace Server.Misc
{
var medPoints = (from.Int + from.Skills.Meditation.Value) * 0.5;
if (medPoints <= 0)
rate = medPoints switch
{
rate = 7.0;
}
else if (medPoints <= 100)
{
rate = 7.0 - 239 * medPoints / 2400 + 19 * medPoints * medPoints / 48000;
}
else if (medPoints < 120)
{
rate = 1.0;
}
else
{
rate = 0.75;
}
<= 0 => 7.0,
<= 100 => 7.0 - 239 * medPoints / 2400 + 19 * medPoints * medPoints / 48000,
< 120 => 1.0,
_ => 0.75
};
rate += armorPenalty;