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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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