Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,45 +1,45 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.MLQuests;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Spells.Spellweaving
|
||||
{
|
||||
public class SummonFiendSpell : ArcaneSummon<ArcaneFiend>
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
"Summon Fiend", "Nylisstra",
|
||||
-1
|
||||
);
|
||||
public class SummonFiendSpell : ArcaneSummon<ArcaneFiend>
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
"Summon Fiend", "Nylisstra",
|
||||
-1
|
||||
);
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds( 2.0 );
|
||||
public SummonFiendSpell(Mobile caster, Item scroll)
|
||||
: base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
public override double RequiredSkill => 38.0;
|
||||
public override int RequiredMana => 10;
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public SummonFiendSpell( Mobile caster, Item scroll )
|
||||
: base( caster, scroll, m_Info )
|
||||
{
|
||||
}
|
||||
public override double RequiredSkill => 38.0;
|
||||
public override int RequiredMana => 10;
|
||||
|
||||
public override int Sound => 0x216;
|
||||
public override int Sound => 0x216;
|
||||
|
||||
public override bool CheckSequence()
|
||||
{
|
||||
Mobile caster = Caster;
|
||||
public override bool CheckSequence()
|
||||
{
|
||||
Mobile caster = Caster;
|
||||
|
||||
// This is done after casting completes
|
||||
if ( caster is PlayerMobile )
|
||||
{
|
||||
MLQuestContext context = MLQuestSystem.GetContext( (PlayerMobile)caster );
|
||||
// This is done after casting completes
|
||||
if (caster is PlayerMobile)
|
||||
{
|
||||
MLQuestContext context = MLQuestSystem.GetContext((PlayerMobile)caster);
|
||||
|
||||
if ( context == null || !context.SummonFiend )
|
||||
{
|
||||
caster.SendLocalizedMessage( 1074564 ); // You haven't demonstrated mastery to summon a fiend.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (context == null || !context.SummonFiend)
|
||||
{
|
||||
caster.SendLocalizedMessage(1074564); // You haven't demonstrated mastery to summon a fiend.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return base.CheckSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
return base.CheckSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue