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

@ -3,12 +3,7 @@ namespace Server.Items
public class Amber : Item
{
[Constructible]
public Amber() : this(1)
{
}
[Constructible]
public Amber(int amount) : base(0xF25)
public Amber(int amount = 1) : base(0xF25)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Amethyst : Item
{
[Constructible]
public Amethyst() : this(1)
{
}
[Constructible]
public Amethyst(int amount) : base(0xF16)
public Amethyst(int amount = 1) : base(0xF16)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Citrine : Item
{
[Constructible]
public Citrine() : this(1)
{
}
[Constructible]
public Citrine(int amount) : base(0xF15)
public Citrine(int amount = 1) : base(0xF15)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Diamond : Item
{
[Constructible]
public Diamond() : this(1)
{
}
[Constructible]
public Diamond(int amount) : base(0xF26)
public Diamond(int amount = 1) : base(0xF26)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Emerald : Item
{
[Constructible]
public Emerald() : this(1)
{
}
[Constructible]
public Emerald(int amount) : base(0xF10)
public Emerald(int amount = 1) : base(0xF10)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Ruby : Item
{
[Constructible]
public Ruby() : this(1)
{
}
[Constructible]
public Ruby(int amount) : base(0xF13)
public Ruby(int amount = 1) : base(0xF13)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Sapphire : Item
{
[Constructible]
public Sapphire() : this(1)
{
}
[Constructible]
public Sapphire(int amount) : base(0xF19)
public Sapphire(int amount = 1) : base(0xF19)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class StarSapphire : Item
{
[Constructible]
public StarSapphire() : this(1)
{
}
[Constructible]
public StarSapphire(int amount) : base(0xF21)
public StarSapphire(int amount = 1) : base(0xF21)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class Tourmaline : Item
{
[Constructible]
public Tourmaline() : this(1)
{
}
[Constructible]
public Tourmaline(int amount) : base(0xF2D)
public Tourmaline(int amount = 1) : base(0xF2D)
{
Stackable = true;
Amount = amount;
@ -35,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}