fix: More spell variable cleanup (#850)
This commit is contained in:
parent
5df7bf6a75
commit
15b2d08ea2
35 changed files with 162 additions and 162 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue