(http://www.runuo.com/bugs/index.php?cmd=view&id=38) - Unfilled commodity deeds now carry the etching "Unfilled" (http://www.runuo.com/bugs/index.php?cmd=view&id=40) - Empty scrolls can be deeded in a commodity deed (http://www.uodemise.com/discussion/showthread.php?t=127485) - Dying tubs, if locked down, can allow security level choices (http://www.uodemise.com/discussion/showthread.php?t=128546) - Changes in Energy Vortex skills: they'll have 120 wrestling (it was 100) and 100 tactics (it was 90) (http://www.uodemise.com/discussion/showthread.php?t=122733) - Wooden Footlockers now show the correct container gump (http://www.uodemise.com/discussion/showthread.php?t=126452) - Changes to Interior Decorator (still not includes the fix to turn paragon chests): --> single item addons can be raised/lowered --> the gump stays visible until target is cancelled --> target won't be cancelled automatically when the decorator is used on a target (http://www.uodemise.com/discussion/showthread.php?t=126668) - Doom Lever Puzzle item list changed to generics (http://www.uodemise.com/discussion/showthread.php?t=130396) - Morphed forms will check now the current skill level: the morph effect is lost if skill level goes under the minimum required. (http://www.uodemise.com/discussion/showthread.php?t=116542) - Mage NPC vendors now buy necro scrolls; the price of scrolls got tweaked (= raised) to match OSI (http://www.runuo.com/bugs/index.php?cmd=view&id=90) (http://www.runuo.com/bugs/index.php?cmd=view&id=113) - You can't anymore discord NPC vendors (http://www.runuo.com/bugs/index.php?cmd=view&id=33) - Removing a rune from runebook won't change the default rune set (http://www.runuo.com/bugs/index.php?cmd=view&id=41) - Various runebook security changes (see link for the list) (http://www.runuo.com/bugs/index.php?cmd=view&id=39) - You can't use the Sacrifice virtue while hidden (http://www.runuo.com/bugs/index.php?cmd=view&id=42) - Added the Deceit Brazier: doubleclicking it will summon a random "britannian" monster (check [props for delays) (http://www.uodemise.com/discussion/showthread.php?t=123805) - Casting spells will raise also the secondary skill associated (example: Necro and SpiritSpeak) (http://www.runuo.com/bugs/index.php?cmd=view&id=43) - Word of Death changes: --> the "pitful damage" is much powerful now --> you have to bring the target health below (5*arcanefocus)% to strike the powerful blast of 300 chaos damage --> the damage is influenced by SDI (http://www.runuo.com/bugs/index.php?cmd=view&id=36) - Teleporters generated by [telgen got corrected for the Wrong dungeon (http://www.runuo.com/bugs/index.php?cmd=view&id=34)
106 lines
No EOL
2.9 KiB
C#
106 lines
No EOL
2.9 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Spells;
|
|
using Server.Network;
|
|
using Server.Items;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Spells.Ninjitsu
|
|
{
|
|
public abstract class NinjaSpell : Spell
|
|
{
|
|
public abstract double RequiredSkill{ get; }
|
|
public abstract int RequiredMana{ get; }
|
|
|
|
public override SkillName CastSkill{ get{ return SkillName.Ninjitsu; } }
|
|
public override SkillName DamageSkill{ get{ return SkillName.Ninjitsu; } }
|
|
|
|
public override bool RevealOnCast{ get{ return false; } }
|
|
public override bool ClearHandsOnCast{ get{ return false; } }
|
|
public override bool ShowHandMovement{ get{ return false; } }
|
|
|
|
public override bool BlocksMovement{ get{ return false; } }
|
|
|
|
//public override int CastDelayBase{ get{ return 1; } }
|
|
|
|
public override int CastRecoveryBase{ get{ return 7; } }
|
|
|
|
public NinjaSpell( Mobile caster, Item scroll, SpellInfo info ) : base( caster, scroll, info )
|
|
{
|
|
}
|
|
|
|
public static bool CheckExpansion( Mobile from )
|
|
{
|
|
if ( !( from is PlayerMobile ) )
|
|
return true;
|
|
|
|
if ( from.NetState == null )
|
|
return false;
|
|
|
|
//return ( (from.NetState.Flags & 0x10) != 0 );
|
|
return from.NetState.SupportsExpansion( Expansion.SE );
|
|
}
|
|
|
|
public override bool CheckCast()
|
|
{
|
|
int mana = ScaleMana( RequiredMana );
|
|
|
|
if ( !base.CheckCast() )
|
|
return false;
|
|
|
|
if ( !CheckExpansion( Caster ) )
|
|
{
|
|
Caster.SendLocalizedMessage( 1063456 ); // You must upgrade to Samurai Empire in order to use that ability.
|
|
return false;
|
|
}
|
|
|
|
if ( Caster.Skills[CastSkill].Value < RequiredSkill )
|
|
{
|
|
string args = String.Format( "{0}\t{1}\t ", RequiredSkill.ToString( "F1" ), CastSkill.ToString() );
|
|
Caster.SendLocalizedMessage( 1063013, args ); // You need at least ~1_SKILL_REQUIREMENT~ ~2_SKILL_NAME~ skill to use that ability.
|
|
return false;
|
|
}
|
|
else if ( Caster.Mana < mana )
|
|
{
|
|
Caster.SendLocalizedMessage( 1060174, mana.ToString() ); // You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool CheckFizzle()
|
|
{
|
|
int mana = ScaleMana( RequiredMana );
|
|
|
|
if ( Caster.Skills[CastSkill].Value < RequiredSkill )
|
|
{
|
|
Caster.SendLocalizedMessage( 1063352, RequiredSkill.ToString( "F1" ) ); // You need ~1_SKILL_REQUIREMENT~ Ninjitsu skill to perform that attack!
|
|
return false;
|
|
}
|
|
else if ( Caster.Mana < mana )
|
|
{
|
|
Caster.SendLocalizedMessage( 1060174, mana.ToString() ); // You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
|
return false;
|
|
}
|
|
|
|
if ( !base.CheckFizzle() )
|
|
return false;
|
|
|
|
Caster.Mana -= mana;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override void GetCastSkills( out double min, out double max )
|
|
{
|
|
min = RequiredSkill - 12.5; //Per 5 on friday 2/16/07
|
|
max = RequiredSkill + 37.5;
|
|
}
|
|
|
|
public override int GetMana()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
} |