69 lines
No EOL
1.5 KiB
C#
69 lines
No EOL
1.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server.Items;
|
|
using Server.Targeting;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a centaur corpse" )]
|
|
public class Centaur : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Centaur() : base( AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = NameList.RandomName( "centaur" );
|
|
HiddenTitle = "the centaur";
|
|
Body = 126;
|
|
BaseSoundID = 679;
|
|
|
|
SetStr( 202, 300 );
|
|
SetDex( 104, 260 );
|
|
SetInt( 91, 100 );
|
|
|
|
SetHits( 130, 172 );
|
|
|
|
SetDamage( 13, 24 );
|
|
|
|
SetSkill( SkillName.Archery, 95.1, 100.0 );
|
|
SetSkill( SkillName.MagicResist, 50.3, 80.0 );
|
|
SetSkill( SkillName.Tactics, 90.1, 100.0 );
|
|
SetSkill( SkillName.HandToHand, 95.1, 100.0 );
|
|
|
|
Fame = 6500;
|
|
Karma = 6500;
|
|
|
|
VirtualArmor = 50;
|
|
AddItem( new Bow() );
|
|
PackItem( new Arrow( Utility.RandomMinMax( 80, 90 ) ) );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Rich );
|
|
AddLoot( LootPack.Average );
|
|
AddLoot( LootPack.Gems );
|
|
}
|
|
|
|
public override int Meat{ get{ return 1; } }
|
|
public override int Hides{ get{ return 8; } }
|
|
|
|
public Centaur( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
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();
|
|
|
|
if ( BaseSoundID == 678 )
|
|
BaseSoundID = 679;
|
|
}
|
|
}
|
|
} |