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

@ -108,7 +108,7 @@ namespace Server.Spells.Necromancy
)
};
private static readonly Dictionary<Mobile, List<Mobile>> m_Table = new();
private static readonly Dictionary<Mobile, List<Mobile>> _table = new();
public AnimateDeadSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
{
@ -235,7 +235,7 @@ namespace Server.Spells.Necromancy
public static void Unregister(Mobile master, Mobile summoned)
{
if (master == null || !m_Table.TryGetValue(master, out var list))
if (master == null || !_table.TryGetValue(master, out var list))
{
return;
}
@ -244,7 +244,7 @@ namespace Server.Spells.Necromancy
if (list.Count == 0)
{
m_Table.Remove(master);
_table.Remove(master);
}
}
@ -255,9 +255,9 @@ namespace Server.Spells.Necromancy
return;
}
if (!m_Table.TryGetValue(master, out var list))
if (!_table.TryGetValue(master, out var list))
{
m_Table[master] = list = new List<Mobile>();
_table[master] = list = new List<Mobile>();
}
for (var i = list.Count - 1; i >= 0; --i)