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

@ -6,7 +6,7 @@ namespace Server.Spells.Ninjitsu
{
public class KiAttack : NinjaMove
{
private static readonly Dictionary<Mobile, KiAttackTimer> m_Table = new();
private static readonly Dictionary<Mobile, KiAttackTimer> _table = new();
public override int BaseMana => 25;
public override double RequiredSkill => 80.0;
@ -22,7 +22,7 @@ namespace Server.Spells.Ninjitsu
}
var t = new KiAttackTimer(from);
m_Table[from] = t;
_table[from] = t;
t.Start();
}
@ -86,7 +86,7 @@ namespace Server.Spells.Ninjitsu
public override void OnClearMove(Mobile from)
{
if (m_Table.Remove(from, out var t))
if (_table.Remove(from, out var t))
{
t.Stop();
}
@ -94,7 +94,7 @@ namespace Server.Spells.Ninjitsu
public static double GetBonus(Mobile from)
{
if (!m_Table.TryGetValue(from, out var t))
if (!_table.TryGetValue(from, out var t))
{
return 0;
}
@ -121,7 +121,7 @@ namespace Server.Spells.Ninjitsu
ClearCurrentMove(m_Mobile);
m_Mobile.SendLocalizedMessage(1063102); // You failed to complete your Ki Attack in time.
m_Table.Remove(m_Mobile);
_table.Remove(m_Mobile);
}
}
}