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

@ -9,10 +9,10 @@ namespace Server.Mobiles
[CorpseName( "a fan dancer corpse" )]
public class FanDancer : BaseCreature
{
public override string DefaultName => "a fan dancer";
[Constructible]
public FanDancer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a fan dancer";
Body = 247;
BaseSoundID = 0x372;
@ -42,25 +42,25 @@ namespace Server.Mobiles
Fame = 9000;
Karma = -9000;
if ( Utility.RandomDouble() < .33 )
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
AddItem( new Tessen() );
if ( 0.02 >= Utility.RandomDouble() )
PackItem( new OrigamiPaper() );
}
public override void GenerateLoot()
{
AddLoot( LootPack.FilthyRich );
AddLoot( LootPack.Rich );
AddLoot( LootPack.Gems, 2 );
}
public override bool Uncalmable{ get{ return true; } }
public override bool Uncalmable => true;
/* TODO: Repel Magic
* 10% chance of repelling a melee attack (why did they call it repel magic anyway?)
@ -127,7 +127,7 @@ namespace Server.Mobiles
//AOS.Damage( defender, this, Utility.RandomMinMax( 35, 45 ), 0, 100, 0, 0, 0 );
defender.AddResistanceMod( mod );
ExpireTimer timer = new ExpireTimer( defender, mod, TimeSpan.FromSeconds( 10.0 ) );
timer.Start();
m_Table[defender] = timer;
@ -180,4 +180,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}