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

@ -22,7 +22,7 @@ namespace Server.Items
if ( map == Map.Trammel || map == Map.Felucca )
{
from.MoveToWorld( new Point3D( 5922, 2024, 0 ), map );
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, String.Format( "* {0} dives into the hole and disappears!*", from.Name ) );
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, String.Format( "* {0} dives into the hole and disappears!*", from.Name ) );
}
}
else
@ -51,8 +51,8 @@ namespace Server.Items
public class SolenAntHole : BaseAddon
{
public override bool ShareHue { get { return false; } }
public override bool HandlesOnMovement { get { return true; } }
public override bool ShareHue => false;
public override bool HandlesOnMovement => true;
private List<Mobile> m_Spawned;
@ -77,7 +77,7 @@ namespace Server.Items
{
if ( !m.Player || !m.Alive || m.Hidden || !SpawnKilled() )
return;
if ( Utility.InRange( Location, m.Location, 3 ) && !Utility.InRange( Location, oldLocation, 3 ) )
{
int count = 1 + Utility.Random( 4 );