using System;
using Server.Mobiles;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a tiger corpse" )]
public class TigerMount : BaseMount
{
[Constructable]
public TigerMount() : this( "a tiger" )
{
}
[Constructable]
public TigerMount( string name ) : base( name, 0x4E6, 0x3EC7, AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a tiger";
switch (Utility.Random(2))
{
case 0:
{
BodyValue = 1254;
ItemID = 16071; //male
break;
}
case 1:
{
BodyValue = 1255;
ItemID = 16072; //female
break;
}
}
SetStr( 88, 125 );
SetDex( 78, 83 );
SetInt( 58, 68 );
SetHits( 99, 110 );
SetMana( 58 );
SetDamage( 18, 25 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 60, 75 );
SetResistance( ResistanceType.Fire, 50, 60 );
SetResistance( ResistanceType.Cold, 10, 30 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 20, 25 );
SetSkill( SkillName.MagicResist, 75.1, 80.0 );
SetSkill( SkillName.Tactics, 79.3, 94.0 );
SetSkill( SkillName.Wrestling, 79.3, 94.0 );
Fame = 550;
Karma = -550;
Tamable = true;
ControlSlots = 1;
MinTameSkill = 69.1;
}
public override int Meat{ get{ return 1; } }
public override int Hides{ get{ return 10; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Feline; } }
public override void GenerateLoot()
{
this.AddLoot(LootPack.AosRich, 3 );
}
public override void OnDeath(Container c)
{
base.OnDeath(c);
if (Utility.RandomDouble() < 0.1)
c.DropItem(new TigerFur());
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
public override bool CanAngerOnTame
{
get
{
return true;
}
}
public override bool BleedImmune
{
get
{
return true;
}
}
public override Poison PoisonImmune
{
get
{
return Poison.Greater;
}
}
public override int GetAngerSound()
{
return 0x518;
}
public override int GetIdleSound()
{
return 0x517;
}
public override int GetAttackSound()
{
return 0x516;
}
public override int GetHurtSound()
{
return 0x519;
}
public override int GetDeathSound()
{
return 0x515;
}
public TigerMount(Serial serial): base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}