fix: Fixes skill requirements and cleans up magery spells (#870)

* Preps damage stacking for mysticism, necromancy fixes, and spellweaving
* Removes extra LINQ allocations
* Fixes skill requirements for magery spells.
This commit is contained in:
Kamron Batman 2021-12-05 09:40:57 -08:00 • committed by GitHub
parent 1cf7b6c056
commit 4f9714818d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 311 additions and 382 deletions

View file

@ -43,24 +43,13 @@ namespace Server.Spells.Third
{
if (Caster.InRange(m, 2))
{
var total = (Caster.Skills.Magery.Fixed + Caster.Skills.Poisoning.Fixed) / 2;
if (total >= 1000)
level = (Caster.Skills.Magery.Fixed + Caster.Skills.Poisoning.Fixed) / 2 switch
{
level = 3;
}
else if (total > 850)
{
level = 2;
}
else if (total > 650)
{
level = 1;
}
else
{
level = 0;
}
>= 1000 => 3,
> 850 => 2,
> 650 => 1,
_ => 0
};
}
else
{