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 EarthquakeScroll : SpellScroll
{
[Constructible]
public EarthquakeScroll() : this(1)
{
}
[Constructible]
public EarthquakeScroll(int amount) : base(56, 0x1F65, amount)
public EarthquakeScroll(int amount = 1) : base(56, 0x1F65, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class EnergyVortexScroll : SpellScroll
{
[Constructible]
public EnergyVortexScroll() : this(1)
{
}
[Constructible]
public EnergyVortexScroll(int amount) : base(57, 0x1F66, amount)
public EnergyVortexScroll(int amount = 1) : base(57, 0x1F66, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class ResurrectionScroll : SpellScroll
{
[Constructible]
public ResurrectionScroll() : this(1)
{
}
[Constructible]
public ResurrectionScroll(int amount) : base(58, 0x1F67, amount)
public ResurrectionScroll(int amount = 1) : base(58, 0x1F67, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class SummonAirElementalScroll : SpellScroll
{
[Constructible]
public SummonAirElementalScroll() : this(1)
{
}
[Constructible]
public SummonAirElementalScroll(int amount) : base(59, 0x1F68, amount)
public SummonAirElementalScroll(int amount = 1) : base(59, 0x1F68, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class SummonDaemonScroll : SpellScroll
{
[Constructible]
public SummonDaemonScroll() : this(1)
{
}
[Constructible]
public SummonDaemonScroll(int amount) : base(60, 0x1F69, amount)
public SummonDaemonScroll(int amount = 1) : base(60, 0x1F69, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class SummonEarthElementalScroll : SpellScroll
{
[Constructible]
public SummonEarthElementalScroll() : this(1)
{
}
[Constructible]
public SummonEarthElementalScroll(int amount) : base(61, 0x1F6A, amount)
public SummonEarthElementalScroll(int amount = 1) : base(61, 0x1F6A, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class SummonFireElementalScroll : SpellScroll
{
[Constructible]
public SummonFireElementalScroll() : this(1)
{
}
[Constructible]
public SummonFireElementalScroll(int amount) : base(62, 0x1F6B, amount)
public SummonFireElementalScroll(int amount = 1) : base(62, 0x1F6B, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,12 +3,7 @@ namespace Server.Items
public class SummonWaterElementalScroll : SpellScroll
{
[Constructible]
public SummonWaterElementalScroll() : this(1)
{
}
[Constructible]
public SummonWaterElementalScroll(int amount) : base(63, 0x1F6C, amount)
public SummonWaterElementalScroll(int amount = 1) : base(63, 0x1F6C, amount)
{
}
@ -30,4 +25,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}