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,13 +3,7 @@ namespace Server.Items
public class AnimatedWeaponScroll : SpellScroll
{
[Constructible]
public AnimatedWeaponScroll()
: this(1)
{
}
[Constructible]
public AnimatedWeaponScroll(int amount)
public AnimatedWeaponScroll(int amount = 1)
: base(683, 0x2DA4, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class BombardScroll : SpellScroll
{
[Constructible]
public BombardScroll()
: this(1)
{
}
[Constructible]
public BombardScroll(int amount)
public BombardScroll(int amount = 1)
: base(688, 0x2DA9, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class CleansingWindsScroll : SpellScroll
{
[Constructible]
public CleansingWindsScroll()
: this(1)
{
}
[Constructible]
public CleansingWindsScroll(int amount)
public CleansingWindsScroll(int amount = 1)
: base(687, 0x2DA8, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class EagleStrikeScroll : SpellScroll
{
[Constructible]
public EagleStrikeScroll()
: this(1)
{
}
[Constructible]
public EagleStrikeScroll(int amount)
public EagleStrikeScroll(int amount = 1)
: base(682, 0x2DA3, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class EnchantScroll : SpellScroll
{
[Constructible]
public EnchantScroll()
: this(1)
{
}
[Constructible]
public EnchantScroll(int amount)
public EnchantScroll(int amount = 1)
: base(680, 0x2DA1, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class HailStormScroll : SpellScroll
{
[Constructible]
public HailStormScroll()
: this(1)
{
}
[Constructible]
public HailStormScroll(int amount)
public HailStormScroll(int amount = 1)
: base(690, 0x2DAB, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class HealingStoneScroll : SpellScroll
{
[Constructible]
public HealingStoneScroll()
: this(1)
{
}
[Constructible]
public HealingStoneScroll(int amount)
public HealingStoneScroll(int amount = 1)
: base(678, 0x2D9F, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class MassSleepScroll : SpellScroll
{
[Constructible]
public MassSleepScroll()
: this(1)
{
}
[Constructible]
public MassSleepScroll(int amount)
public MassSleepScroll(int amount = 1)
: base(686, 0x2DA7, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class NetherBoltScroll : SpellScroll
{
[Constructible]
public NetherBoltScroll()
: this(1)
{
}
[Constructible]
public NetherBoltScroll(int amount)
public NetherBoltScroll(int amount = 1)
: base(677, 0x2D9E, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class NetherCycloneScroll : SpellScroll
{
[Constructible]
public NetherCycloneScroll()
: this(1)
{
}
[Constructible]
public NetherCycloneScroll(int amount)
public NetherCycloneScroll(int amount = 1)
: base(691, 0x2DAC, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class PurgeMagicScroll : SpellScroll
{
[Constructible]
public PurgeMagicScroll()
: this(1)
{
}
[Constructible]
public PurgeMagicScroll(int amount)
public PurgeMagicScroll(int amount = 1)
: base(679, 0x2DA0, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class RisingColossusScroll : SpellScroll
{
[Constructible]
public RisingColossusScroll()
: this(1)
{
}
[Constructible]
public RisingColossusScroll(int amount)
public RisingColossusScroll(int amount = 1)
: base(692, 0x2DAD, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SleepScroll : SpellScroll
{
[Constructible]
public SleepScroll()
: this(1)
{
}
[Constructible]
public SleepScroll(int amount)
public SleepScroll(int amount = 1)
: base(681, 0x2DA2, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SpellPlagueScroll : SpellScroll
{
[Constructible]
public SpellPlagueScroll()
: this(1)
{
}
[Constructible]
public SpellPlagueScroll(int amount)
public SpellPlagueScroll(int amount = 1)
: base(689, 0x2DAA, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SpellTriggerScroll : SpellScroll
{
[Constructible]
public SpellTriggerScroll()
: this(1)
{
}
[Constructible]
public SpellTriggerScroll(int amount)
public SpellTriggerScroll(int amount = 1)
: base(685, 0x2DA6, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class StoneFormScroll : SpellScroll
{
[Constructible]
public StoneFormScroll()
: this(1)
{
}
[Constructible]
public StoneFormScroll(int amount)
public StoneFormScroll(int amount = 1)
: base(684, 0x2DA5, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}