Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 • committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -23,12 +23,7 @@ namespace Server.Items
private static DateTime WorldStart = new DateTime(1997, 9, 1);
[Constructible]
public Clock() : this(0x104B)
{
}
[Constructible]
public Clock(int itemID) : base(itemID)
public Clock(int itemID = 0x104B) : base(itemID)
{
Weight = 3.0;
}
@ -149,11 +144,6 @@ namespace Server.Items
[Flippable(0x104B, 0x104C)]
public class ClockRight : Clock
{
[Constructible]
public ClockRight() : base(0x104B)
{
}
public ClockRight(Serial serial) : base(serial)
{
}
@ -199,4 +189,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}