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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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