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 BladeSpiritsScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public BladeSpiritsScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public BladeSpiritsScroll(int amount) : base(32, 0x1F4D, amount)
|
||||
public BladeSpiritsScroll(int amount = 1) : base(32, 0x1F4D, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class DispelFieldScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public DispelFieldScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public DispelFieldScroll(int amount) : base(33, 0x1F4E, amount)
|
||||
public DispelFieldScroll(int amount = 1) : base(33, 0x1F4E, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class IncognitoScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public IncognitoScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public IncognitoScroll(int amount) : base(34, 0x1F4F, amount)
|
||||
public IncognitoScroll(int amount = 1) : base(34, 0x1F4F, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class MagicReflectScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public MagicReflectScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public MagicReflectScroll(int amount) : base(35, 0x1F50, amount)
|
||||
public MagicReflectScroll(int amount = 1) : base(35, 0x1F50, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class MindBlastScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public MindBlastScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public MindBlastScroll(int amount) : base(36, 0x1F51, amount)
|
||||
public MindBlastScroll(int amount = 1) : base(36, 0x1F51, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class ParalyzeScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public ParalyzeScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public ParalyzeScroll(int amount) : base(37, 0x1F52, amount)
|
||||
public ParalyzeScroll(int amount = 1) : base(37, 0x1F52, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class PoisonFieldScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public PoisonFieldScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public PoisonFieldScroll(int amount) : base(38, 0x1F53, amount)
|
||||
public PoisonFieldScroll(int amount = 1) : base(38, 0x1F53, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class SummonCreatureScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public SummonCreatureScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public SummonCreatureScroll(int amount) : base(39, 0x1F54, amount)
|
||||
public SummonCreatureScroll(int amount = 1) : base(39, 0x1F54, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue