fix: More spell variable cleanup (#850)

This commit is contained in:
Kamron Batman 2021-11-14 18:48:44 -08:00 • committed by GitHub
parent 5df7bf6a75
commit 15b2d08ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 162 additions and 162 deletions

View file

@ -19,7 +19,7 @@ namespace Server.Spells.Mysticism
Reagent.Garlic
);
private static readonly Dictionary<Mobile, ResistanceMod[]> m_Table = new();
private static readonly Dictionary<Mobile, ResistanceMod[]> _table = new();
public StoneFormSpell(Mobile caster, Item scroll = null)
: base(caster, scroll, _info)
@ -36,7 +36,7 @@ namespace Server.Spells.Mysticism
EventSink.PlayerDeath += OnPlayerDeath;
}
public static bool UnderEffect(Mobile m) => m_Table.ContainsKey(m);
public static bool UnderEffect(Mobile m) => _table.ContainsKey(m);
public override bool CheckCast()
{
@ -118,7 +118,7 @@ namespace Server.Spells.Mysticism
Caster.AddResistanceMod(mods[i]);
}
m_Table[Caster] = mods;
_table[Caster] = mods;
Caster.PlaySound(0x65A);
Caster.Delta(MobileDelta.Resistances);
@ -145,7 +145,7 @@ namespace Server.Spells.Mysticism
public static void RemoveEffects(Mobile m)
{
if (!m_Table.Remove(m, out var mods))
if (!_table.Remove(m, out var mods))
{
return;
}