Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -8,15 +8,14 @@ namespace Server.Spells.Sixth
{
public class ParalyzeFieldSpell : MagerySpell, ISpellTargetingPoint3D
{
private static SpellInfo m_Info = new SpellInfo(
private static readonly SpellInfo m_Info = new SpellInfo(
"Paralyze Field", "In Ex Grav",
230,
9012,
false,
Reagent.BlackPearl,
Reagent.Ginseng,
Reagent.SpidersSilk
);
Reagent.SpidersSilk);
public ParalyzeFieldSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
{
@ -144,15 +143,15 @@ namespace Server.Spells.Sixth
switch (version)
{
case 0:
{
m_Caster = reader.ReadMobile();
m_End = reader.ReadDeltaTime();
{
m_Caster = reader.ReadMobile();
m_End = reader.ReadDeltaTime();
m_Timer = new InternalTimer(this, m_End - DateTime.UtcNow);
m_Timer.Start();
m_Timer = new InternalTimer(this, m_End - DateTime.UtcNow);
m_Timer.Start();
break;
}
break;
}
}
}
@ -197,7 +196,7 @@ namespace Server.Spells.Sixth
private class InternalTimer : Timer
{
private Item m_Item;
private readonly Item m_Item;
public InternalTimer(Item item, TimeSpan duration) : base(duration)
{