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

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

View file

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