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

@ -5,7 +5,7 @@ namespace Server.Items
{
public class MoonstoneGate : Moongate
{
private Mobile m_Caster;
private readonly Mobile m_Caster;
public MoonstoneGate(Point3D loc, Map map, Map targetMap, Mobile caster, int hue) : base(loc, targetMap)
{
@ -32,7 +32,7 @@ namespace Server.Items
Party casterParty = Party.Get(m_Caster);
Party userParty = Party.Get(m);
if (m == m_Caster || casterParty != null && userParty == casterParty)
if (m == m_Caster || (casterParty != null && userParty == casterParty))
base.CheckGate(m, range);
}
@ -44,7 +44,7 @@ namespace Server.Items
Party casterParty = Party.Get(m_Caster);
Party userParty = Party.Get(m);
if (m == m_Caster || casterParty != null && userParty == casterParty)
if (m == m_Caster || (casterParty != null && userParty == casterParty))
base.UseGate(m);
}
@ -66,7 +66,7 @@ namespace Server.Items
private class InternalTimer : Timer
{
private Item m_Item;
private readonly Item m_Item;
public InternalTimer(Item item) : base(TimeSpan.FromSeconds(30.0))
{