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 AgilityScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public AgilityScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public AgilityScroll(int amount) : base(8, 0x1F35, amount)
|
||||
public AgilityScroll(int amount = 1) : base(8, 0x1F35, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class CunningScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public CunningScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public CunningScroll(int amount) : base(9, 0x1F36, amount)
|
||||
public CunningScroll(int amount = 1) : base(9, 0x1F36, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class CureScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public CureScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public CureScroll(int amount) : base(10, 0x1F37, amount)
|
||||
public CureScroll(int amount = 1) : base(10, 0x1F37, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class HarmScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public HarmScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public HarmScroll(int amount) : base(11, 0x1F38, amount)
|
||||
public HarmScroll(int amount = 1) : base(11, 0x1F38, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class MagicTrapScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public MagicTrapScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public MagicTrapScroll(int amount) : base(12, 0x1F39, amount)
|
||||
public MagicTrapScroll(int amount = 1) : base(12, 0x1F39, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class MagicUnTrapScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public MagicUnTrapScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public MagicUnTrapScroll(int amount) : base(13, 0x1F3A, amount)
|
||||
public MagicUnTrapScroll(int amount = 1) : base(13, 0x1F3A, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class ProtectionScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public ProtectionScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public ProtectionScroll(int amount) : base(14, 0x1F3B, amount)
|
||||
public ProtectionScroll(int amount = 1) : base(14, 0x1F3B, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class StrengthScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public StrengthScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public StrengthScroll(int amount) : base(15, 0x1F3C, amount)
|
||||
public StrengthScroll(int amount = 1) : base(15, 0x1F3C, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue