fix: Added comment for magery circle formula (#1095)

This commit is contained in:
Stefano Merotta 2022-06-28 18:58:51 +02:00 committed by GitHub
parent a37b8b285c
commit f4cbe82d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,14 @@ namespace Server.Spells
{
private static readonly int[] _manaTable = { 4, 6, 9, 11, 14, 20, 40, 50 };
// Starts at Circle -2 to account for scrolls
/*
* Starts at Circle -2 to account for scrolls
* Mana requirements formula: (14 * (circle - 1)) + 2 = 50% probability
* Add or subtract 20 for max or min limits
*/
private static readonly double[] _requiredSkill = Core.ML ?
new[] { -46.0, -32.0, 0.0, -4.0, 10.0, 24.0, 38.0, 52.0, 66.0, 80.0 } :
new[] { -46.0, -32.0, -18.0, -4.0, 10.0, 24.0, 38.0, 52.0, 66.0, 80.0 } :
new[] { -50.0, -30.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0 };
public MagerySpell(Mobile caster, Item scroll, SpellInfo info) : base(caster, scroll, info)