Add DefaultName property to Mobiles & Items (#18)
This commit is contained in:
parent
b06f5bf60d
commit
8ee42c8ea2
713 changed files with 5112 additions and 4987 deletions
|
|
@ -18,7 +18,7 @@ namespace Server.Spells.Bushido
|
|||
|
||||
public override TextDefinition AbilityMessage{ get{ return new TextDefinition( 1063167 ); } } // You prepare to strike quickly.
|
||||
|
||||
public override bool DelayedContext{ get{ return true; } }
|
||||
public override bool DelayedContext => true;
|
||||
|
||||
public override int GetAccuracyBonus( Mobile attacker )
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ namespace Server.Spells.Bushido
|
|||
return Validate(attacker);
|
||||
}
|
||||
|
||||
public override bool ValidatesDuringHit { get { return false; } }
|
||||
public override bool ValidatesDuringHit => false;
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, int damage )
|
||||
{
|
||||
|
|
@ -68,7 +68,7 @@ namespace Server.Spells.Bushido
|
|||
|
||||
public override void OnClearMove( Mobile attacker )
|
||||
{
|
||||
PlayerMobile ThePlayer = attacker as PlayerMobile; // this can be deletet if the PlayerMobile parts are moved to Server.Mobile
|
||||
PlayerMobile ThePlayer = attacker as PlayerMobile; // this can be deletet if the PlayerMobile parts are moved to Server.Mobile
|
||||
ThePlayer.ExecutesLightningStrike = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ namespace Server.Spells.Bushido
|
|||
public override SkillName CastSkill{ get{ return SkillName.Bushido; } }
|
||||
public override SkillName DamageSkill{ get{ return SkillName.Bushido; } }
|
||||
|
||||
public override bool ClearHandsOnCast{ get{ return false; } }
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool ShowHandMovement{ get{ return false; } }
|
||||
public override bool ClearHandsOnCast => false;
|
||||
public override bool BlocksMovement => false;
|
||||
public override bool ShowHandMovement => false;
|
||||
|
||||
//public override int CastDelayBase{ get{ return 1; } }
|
||||
public override double CastDelayFastScalar{ get{ return 0; } }
|
||||
|
|
@ -126,4 +126,4 @@ namespace Server.Spells.Bushido
|
|||
caster.Send( new ToggleSpecialAbility( spellID + 1, false ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 10; } }
|
||||
public override int RequiredTithing{ get{ return 10; } }
|
||||
public override int MantraNumber{ get{ return 1060720; } } // Consecrus Arma
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public ConsecrateWeaponSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -104,4 +104,4 @@ namespace Server.Spells.Chivalry
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,13 +22,13 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 10; } }
|
||||
public override int RequiredTithing{ get{ return 10; } }
|
||||
public override int MantraNumber{ get{ return 1060721; } } // Dispiro Malas
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public DispelEvilSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void SendCastEffect()
|
||||
{
|
||||
|
|
@ -46,7 +46,7 @@ namespace Server.Spells.Chivalry
|
|||
if ( Caster != m && SpellHelper.ValidIndirectTarget( Caster, m ) && Caster.CanBeHarmful( m, false ) )
|
||||
targets.Add( m );
|
||||
}
|
||||
|
||||
|
||||
Caster.PlaySound( 0xF5 );
|
||||
Caster.PlaySound( 0x299 );
|
||||
Caster.FixedParticles( 0x37C4, 1, 25, 9922, 14, 3, EffectLayer.Head );
|
||||
|
|
@ -116,4 +116,4 @@ namespace Server.Spells.Chivalry
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 15; } }
|
||||
public override int RequiredTithing{ get{ return 10; } }
|
||||
public override int MantraNumber{ get{ return 1060722; } } // Divinum Furis
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public DivineFurySpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -76,4 +76,4 @@ namespace Server.Spells.Chivalry
|
|||
m.PlaySound( 0xF8 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 20; } }
|
||||
public override int RequiredTithing{ get{ return 10; } }
|
||||
public override int MantraNumber{ get{ return 1060723; } } // Forul Solum
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public EnemyOfOneSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -81,4 +81,4 @@ namespace Server.Spells.Chivalry
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,13 +20,13 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 10; } }
|
||||
public override int RequiredTithing{ get{ return 10; } }
|
||||
public override int MantraNumber{ get{ return 1060724; } } // Augus Luminos
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public HolyLightSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
|
|
@ -64,4 +64,4 @@ namespace Server.Spells.Chivalry
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 20; } }
|
||||
public override int RequiredTithing{ get{ return 30; } }
|
||||
public override int MantraNumber{ get{ return 1060725; } } // Dium Prostra
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public NobleSacrificeSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -171,4 +171,4 @@ namespace Server.Spells.Chivalry
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Server.Spells.Chivalry
|
|||
public override SkillName CastSkill{ get{ return SkillName.Chivalry; } }
|
||||
public override SkillName DamageSkill{ get{ return SkillName.Chivalry; } }
|
||||
|
||||
public override bool ClearHandsOnCast{ get{ return false; } }
|
||||
public override bool ClearHandsOnCast => false;
|
||||
|
||||
//public override int CastDelayBase{ get{ return 1; } }
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Spells.Chivalry
|
|||
public override int RequiredMana{ get{ return 10; } }
|
||||
public override int RequiredTithing{ get{ return 15; } }
|
||||
public override int MantraNumber{ get{ return 1060727; } } // Sanctum Viatas
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
private RunebookEntry m_Entry;
|
||||
private Runebook m_Book;
|
||||
|
|
@ -188,7 +188,7 @@ namespace Server.Spells.Chivalry
|
|||
from.Send( new MessageLocalized( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 502357, from.Name, "" ) ); // I can not recall from that object.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected override void OnNonlocalTarget( Mobile from, object o )
|
||||
{
|
||||
}
|
||||
|
|
@ -199,4 +199,4 @@ namespace Server.Spells.Chivalry
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Spells.Eighth
|
|||
{
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return !Core.AOS; } }
|
||||
public override bool DelayedDamage => !Core.AOS;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
|
|
@ -75,4 +75,4 @@ namespace Server.Spells.Eighth
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ namespace Server.Spells.Fifth
|
|||
}
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return !Core.AOS; } }
|
||||
public override bool DelayedDamage => !Core.AOS;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -101,11 +101,11 @@ namespace Server.Spells.Fifth
|
|||
if ( highestStat > 150 )
|
||||
highestStat = 150;
|
||||
|
||||
if ( lowestStat > 150 )
|
||||
if ( lowestStat > 150 )
|
||||
lowestStat = 150;
|
||||
|
||||
double damage = GetDamageScalar(m)*(highestStat - lowestStat) / 2; // Many users prefer 3 or 4
|
||||
|
||||
|
||||
if ( damage > 45 )
|
||||
damage = 45;
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ namespace Server.Spells.Fifth
|
|||
private DateTime m_End;
|
||||
private Mobile m_Caster;
|
||||
|
||||
public override bool BlocksFit{ get{ return true; } }
|
||||
public override bool BlocksFit => true;
|
||||
|
||||
public InternalItem( int itemID, Point3D loc, Mobile caster, Map map, TimeSpan duration, int val ) : base( itemID )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Spells.First
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -43,7 +43,7 @@ namespace Server.Spells.First
|
|||
SpellHelper.CheckReflect( (int)this.Circle, ref source, ref m );
|
||||
|
||||
double damage;
|
||||
|
||||
|
||||
if ( Core.AOS )
|
||||
{
|
||||
damage = GetNewAosDamage( 10, 1, 4, m );
|
||||
|
|
@ -94,4 +94,4 @@ namespace Server.Spells.First
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ namespace Server.Spells.Fourth
|
|||
private Mobile m_Caster;
|
||||
private int m_Damage;
|
||||
|
||||
public override bool BlocksFit{ get{ return true; } }
|
||||
public override bool BlocksFit => true;
|
||||
|
||||
public FireFieldItem( int itemID, Point3D loc, Mobile caster, Map map, TimeSpan duration, int val )
|
||||
: this( itemID, loc, caster, map, duration, val, 2 )
|
||||
|
|
@ -187,7 +187,7 @@ namespace Server.Spells.Fourth
|
|||
{
|
||||
if ( SpellHelper.CanRevealCaster( m ) )
|
||||
m_Caster.RevealingAction();
|
||||
|
||||
|
||||
m_Caster.DoHarmful( m );
|
||||
|
||||
int damage = m_Damage;
|
||||
|
|
@ -264,7 +264,7 @@ namespace Server.Spells.Fourth
|
|||
while ( m_Queue.Count > 0 )
|
||||
{
|
||||
Mobile m = (Mobile)m_Queue.Dequeue();
|
||||
|
||||
|
||||
if ( SpellHelper.CanRevealCaster( m ) )
|
||||
caster.RevealingAction();
|
||||
|
||||
|
|
@ -312,4 +312,4 @@ namespace Server.Spells.Fourth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Spells.Fourth
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -88,4 +88,4 @@ namespace Server.Spells.Fourth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
private static readonly int Range = (Core.ML ? 48 : 18);
|
||||
|
||||
|
|
@ -198,4 +198,4 @@ namespace Server.Spells.Necromancy
|
|||
new Point3D( 295, 712, 55 )
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
//public override int CastDelayBase{ get{ return base.CastDelayBase; } } // Reference, 3
|
||||
|
||||
public override bool ClearHandsOnCast{ get{ return false; } }
|
||||
public override bool ClearHandsOnCast => 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
|
||||
|
||||
|
|
@ -56,4 +56,4 @@ namespace Server.Spells.Necromancy
|
|||
return RequiredMana;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Spells.Necromancy
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -41,7 +41,7 @@ namespace Server.Spells.Necromancy
|
|||
//SpellHelper.CheckReflect( (int)this.Circle, Caster, ref m ); //Irrelevent asfter AoS
|
||||
|
||||
/* Temporarily causes intense physical pain to the target, dealing direct damage.
|
||||
* After 10 seconds the spell wears off, and if the target is still alive,
|
||||
* After 10 seconds the spell wears off, and if the target is still alive,
|
||||
* some of the Hit Points lost through Pain Spike are restored.
|
||||
*/
|
||||
|
||||
|
|
@ -137,4 +137,4 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace Server.Spells.Necromancy
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -50,10 +50,10 @@ namespace Server.Spells.Necromancy
|
|||
Effects.PlaySound( m.Location, m.Map, 0x229 );
|
||||
|
||||
double damage = Utility.RandomMinMax( (Core.ML ? 32 : 36), 40 ) * ((300 + (GetDamageSkill( Caster ) * 9)) / 1000);
|
||||
|
||||
|
||||
double sdiBonus = (double)AosAttributes.GetValue( Caster, AosAttribute.SpellDamage )/100;
|
||||
double pvmDamage = damage * (1 + sdiBonus);
|
||||
|
||||
|
||||
if ( Core.ML && sdiBonus > 0.15 )
|
||||
sdiBonus = 0.15;
|
||||
double pvpDamage = damage * (1 + sdiBonus);
|
||||
|
|
@ -63,7 +63,7 @@ namespace Server.Spells.Necromancy
|
|||
if( map != null )
|
||||
{
|
||||
List<Mobile> targets = new List<Mobile>();
|
||||
|
||||
|
||||
if ( Caster.CanBeHarmful(m, false ) )
|
||||
targets.Add( m );
|
||||
|
||||
|
|
@ -115,4 +115,4 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
|
||||
public override bool BlockedByHorrificBeast{ get{ return false; } }
|
||||
public override bool BlockedByHorrificBeast => false;
|
||||
|
||||
public override bool CheckCast()
|
||||
{
|
||||
|
|
@ -53,4 +53,4 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
int sdiBonus = AosAttributes.GetValue( Caster, AosAttribute.SpellDamage );
|
||||
|
||||
// PvP spell damage increase cap of 15% from an item’s magic property in Publish 33(SE)
|
||||
// PvP spell damage increase cap of 15% from an item<EFBFBD>s magic property in Publish 33(SE)
|
||||
if( Core.SE && m.Player && Caster.Player && sdiBonus > 15 )
|
||||
sdiBonus = 15;
|
||||
|
||||
|
|
@ -106,4 +106,4 @@ namespace Server.Spells.Necromancy
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace Server.Spells.Ninjitsu
|
|||
public override int RequiredMana { get { return (Core.ML ? 10 : 0); } }
|
||||
public override int CastRecoveryBase { get { return (Core.ML ? 10 : base.CastRecoveryBase); } }
|
||||
|
||||
public override bool BlockedByAnimalForm { get { return false; } }
|
||||
public override bool BlockedByAnimalForm => false;
|
||||
|
||||
public AnimalForm(Mobile caster, Item scroll)
|
||||
: base(caster, scroll, m_Info)
|
||||
|
|
@ -616,4 +616,4 @@ namespace Server.Spells.Ninjitsu
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,17 +51,17 @@ namespace Server.Spells.Ninjitsu
|
|||
|
||||
}
|
||||
|
||||
public override bool ValidatesDuringHit { get { return false; } }
|
||||
public override bool ValidatesDuringHit => false;
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, int damage )
|
||||
{
|
||||
//Validates before swing
|
||||
|
||||
|
||||
ClearCurrentMove( attacker );
|
||||
|
||||
attacker.SendLocalizedMessage( 1063090 ); // You quickly stab your opponent as you come out of hiding!
|
||||
|
||||
defender.FixedParticles( 0x37B9, 1, 5, 0x251D, 0x651, 0, EffectLayer.Waist );
|
||||
defender.FixedParticles( 0x37B9, 1, 5, 0x251D, 0x651, 0, EffectLayer.Waist );
|
||||
|
||||
attacker.RevealingAction();
|
||||
|
||||
|
|
@ -77,4 +77,4 @@ namespace Server.Spells.Ninjitsu
|
|||
attacker.RevealingAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace Server.Spells.Ninjitsu
|
|||
public override double RequiredSkill{ get{ return Core.ML ? 20.0 : 40.0; } }
|
||||
public override int RequiredMana{ get{ return 10; } }
|
||||
|
||||
public override bool BlockedByAnimalForm{ get{ return false; } }
|
||||
public override bool BlockedByAnimalForm => false;
|
||||
|
||||
public MirrorImage( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -192,7 +192,7 @@ namespace Server.Mobiles
|
|||
Delete();
|
||||
}
|
||||
|
||||
public override bool DeleteCorpseOnDeath { get { return true; } }
|
||||
public override bool DeleteCorpseOnDeath => true;
|
||||
|
||||
public override void OnDelete()
|
||||
{
|
||||
|
|
@ -207,8 +207,8 @@ namespace Server.Mobiles
|
|||
base.OnAfterDelete();
|
||||
}
|
||||
|
||||
public override bool IsDispellable { get { return false; } }
|
||||
public override bool Commandable { get { return false; } }
|
||||
public override bool IsDispellable => false;
|
||||
public override bool Commandable => false;
|
||||
|
||||
public Clone( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -263,7 +263,7 @@ namespace Server.Mobiles
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanDetectHidden { get { return false; } }
|
||||
|
||||
public override bool CanDetectHidden => false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ namespace Server.Spells.Ninjitsu
|
|||
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 RevealOnCast => false;
|
||||
public override bool ClearHandsOnCast => false;
|
||||
public override bool ShowHandMovement => false;
|
||||
|
||||
public override bool BlocksMovement{ get{ return false; } }
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
//public override int CastDelayBase{ get{ return 1; } }
|
||||
|
||||
|
|
@ -102,4 +102,4 @@ namespace Server.Spells.Ninjitsu
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace Server.Spells.Ninjitsu
|
|||
public override double RequiredSkill{ get{ return 50.0; } }
|
||||
public override int RequiredMana{ get{ return 15; } }
|
||||
|
||||
public override bool BlockedByAnimalForm{ get{ return false; } }
|
||||
public override bool BlockedByAnimalForm => false;
|
||||
|
||||
public Shadowjump( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
||||
{
|
||||
|
|
@ -101,7 +101,7 @@ namespace Server.Spells.Ninjitsu
|
|||
Effects.SendLocationParticles( EffectItem.Create( from, m.Map, EffectItem.DefaultDuration ), 0x3728, 10, 10, 2023 );
|
||||
|
||||
m.PlaySound( 0x512 );
|
||||
|
||||
|
||||
Server.SkillHandlers.Stealth.OnUse( m ); // stealth check after the a jump
|
||||
}
|
||||
|
||||
|
|
@ -130,4 +130,4 @@ namespace Server.Spells.Ninjitsu
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace Server.Spells.Ninjitsu
|
|||
|
||||
}
|
||||
|
||||
public override bool ValidatesDuringHit { get { return false; } }
|
||||
public override bool ValidatesDuringHit => false;
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, int damage )
|
||||
{
|
||||
|
|
@ -131,4 +131,4 @@ namespace Server.Spells.Ninjitsu
|
|||
m_Table.Remove( info.m_Target );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Spells.Second
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
|
||||
public override double GetSlayerDamageScalar( Mobile target )
|
||||
|
|
@ -47,7 +47,7 @@ namespace Server.Spells.Second
|
|||
SpellHelper.CheckReflect( (int)this.Circle, Caster, ref m );
|
||||
|
||||
double damage;
|
||||
|
||||
|
||||
if ( Core.AOS )
|
||||
{
|
||||
damage = GetNewAosDamage( 17, 1, 5, m );
|
||||
|
|
@ -111,4 +111,4 @@ namespace Server.Spells.Second
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Spells.Seventh
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( IPoint3D p )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ namespace Server.Spells.Seventh
|
|||
private Timer m_Timer;
|
||||
private Mobile m_Caster;
|
||||
|
||||
public override bool BlocksFit{ get{ return true; } }
|
||||
public override bool BlocksFit => true;
|
||||
|
||||
public InternalItem( Point3D loc, Map map, TimeSpan duration, int itemID, Mobile caster ) : base( itemID )
|
||||
{
|
||||
|
|
@ -205,4 +205,4 @@ namespace Server.Spells.Seventh
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Spells.Seventh
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -91,4 +91,4 @@ namespace Server.Spells.Seventh
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ namespace Server.Spells.Seventh
|
|||
[DispellableField]
|
||||
private class InternalItem : Moongate
|
||||
{
|
||||
public override bool ShowFeluccaWarning{ get{ return Core.AOS; } }
|
||||
public override bool ShowFeluccaWarning => Core.AOS;
|
||||
|
||||
public InternalItem( Point3D target, Map map ) : base( target, map )
|
||||
{
|
||||
|
|
@ -244,7 +244,7 @@ namespace Server.Spells.Seventh
|
|||
from.Send( new MessageLocalized( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 501030, from.Name, "" ) ); // I can not gate travel from that object.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected override void OnNonlocalTarget( Mobile from, object o )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Spells.Seventh
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( IPoint3D p )
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ namespace Server.Spells.Seventh
|
|||
damage = (damage * 2) / targets.Count;
|
||||
else if ( !Core.AOS )
|
||||
damage /= targets.Count;
|
||||
|
||||
|
||||
double toDeal;
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Spells.Sixth
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -94,4 +94,4 @@ namespace Server.Spells.Sixth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace Server.Spells.Sixth
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -128,4 +128,4 @@ namespace Server.Spells.Sixth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace Server.Spells.Sixth
|
|||
private Mobile m_Caster;
|
||||
private DateTime m_End;
|
||||
|
||||
public override bool BlocksFit{ get{ return true; } }
|
||||
public override bool BlocksFit => true;
|
||||
|
||||
public InternalItem( Mobile caster, int itemID, Point3D loc, Map map, TimeSpan duration ) : base( itemID )
|
||||
{
|
||||
|
|
@ -188,7 +188,7 @@ namespace Server.Spells.Sixth
|
|||
|
||||
m.PlaySound( 0x204 );
|
||||
m.FixedEffect( 0x376A, 10, 16 );
|
||||
|
||||
|
||||
if ( m is BaseCreature )
|
||||
((BaseCreature) m).OnHarmfulSpell( m_Caster );
|
||||
}
|
||||
|
|
@ -234,4 +234,4 @@ namespace Server.Spells.Sixth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Spells.Spellweaving
|
|||
public override SkillName CastSkill { get { return SkillName.Spellweaving; } }
|
||||
public override SkillName DamageSkill { get { return SkillName.Spellweaving; } }
|
||||
|
||||
public override bool ClearHandsOnCast { get { return false; } }
|
||||
public override bool ClearHandsOnCast => false;
|
||||
|
||||
private int m_CastTimeFocusLevel;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace Server.Items
|
|||
public ArcaneFocus( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public override void GetProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.GetProperties( list );
|
||||
|
|
@ -46,7 +46,7 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
public override TextDefinition InvalidTransferMessage{ get { return 1073480; } } // Your arcane focus disappears.
|
||||
public override bool Nontransferable { get { return true; } }
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
|
|
@ -64,4 +64,4 @@ namespace Server.Items
|
|||
m_StrengthBonus = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ namespace Server.Items
|
|||
|
||||
private Timer m_Timer;
|
||||
|
||||
public override bool Nontransferable { get { return true; } }
|
||||
public override bool Nontransferable => true;
|
||||
public override void HandleInvalidTransfer( Mobile from )
|
||||
{
|
||||
if( InvalidTransferMessage != null )
|
||||
|
|
@ -114,4 +114,4 @@ namespace Server.Items
|
|||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), new TimerCallback( CheckExpiry ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Server.Mobiles
|
|||
public override double DispelFocus { get { return 20.0; } }
|
||||
|
||||
public override OppositionGroup OppositionGroup { get { return OppositionGroup.FeyAndUndead; } }
|
||||
public override bool InitialInnocent { get { return true; } }
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
[Constructible]
|
||||
public ArcaneFey() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
|
|
@ -34,7 +34,7 @@ namespace Server.Mobiles
|
|||
SetResistance( ResistanceType.Poison, 40, 50 );
|
||||
SetResistance( ResistanceType.Energy, 40, 50 );
|
||||
|
||||
SetSkill( SkillName.EvalInt, 70.1, 80.0 );
|
||||
SetSkill( SkillName.EvalInt, 70.1, 80.0 );
|
||||
SetSkill( SkillName.Magery, 70.1, 80.0 );
|
||||
SetSkill( SkillName.Meditation, 70.1, 80.0 );
|
||||
SetSkill( SkillName.MagicResist, 50.5, 100.0 );
|
||||
|
|
@ -63,4 +63,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ namespace Server.Mobiles
|
|||
public override double DispelFocus { get { return 20.0; } }
|
||||
|
||||
public override PackInstinct PackInstinct { get { return PackInstinct.Daemon; } }
|
||||
public override bool BleedImmune { get { return true; } } //TODO: Verify on OSI. Guide says this.
|
||||
public override bool BleedImmune => true; //TODO: Verify on OSI. Guide says this.
|
||||
public override string DefaultName => "an imp";
|
||||
|
||||
[Constructible]
|
||||
public ArcaneFiend() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "an imp";
|
||||
Body = 74;
|
||||
BaseSoundID = 422;
|
||||
|
||||
|
|
@ -64,4 +64,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,21 +7,21 @@ namespace Server.Mobiles
|
|||
public class NatureFury : BaseCreature
|
||||
{
|
||||
public override bool DeleteCorpseOnDeath { get { return Core.AOS; } }
|
||||
public override bool IsHouseSummonable { get { return true; } }
|
||||
public override bool IsHouseSummonable => true;
|
||||
|
||||
public override double DispelDifficulty { get { return 125.0; } }
|
||||
public override double DispelFocus { get { return 90.0; } }
|
||||
|
||||
public override bool BleedImmune { get { return true; } }
|
||||
public override bool BleedImmune => true;
|
||||
public override Poison PoisonImmune { get { return Poison.Lethal; } }
|
||||
|
||||
public override bool AlwaysMurderer { get { return true; } }
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override string DefaultName => "a nature's fury";
|
||||
|
||||
[Constructible]
|
||||
public NatureFury()
|
||||
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a nature's fury";
|
||||
Body = 0x33;
|
||||
Hue = 0x4001;
|
||||
|
||||
|
|
@ -84,4 +84,4 @@ namespace Server.Mobiles
|
|||
Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Spells.Third
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return true; } }
|
||||
public override bool DelayedDamage => true;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -90,4 +90,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ namespace Server.Spells.Third
|
|||
private DateTime m_End;
|
||||
private Mobile m_Caster;
|
||||
|
||||
public override bool BlocksFit{ get{ return true; } }
|
||||
public override bool BlocksFit => true;
|
||||
|
||||
public InternalItem( Point3D loc, Map map, Mobile caster ) : base( 0x82 )
|
||||
{
|
||||
|
|
@ -223,4 +223,4 @@ namespace Server.Spells.Third
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue