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

@ -48,7 +48,7 @@ namespace Server.Items
public class SpecialBeardDyeGump : Gump
{
private static SpecialBeardDyeEntry[] m_Entries =
private static readonly SpecialBeardDyeEntry[] m_Entries =
{
new SpecialBeardDyeEntry("*****", 12, 10),
new SpecialBeardDyeEntry("*****", 32, 5),
@ -60,7 +60,7 @@ namespace Server.Items
new SpecialBeardDyeEntry("*****", 1153, 2)
};
private SpecialBeardDye m_SpecialBeardDye;
private readonly SpecialBeardDye m_SpecialBeardDye;
public SpecialBeardDyeGump(SpecialBeardDye dye) : base(0, 0)
{
@ -103,7 +103,7 @@ namespace Server.Items
if (!m_SpecialBeardDye.IsChildOf(m.Backpack))
{
m.SendLocalizedMessage(1042010); //You must have the objectin your backpack to use it.
m.SendLocalizedMessage(1042010); // You must have the objectin your backpack to use it.
return;
}
@ -152,11 +152,11 @@ namespace Server.Items
HueCount = hueCount;
}
public string Name{ get; }
public string Name { get; }
public int HueStart{ get; }
public int HueStart { get; }
public int HueCount{ get; }
public int HueCount { get; }
}
}
}