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,8 +8,8 @@ namespace Server.Items
public static readonly TimeSpan AttackEffectDuration = TimeSpan.FromSeconds(10.0);
public static readonly TimeSpan DefenseEffectDuration = TimeSpan.FromSeconds(8.0);
private static HashSet<Mobile> m_AttackTable = new HashSet<Mobile>();
private static HashSet<Mobile> m_DefenseTable = new HashSet<Mobile>();
private static readonly HashSet<Mobile> m_AttackTable = new HashSet<Mobile>();
private static readonly HashSet<Mobile> m_DefenseTable = new HashSet<Mobile>();
public static bool IsUnderAttackEffect(Mobile m) => m_AttackTable.Contains(m);
@ -53,7 +53,7 @@ namespace Server.Items
private class AttackTimer : Timer
{
private Mobile m_Player;
private readonly Mobile m_Player;
public AttackTimer(Mobile player) : base(AttackEffectDuration)
{
@ -69,7 +69,7 @@ namespace Server.Items
private class DefenseTimer : Timer
{
private Mobile m_Player;
private readonly Mobile m_Player;
public DefenseTimer(Mobile player) : base(DefenseEffectDuration)
{