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

@ -42,10 +42,11 @@ namespace Server.Mobiles
private DecayTimer m_Timer;
public override string DefaultName => "a plague beast lord";
[Constructible]
public PlagueBeastLord() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a plague beast lord";
Body = 775;
BaseSoundID = 679;
SpeechHue = 0x3B2;
@ -99,7 +100,7 @@ namespace Server.Mobiles
public override void OnDeath( Container c )
{
base.OnDeath( c );
for ( int i = c.Items.Count - 1; i >= 0; i-- )
c.Items[ i ].Delete();
}
@ -204,10 +205,10 @@ namespace Server.Mobiles
if ( m_OpenedBy == null && IsAccessibleTo( from ) )
{
m_OpenedBy = from;
if ( m_Timer == null )
m_Timer = new DecayTimer( this );
if ( !m_Timer.Running )
m_Timer.Start();