Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class BlessScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public BlessScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public BlessScroll(int amount) : base(16, 0x1F3D, amount)
|
||||
public BlessScroll(int amount = 1) : base(16, 0x1F3D, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class FireballScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public FireballScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public FireballScroll(int amount) : base(17, 0x1F3E, amount)
|
||||
public FireballScroll(int amount = 1) : base(17, 0x1F3E, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class MagicLockScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public MagicLockScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public MagicLockScroll(int amount) : base(18, 0x1F3F, amount)
|
||||
public MagicLockScroll(int amount = 1) : base(18, 0x1F3F, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class PoisonScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public PoisonScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public PoisonScroll(int amount) : base(19, 0x1F40, amount)
|
||||
public PoisonScroll(int amount = 1) : base(19, 0x1F40, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class TelekinisisScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public TelekinisisScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public TelekinisisScroll(int amount) : base(20, 0x1F41, amount)
|
||||
public TelekinisisScroll(int amount = 1) : base(20, 0x1F41, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class TeleportScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public TeleportScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public TeleportScroll(int amount) : base(21, 0x1F42, amount)
|
||||
public TeleportScroll(int amount = 1) : base(21, 0x1F42, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class UnlockScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public UnlockScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public UnlockScroll(int amount) : base(22, 0x1F43, amount)
|
||||
public UnlockScroll(int amount = 1) : base(22, 0x1F43, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class WallOfStoneScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public WallOfStoneScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public WallOfStoneScroll(int amount) : base(23, 0x1F44, amount)
|
||||
public WallOfStoneScroll(int amount = 1) : base(23, 0x1F44, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue