68 lines
1.6 KiB
C#
68 lines
1.6 KiB
C#
namespace Server.Mobiles
|
|
{
|
|
public class Ghoul : BaseCreature
|
|
{
|
|
public override string CorpseName => "a ghostly corpse";
|
|
public override string DefaultName => "a ghoul";
|
|
|
|
[Constructible]
|
|
public Ghoul() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Body = 153;
|
|
BaseSoundID = 0x482;
|
|
|
|
SetStr( 76, 100 );
|
|
SetDex( 76, 95 );
|
|
SetInt( 36, 60 );
|
|
|
|
SetHits( 46, 60 );
|
|
SetMana( 0 );
|
|
|
|
SetDamage( 7, 9 );
|
|
|
|
SetDamageType( ResistanceType.Physical, 100 );
|
|
|
|
SetResistance( ResistanceType.Physical, 25, 30 );
|
|
SetResistance( ResistanceType.Cold, 20, 30 );
|
|
SetResistance( ResistanceType.Poison, 5, 10 );
|
|
SetResistance( ResistanceType.Energy, 10, 20 );
|
|
|
|
SetSkill( SkillName.MagicResist, 45.1, 60.0 );
|
|
SetSkill( SkillName.Tactics, 45.1, 60.0 );
|
|
SetSkill( SkillName.Wrestling, 45.1, 55.0 );
|
|
|
|
Fame = 2500;
|
|
Karma = -2500;
|
|
|
|
VirtualArmor = 28;
|
|
|
|
PackItem( Loot.RandomWeapon() );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Meager );
|
|
}
|
|
|
|
public override bool BleedImmune => true;
|
|
public override Poison PoisonImmune => Poison.Regular;
|
|
|
|
public Ghoul( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
writer.Write( (int) 0 );
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|