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

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

View file

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