Add DefaultName property to Mobiles & Items (#18)

This commit is contained in:
Kamron Batman 2018-08-09 17:18:41 -07:00 committed by GitHub
parent b06f5bf60d
commit 8ee42c8ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
713 changed files with 5112 additions and 4987 deletions

View file

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

View file

@ -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();
}
}
}
}

View file

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

View file

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

View file

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

View file

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