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

@ -2,11 +2,7 @@ namespace Server.Items
{
public abstract class BaseWaist : BaseClothing
{
public BaseWaist(int itemID) : this(itemID, 0)
{
}
public BaseWaist(int itemID, int hue) : base(itemID, Layer.Waist, hue)
public BaseWaist(int itemID, int hue = 0) : base(itemID, Layer.Waist, hue)
{
}
@ -33,12 +29,7 @@ namespace Server.Items
public class HalfApron : BaseWaist
{
[Constructible]
public HalfApron() : this(0)
{
}
[Constructible]
public HalfApron(int hue) : base(0x153b, hue)
public HalfApron(int hue = 0) : base(0x153b, hue)
{
Weight = 2.0;
}
@ -66,12 +57,7 @@ namespace Server.Items
public class Obi : BaseWaist
{
[Constructible]
public Obi() : this(0)
{
}
[Constructible]
public Obi(int hue) : base(0x27A0, hue)
public Obi(int hue = 0) : base(0x27A0, hue)
{
Weight = 1.0;
}
@ -99,12 +85,7 @@ namespace Server.Items
public class WoodlandBelt : BaseWaist
{
[Constructible]
public WoodlandBelt() : this(0)
{
}
[Constructible]
public WoodlandBelt(int hue) : base(0x2B68, hue)
public WoodlandBelt(int hue = 0) : base(0x2B68, hue)
{
Weight = 4.0;
}
@ -141,4 +122,4 @@ namespace Server.Items
int version = reader.ReadEncodedInt();
}
}
}
}