Logging of staff crafting items, Fixes for the OSI client changes The potion stacking stuff BaseWeapon fix, so that damage increase things don't multiply themselves. admin gump fixes for Firewall Various display tweaks for weight SoS no longer spawn in Tokuno Hiryu hues happified to OSI standards staff now see alliance chat correctly Play barkeeper text increased per OSI Various other OSI skill requirement changes Various unimplemented features of the SE moves EventSink for when the client version is received from client. Client validation moved out of the core. Client version validation now has options to ignore/kick/warn/annoy. Automagically tries to detect current client. Reverted the delayeddamagecontext back to OSI standards. Can no longer use bags of sending in jail. MagerySpell implemented. Now only Magery spells have a circle, and various other properties of 'em. TransformationSpellHelper now implemented. Things moved around for this. Spells now need a Timespan for the cast delay, instead of arbitrarily based on Circle. Circle doesn't make sense for non-Magery spells! Alot of the spellweaving spells added to OSI standards.
44 lines
No EOL
1.3 KiB
C#
44 lines
No EOL
1.3 KiB
C#
using System;
|
|
using Server;
|
|
|
|
namespace Server.Spells.Necromancy
|
|
{
|
|
public abstract class NecromancerSpell : Spell
|
|
{
|
|
public abstract double RequiredSkill{ get; }
|
|
public abstract int RequiredMana{ get; }
|
|
|
|
public override SkillName CastSkill{ get{ return SkillName.Necromancy; } }
|
|
public override SkillName DamageSkill{ get{ return SkillName.SpiritSpeak; } }
|
|
|
|
//public override int CastDelayBase{ get{ return base.CastDelayBase; } } // Reference, 3
|
|
|
|
public override bool ClearHandsOnCast{ get{ return false; } }
|
|
|
|
public override double CastDelayFastScalar{ get{ return (Core.SE? base.CastDelayFastScalar : 0); } } // Necromancer spells are not affected by fast cast items, though they are by fast cast recovery
|
|
|
|
public NecromancerSpell( Mobile caster, Item scroll, SpellInfo info ) : base( caster, scroll, info )
|
|
{
|
|
}
|
|
|
|
public override int ComputeKarmaAward()
|
|
{
|
|
//TODO: Verify this formula being that Necro spells don't HAVE a circle.
|
|
|
|
//return -(70 + (10 * (int)Circle));
|
|
|
|
return -(40 + (int)(10 * (CastDelayBase.TotalSeconds / CastDelaySecondsPerTick)));
|
|
}
|
|
|
|
public override void GetCastSkills( out double min, out double max )
|
|
{
|
|
min = RequiredSkill;
|
|
max = RequiredSkill + 40.0;
|
|
}
|
|
|
|
public override int GetMana()
|
|
{
|
|
return RequiredMana;
|
|
}
|
|
}
|
|
} |