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 ArchProtectionScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public ArchProtectionScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public ArchProtectionScroll(int amount) : base(25, 0x1F46, amount)
|
||||
public ArchProtectionScroll(int amount = 1) : base(25, 0x1F46, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class ArchCureScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public ArchCureScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public ArchCureScroll(int amount) : base(24, 0x1F45, amount)
|
||||
public ArchCureScroll(int amount = 1) : base(24, 0x1F45, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class CurseScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public CurseScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public CurseScroll(int amount) : base(26, 0x1F47, amount)
|
||||
public CurseScroll(int amount = 1) : base(26, 0x1F47, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class FireFieldScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public FireFieldScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public FireFieldScroll(int amount) : base(27, 0x1F48, amount)
|
||||
public FireFieldScroll(int amount = 1) : base(27, 0x1F48, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class GreaterHealScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public GreaterHealScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public GreaterHealScroll(int amount) : base(28, 0x1F49, amount)
|
||||
public GreaterHealScroll(int amount = 1) : base(28, 0x1F49, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class LightningScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public LightningScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public LightningScroll(int amount) : base(29, 0x1F4A, amount)
|
||||
public LightningScroll(int amount = 1) : base(29, 0x1F4A, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class ManaDrainScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public ManaDrainScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public ManaDrainScroll(int amount) : base(30, 0x1F4B, amount)
|
||||
public ManaDrainScroll(int amount = 1) : base(30, 0x1F4B, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ namespace Server.Items
|
|||
public class RecallScroll : SpellScroll
|
||||
{
|
||||
[Constructible]
|
||||
public RecallScroll() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public RecallScroll(int amount) : base(31, 0x1F4C, amount)
|
||||
public RecallScroll(int amount = 1) : base(31, 0x1F4C, amount)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -30,4 +25,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue