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 BaseOuterLegs : BaseClothing
{
public BaseOuterLegs(int itemID) : this(itemID, 0)
{
}
public BaseOuterLegs(int itemID, int hue) : base(itemID, Layer.OuterLegs, hue)
public BaseOuterLegs(int itemID, int hue = 0) : base(itemID, Layer.OuterLegs, hue)
{
}
@ -33,12 +29,7 @@ namespace Server.Items
public class FurSarong : BaseOuterLegs
{
[Constructible]
public FurSarong() : this(0)
{
}
[Constructible]
public FurSarong(int hue) : base(0x230C, hue)
public FurSarong(int hue = 0) : base(0x230C, hue)
{
Weight = 3.0;
}
@ -69,12 +60,7 @@ namespace Server.Items
public class Skirt : BaseOuterLegs
{
[Constructible]
public Skirt() : this(0)
{
}
[Constructible]
public Skirt(int hue) : base(0x1516, hue)
public Skirt(int hue = 0) : base(0x1516, hue)
{
Weight = 4.0;
}
@ -102,12 +88,7 @@ namespace Server.Items
public class Kilt : BaseOuterLegs
{
[Constructible]
public Kilt() : this(0)
{
}
[Constructible]
public Kilt(int hue) : base(0x1537, hue)
public Kilt(int hue = 0) : base(0x1537, hue)
{
Weight = 2.0;
}
@ -135,12 +116,7 @@ namespace Server.Items
public class Hakama : BaseOuterLegs
{
[Constructible]
public Hakama() : this(0)
{
}
[Constructible]
public Hakama(int hue) : base(0x279A, hue)
public Hakama(int hue = 0) : base(0x279A, hue)
{
Weight = 2.0;
}
@ -163,4 +139,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}