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

@ -77,12 +77,12 @@ namespace Server.Mobiles
}
}
public override string DefaultName => "the harrower";
[Constructible]
public Harrower() : base( AIType.AI_Mage, FightMode.Closest, 18, 1, 0.2, 0.4 )
{
m_Instances.Add( this );
Name = "the harrower";
BodyValue = 146;
SetStr( 900, 1000 );
@ -122,9 +122,9 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool AutoDispel{ get{ return true; } }
public override bool Unprovokable{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override bool AutoDispel => true;
public override bool Unprovokable => true;
public override Poison PoisonImmune => Poison.Lethal;
private static readonly double[] m_Offsets = new double[]
{
@ -220,7 +220,7 @@ namespace Server.Mobiles
base.OnAfterDelete();
}
public override bool DisallowAllMoves{ get{ return m_TrueForm; } }
public override bool DisallowAllMoves => m_TrueForm;
public override void Serialize( GenericWriter writer )
{
@ -500,7 +500,7 @@ namespace Server.Mobiles
return null;
int random = Utility.Random( list.Length );
Type type = list[random];
return Loot.Construct( type );
@ -636,7 +636,7 @@ namespace Server.Mobiles
return;
Gold g = new Gold( 750, 1250 );
g.MoveToWorld( new Point3D( m_X, m_Y, z ), m_Map );
if ( 0.5 >= Utility.RandomDouble() )
@ -668,4 +668,4 @@ namespace Server.Mobiles
}
}
}
}
}