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
|
|
@ -14,7 +14,7 @@ namespace Server.Spells.Third
|
|||
Reagent.MandrakeRoot
|
||||
);
|
||||
|
||||
public BlessSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public BlessSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -87,4 +87,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Server.Spells.Third
|
|||
Reagent.BlackPearl
|
||||
);
|
||||
|
||||
public FireballSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public FireballSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -88,4 +88,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Server.Spells.Third
|
|||
Reagent.SulfurousAsh
|
||||
);
|
||||
|
||||
public MagicLockSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public MagicLockSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -84,4 +84,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Server.Spells.Third
|
|||
Reagent.Nightshade
|
||||
);
|
||||
|
||||
public PoisonSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public PoisonSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -140,4 +140,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Spells.Third
|
|||
Reagent.MandrakeRoot
|
||||
);
|
||||
|
||||
public TelekinesisSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public TelekinesisSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Server.Spells.Third
|
|||
Reagent.MandrakeRoot
|
||||
);
|
||||
|
||||
public TeleportSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public TeleportSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -140,4 +140,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Server.Spells.Third
|
|||
Reagent.SulfurousAsh
|
||||
);
|
||||
|
||||
public UnlockSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public UnlockSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -104,4 +104,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Server.Spells.Third
|
|||
Reagent.Garlic
|
||||
);
|
||||
|
||||
public WallOfStoneSpell(Mobile caster, Item scroll) : base(caster, scroll, m_Info)
|
||||
public WallOfStoneSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -211,4 +211,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue