Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -71,7 +71,7 @@ namespace Server.Items
|
|||
|
||||
public class DisguiseGump : Gump
|
||||
{
|
||||
private static DisguiseEntry[] m_HairEntries =
|
||||
private static readonly DisguiseEntry[] m_HairEntries =
|
||||
{
|
||||
new DisguiseEntry(8251, 50700, 0, 5, 1011052), // Short
|
||||
new DisguiseEntry(8261, 60710, 0, 3, 1011047), // Pageboy
|
||||
|
|
@ -85,7 +85,7 @@ namespace Server.Items
|
|||
new DisguiseEntry(0, 0, 0, 0, 1011051) // None
|
||||
};
|
||||
|
||||
private static DisguiseEntry[] m_BeardEntries =
|
||||
private static readonly DisguiseEntry[] m_BeardEntries =
|
||||
{
|
||||
new DisguiseEntry(8269, 50906, 0, 0, 1011401), // Vandyke
|
||||
new DisguiseEntry(8257, 50808, 0, -2, 1011062), // Mustache
|
||||
|
|
@ -97,9 +97,9 @@ namespace Server.Items
|
|||
new DisguiseEntry(0, 0, 0, 0, 1011051) // None
|
||||
};
|
||||
|
||||
private Mobile m_From;
|
||||
private DisguiseKit m_Kit;
|
||||
private bool m_Used;
|
||||
private readonly Mobile m_From;
|
||||
private readonly DisguiseKit m_Kit;
|
||||
private readonly bool m_Used;
|
||||
|
||||
public DisguiseGump(Mobile from, DisguiseKit kit, bool startAtHair, bool used) : base(50, 50)
|
||||
{
|
||||
|
|
@ -228,11 +228,11 @@ namespace Server.Items
|
|||
|
||||
private class DisguiseEntry
|
||||
{
|
||||
public int m_GumpID;
|
||||
public int m_ItemID;
|
||||
public int m_Number;
|
||||
public int m_OffsetX;
|
||||
public int m_OffsetY;
|
||||
public readonly int m_GumpID;
|
||||
public readonly int m_ItemID;
|
||||
public readonly int m_Number;
|
||||
public readonly int m_OffsetX;
|
||||
public readonly int m_OffsetY;
|
||||
|
||||
public DisguiseEntry(int itemID, int gumpID, int ox, int oy, int name)
|
||||
{
|
||||
|
|
@ -247,7 +247,7 @@ namespace Server.Items
|
|||
|
||||
public class DisguiseTimers
|
||||
{
|
||||
public static Dictionary<Mobile, Timer> Timers{ get; } = new Dictionary<Mobile, Timer>();
|
||||
public static Dictionary<Mobile, Timer> Timers { get; } = new Dictionary<Mobile, Timer>();
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
|
|
@ -294,7 +294,7 @@ namespace Server.Items
|
|||
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private Mobile m_Player;
|
||||
private readonly Mobile m_Player;
|
||||
|
||||
public InternalTimer(Mobile m, TimeSpan delay) : base(delay)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Server.Items
|
|||
|
||||
public DisguisePersistance(Serial serial) : base(serial) => Instance = this;
|
||||
|
||||
public static DisguisePersistance Instance{ get; private set; }
|
||||
public static DisguisePersistance Instance { get; private set; }
|
||||
|
||||
public override string DefaultName => "Disguise Persistance - Internal";
|
||||
|
||||
|
|
@ -50,18 +50,18 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
int count = reader.ReadInt();
|
||||
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
Mobile m = reader.ReadMobile();
|
||||
DisguiseTimers.CreateTimer(m, reader.ReadTimeSpan());
|
||||
m.NameMod = reader.ReadString();
|
||||
}
|
||||
int count = reader.ReadInt();
|
||||
|
||||
break;
|
||||
}
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
Mobile m = reader.ReadMobile();
|
||||
DisguiseTimers.CreateTimer(m, reader.ReadTimeSpan());
|
||||
m.NameMod = reader.ReadString();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,16 +5,15 @@ namespace Server.Items
|
|||
{
|
||||
public interface ILockpickable : IPoint2D
|
||||
{
|
||||
int LockLevel{ get; set; }
|
||||
bool Locked{ get; set; }
|
||||
Mobile Picker{ get; set; }
|
||||
int MaxLockLevel{ get; set; }
|
||||
int RequiredSkill{ get; set; }
|
||||
int LockLevel { get; set; }
|
||||
bool Locked { get; set; }
|
||||
Mobile Picker { get; set; }
|
||||
int MaxLockLevel { get; set; }
|
||||
int RequiredSkill { get; set; }
|
||||
|
||||
void LockPick(Mobile from);
|
||||
}
|
||||
|
||||
|
||||
[Flippable(0x14fc, 0x14fb)]
|
||||
public class Lockpick : Item
|
||||
{
|
||||
|
|
@ -54,7 +53,7 @@ namespace Server.Items
|
|||
|
||||
private class InternalTarget : Target
|
||||
{
|
||||
private Lockpick m_Item;
|
||||
private readonly Lockpick m_Item;
|
||||
|
||||
public InternalTarget(Lockpick item) : base(1, false, TargetFlags.None) => m_Item = item;
|
||||
|
||||
|
|
@ -88,9 +87,9 @@ namespace Server.Items
|
|||
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private Mobile m_From;
|
||||
private ILockpickable m_Item;
|
||||
private Lockpick m_Lockpick;
|
||||
private readonly Mobile m_From;
|
||||
private readonly ILockpickable m_Item;
|
||||
private readonly Lockpick m_Lockpick;
|
||||
|
||||
public InternalTimer(Mobile from, ILockpickable item, Lockpick lockpick) : base(TimeSpan.FromSeconds(3.0))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue