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

@ -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
}
}
}
}
}

View file

@ -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
}
}
}
}
}

View file

@ -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
}
}
}
}
}

View file

@ -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
}
}
}
}
}

View file

@ -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)
{
}

View file

@ -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
}
}
}
}
}

View file

@ -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
}
}
}
}
}

View file

@ -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
}
}
}
}
}