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

@ -4,14 +4,14 @@ namespace Server.Items
{
public class PlagueBeastBackpack : BaseContainer
{
private static int[,,] m_Positions =
private static readonly int[,,] m_Positions =
{
{ { 275, 85 }, { 360, 111 }, { 375, 184 }, { 332, 228 }, { 141, 105 }, { 189, 75 } },
{ { 274, 34 }, { 327, 89 }, { 354, 168 }, { 304, 225 }, { 113, 86 }, { 189, 75 } },
{ { 276, 79 }, { 369, 117 }, { 372, 192 }, { 336, 230 }, { 141, 116 }, { 189, 75 } }
};
private static int[] m_BrainHues =
private static readonly int[] m_BrainHues =
{
0x2B, 0x42, 0x54, 0x60
};

View file

@ -5,7 +5,7 @@ namespace Server.Items
{
public class PlagueBeastBlood : PlagueBeastComponent
{
private Timer m_Timer;
private readonly Timer m_Timer;
public PlagueBeastBlood() : base(0x122C, 0) => m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(1.5), TimeSpan.FromSeconds(1.5), 3, Hemorrhage);

View file

@ -42,7 +42,7 @@ namespace Server.Items
private class InternalTimer : Timer
{
private bool m_Delay;
private PlagueBeastHeart m_Heart;
private readonly PlagueBeastHeart m_Heart;
public InternalTimer(PlagueBeastHeart heart) : base(TimeSpan.FromSeconds(0.5), TimeSpan.FromSeconds(0.5)) => m_Heart = heart;

View file

@ -76,7 +76,7 @@ namespace Server.Items
{
}
public PlagueBeastOrgan Organ{ get; set; }
public PlagueBeastOrgan Organ { get; set; }
public bool IsBrain => ItemID == 0x1CF0;
@ -95,7 +95,7 @@ namespace Server.Items
public override bool OnDragDrop(Mobile from, Item dropped)
{
if (Organ?.OnDropped(from, dropped, this) == true && dropped is PlagueBeastComponent component)
Organ.Components.Add(component);
Organ.Components.Add(component);
return true;
}

View file

@ -19,7 +19,7 @@ namespace Server.Items
}
[CommandProperty(AccessLevel.GameMaster)]
public bool Cut{ get; set; }
public bool Cut { get; set; }
public override string DefaultName => "a plague beast mutation core";

View file

@ -24,11 +24,11 @@ namespace Server.Items
public virtual bool IsCuttable => false;
public List<PlagueBeastComponent> Components{ get; private set; }
public List<PlagueBeastComponent> Components { get; private set; }
public int BrainHue{ get; set; }
public int BrainHue { get; set; }
public bool Opened{ get; set; }
public bool Opened { get; set; }
public virtual void Initialize()
{
@ -212,7 +212,7 @@ namespace Server.Items
public class PlagueBeastRubbleOrgan : PlagueBeastOrgan
{
private static int[] m_Hues =
private static readonly int[] m_Hues =
{
0xD, 0x17, 0x2B, 0x42, 0x54, 0x5D
};

View file

@ -13,7 +13,7 @@ namespace Server.Items
{
}
public bool Cut{ get; private set; }
public bool Cut { get; private set; }
public override bool Scissor(Mobile from, Scissors scissors)
{