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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class AnimatedWeaponScroll : SpellScroll
{
[Constructible]
public AnimatedWeaponScroll()
: this(1)
{
}
[Constructible]
public AnimatedWeaponScroll(int amount)
public AnimatedWeaponScroll(int amount = 1)
: base(683, 0x2DA4, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class BombardScroll : SpellScroll
{
[Constructible]
public BombardScroll()
: this(1)
{
}
[Constructible]
public BombardScroll(int amount)
public BombardScroll(int amount = 1)
: base(688, 0x2DA9, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class CleansingWindsScroll : SpellScroll
{
[Constructible]
public CleansingWindsScroll()
: this(1)
{
}
[Constructible]
public CleansingWindsScroll(int amount)
public CleansingWindsScroll(int amount = 1)
: base(687, 0x2DA8, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class EagleStrikeScroll : SpellScroll
{
[Constructible]
public EagleStrikeScroll()
: this(1)
{
}
[Constructible]
public EagleStrikeScroll(int amount)
public EagleStrikeScroll(int amount = 1)
: base(682, 0x2DA3, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class EnchantScroll : SpellScroll
{
[Constructible]
public EnchantScroll()
: this(1)
{
}
[Constructible]
public EnchantScroll(int amount)
public EnchantScroll(int amount = 1)
: base(680, 0x2DA1, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class HailStormScroll : SpellScroll
{
[Constructible]
public HailStormScroll()
: this(1)
{
}
[Constructible]
public HailStormScroll(int amount)
public HailStormScroll(int amount = 1)
: base(690, 0x2DAB, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class HealingStoneScroll : SpellScroll
{
[Constructible]
public HealingStoneScroll()
: this(1)
{
}
[Constructible]
public HealingStoneScroll(int amount)
public HealingStoneScroll(int amount = 1)
: base(678, 0x2D9F, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class MassSleepScroll : SpellScroll
{
[Constructible]
public MassSleepScroll()
: this(1)
{
}
[Constructible]
public MassSleepScroll(int amount)
public MassSleepScroll(int amount = 1)
: base(686, 0x2DA7, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class NetherBoltScroll : SpellScroll
{
[Constructible]
public NetherBoltScroll()
: this(1)
{
}
[Constructible]
public NetherBoltScroll(int amount)
public NetherBoltScroll(int amount = 1)
: base(677, 0x2D9E, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class NetherCycloneScroll : SpellScroll
{
[Constructible]
public NetherCycloneScroll()
: this(1)
{
}
[Constructible]
public NetherCycloneScroll(int amount)
public NetherCycloneScroll(int amount = 1)
: base(691, 0x2DAC, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class PurgeMagicScroll : SpellScroll
{
[Constructible]
public PurgeMagicScroll()
: this(1)
{
}
[Constructible]
public PurgeMagicScroll(int amount)
public PurgeMagicScroll(int amount = 1)
: base(679, 0x2DA0, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class RisingColossusScroll : SpellScroll
{
[Constructible]
public RisingColossusScroll()
: this(1)
{
}
[Constructible]
public RisingColossusScroll(int amount)
public RisingColossusScroll(int amount = 1)
: base(692, 0x2DAD, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SleepScroll : SpellScroll
{
[Constructible]
public SleepScroll()
: this(1)
{
}
[Constructible]
public SleepScroll(int amount)
public SleepScroll(int amount = 1)
: base(681, 0x2DA2, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SpellPlagueScroll : SpellScroll
{
[Constructible]
public SpellPlagueScroll()
: this(1)
{
}
[Constructible]
public SpellPlagueScroll(int amount)
public SpellPlagueScroll(int amount = 1)
: base(689, 0x2DAA, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class SpellTriggerScroll : SpellScroll
{
[Constructible]
public SpellTriggerScroll()
: this(1)
{
}
[Constructible]
public SpellTriggerScroll(int amount)
public SpellTriggerScroll(int amount = 1)
: base(685, 0x2DA6, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class StoneFormScroll : SpellScroll
{
[Constructible]
public StoneFormScroll()
: this(1)
{
}
[Constructible]
public StoneFormScroll(int amount)
public StoneFormScroll(int amount = 1)
: base(684, 0x2DA5, amount)
{
}
@ -34,4 +28,4 @@ namespace Server.Items
reader.ReadInt();
}
}
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -7,17 +7,8 @@ namespace Server.Items
{
public class SpellScroll : Item, ICommodity
{
public SpellScroll(Serial serial) : base(serial)
{
}
[Constructible]
public SpellScroll(int spellID, int itemID) : this(spellID, itemID, 1)
{
}
[Constructible]
public SpellScroll(int spellID, int itemID, int amount) : base(itemID)
public SpellScroll(int spellID, int itemID, int amount = 1) : base(itemID)
{
Stackable = true;
Weight = 1.0;
@ -26,6 +17,10 @@ namespace Server.Items
SpellID = spellID;
}
public SpellScroll(Serial serial) : base(serial)
{
}
public int SpellID{ get; private set; }
int ICommodity.DescriptionNumber => LabelNumber;
@ -84,4 +79,4 @@ namespace Server.Items
from.SendLocalizedMessage(502345); // This spell has been temporarily disabled.
}
}
}
}

View file

@ -3,13 +3,7 @@ namespace Server.Items
public class ArcaneCircleScroll : SpellScroll
{
[Constructible]
public ArcaneCircleScroll()
: this(1)
{
}
[Constructible]
public ArcaneCircleScroll(int amount)
public ArcaneCircleScroll(int amount = 1)
: base(600, 0x2D51, amount)
{
Hue = 0x8FD;
@ -38,13 +32,7 @@ namespace Server.Items
public class GiftOfRenewalScroll : SpellScroll
{
[Constructible]
public GiftOfRenewalScroll()
: this(1)
{
}
[Constructible]
public GiftOfRenewalScroll(int amount)
public GiftOfRenewalScroll(int amount = 1)
: base(601, 0x2D52, amount)
{
Hue = 0x8FD;
@ -73,13 +61,7 @@ namespace Server.Items
public class ImmolatingWeaponScroll : SpellScroll
{
[Constructible]
public ImmolatingWeaponScroll()
: this(1)
{
}
[Constructible]
public ImmolatingWeaponScroll(int amount)
public ImmolatingWeaponScroll(int amount = 1)
: base(602, 0x2D53, amount)
{
Hue = 0x8FD;
@ -108,13 +90,7 @@ namespace Server.Items
public class AttuneWeaponScroll : SpellScroll
{
[Constructible]
public AttuneWeaponScroll()
: this(1)
{
}
[Constructible]
public AttuneWeaponScroll(int amount)
public AttuneWeaponScroll(int amount = 1)
: base(603, 0x2D54, amount)
{
Hue = 0x8FD;
@ -143,13 +119,7 @@ namespace Server.Items
public class ThunderstormScroll : SpellScroll
{
[Constructible]
public ThunderstormScroll()
: this(1)
{
}
[Constructible]
public ThunderstormScroll(int amount)
public ThunderstormScroll(int amount = 1)
: base(604, 0x2D55, amount)
{
Hue = 0x8FD;
@ -178,13 +148,7 @@ namespace Server.Items
public class NatureFuryScroll : SpellScroll
{
[Constructible]
public NatureFuryScroll()
: this(1)
{
}
[Constructible]
public NatureFuryScroll(int amount)
public NatureFuryScroll(int amount = 1)
: base(605, 0x2D56, amount)
{
Hue = 0x8FD;
@ -213,13 +177,7 @@ namespace Server.Items
public class SummonFeyScroll : SpellScroll
{
[Constructible]
public SummonFeyScroll()
: this(1)
{
}
[Constructible]
public SummonFeyScroll(int amount)
public SummonFeyScroll(int amount = 1)
: base(606, 0x2D57, amount)
{
Hue = 0x8FD;
@ -248,13 +206,7 @@ namespace Server.Items
public class SummonFiendScroll : SpellScroll
{
[Constructible]
public SummonFiendScroll()
: this(1)
{
}
[Constructible]
public SummonFiendScroll(int amount)
public SummonFiendScroll(int amount = 1)
: base(607, 0x2D58, amount)
{
Hue = 0x8FD;
@ -283,13 +235,7 @@ namespace Server.Items
public class ReaperFormScroll : SpellScroll
{
[Constructible]
public ReaperFormScroll()
: this(1)
{
}
[Constructible]
public ReaperFormScroll(int amount)
public ReaperFormScroll(int amount = 1)
: base(608, 0x2D59, amount)
{
Hue = 0x8FD;
@ -318,13 +264,7 @@ namespace Server.Items
public class WildfireScroll : SpellScroll
{
[Constructible]
public WildfireScroll()
: this(1)
{
}
[Constructible]
public WildfireScroll(int amount)
public WildfireScroll(int amount = 1)
: base(609, 0x2D5A, amount)
{
Hue = 0x8FD;
@ -353,13 +293,7 @@ namespace Server.Items
public class EssenceOfWindScroll : SpellScroll
{
[Constructible]
public EssenceOfWindScroll()
: this(1)
{
}
[Constructible]
public EssenceOfWindScroll(int amount)
public EssenceOfWindScroll(int amount = 1)
: base(610, 0x2D5B, amount)
{
Hue = 0x8FD;
@ -388,13 +322,7 @@ namespace Server.Items
public class DryadAllureScroll : SpellScroll
{
[Constructible]
public DryadAllureScroll()
: this(1)
{
}
[Constructible]
public DryadAllureScroll(int amount)
public DryadAllureScroll(int amount = 1)
: base(611, 0x2D5C, amount)
{
Hue = 0x8FD;
@ -423,13 +351,7 @@ namespace Server.Items
public class EtherealVoyageScroll : SpellScroll
{
[Constructible]
public EtherealVoyageScroll()
: this(1)
{
}
[Constructible]
public EtherealVoyageScroll(int amount)
public EtherealVoyageScroll(int amount = 1)
: base(612, 0x2D5D, amount)
{
Hue = 0x8FD;
@ -458,13 +380,7 @@ namespace Server.Items
public class WordOfDeathScroll : SpellScroll
{
[Constructible]
public WordOfDeathScroll()
: this(1)
{
}
[Constructible]
public WordOfDeathScroll(int amount)
public WordOfDeathScroll(int amount = 1)
: base(613, 0x2D5E, amount)
{
Hue = 0x8FD;
@ -493,13 +409,7 @@ namespace Server.Items
public class GiftOfLifeScroll : SpellScroll
{
[Constructible]
public GiftOfLifeScroll()
: this(1)
{
}
[Constructible]
public GiftOfLifeScroll(int amount)
public GiftOfLifeScroll(int amount = 1)
: base(614, 0x2D5F, amount)
{
Hue = 0x8FD;
@ -528,13 +438,7 @@ namespace Server.Items
public class ArcaneEmpowermentScroll : SpellScroll
{
[Constructible]
public ArcaneEmpowermentScroll()
: this(1)
{
}
[Constructible]
public ArcaneEmpowermentScroll(int amount)
public ArcaneEmpowermentScroll(int amount = 1)
: base(615, 0x2D60, amount)
{
Hue = 0x8FD;
@ -559,4 +463,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}

View file

@ -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();
}
}
}
}