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

@ -14,7 +14,7 @@ namespace Server.Items
{
public abstract int Radius{ get; }
public override bool RequireFreeHand{ get{ return false; } }
public override bool RequireFreeHand => false;
public BaseConfusionBlastPotion( PotionEffect effect ) : base( 0xF06, effect )
{
@ -120,11 +120,11 @@ namespace Server.Items
if ( map.CanFit( p, 12, true, false ) )
Effects.SendLocationEffect( p, map, 0x376A, 4, 9 );
}
public void CircleEffect2( object state )
{
object[] states = (object[]) state;
Geometry.Circle2D( (Point3D)states[0], (Map)states[1], Radius, new DoEffect_Callback( BlastEffect ), 90, 270 );
}
#endregion
@ -139,7 +139,7 @@ namespace Server.Items
if ( timer != null )
timer.Stop();
m_Delay[ m ] = Timer.DelayCall( TimeSpan.FromSeconds( 60 ), new TimerStateCallback( EndDelay_Callback ), m );
m_Delay[ m ] = Timer.DelayCall( TimeSpan.FromSeconds( 60 ), new TimerStateCallback( EndDelay_Callback ), m );
}
public static int GetDelay( Mobile m )
@ -168,7 +168,7 @@ namespace Server.Items
m_Delay.Remove( m );
}
}
#endregion
#endregion
private class ThrowTarget : Target
{