using System;
using Server;
using Server.Mobiles;
namespace Server.Mobiles
{
public class RatHorde : BaseCreature
{
public override bool AlwaysMurderer => true;
[Constructable]
public RatHorde()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Rat Horde";
Body = 238; // Set the body type of the rat, replace with appropriate body ID
Hue = 0; // Set the hue/color of the rat, replace with appropriate hue
SetStr(50);
SetDex(50);
SetInt(25);
SetHits(100);
SetStam(50);
SetMana(0);
SetDamage(5, 10);
SetSkill(SkillName.Wrestling, 50);
SetSkill(SkillName.Tactics, 50);
Fame = 500;
Karma = -500;
VirtualArmor = 10;
Timer.DelayCall(TimeSpan.Zero, SummonRatHorde);
}
public RatHorde(Serial serial)
: base(serial)
{
}
private void SummonRatHorde()
{
// Set the number of rats in the horde
for (int i = 0; i < 10; i++)
{
if (!Alive || Deleted)
return;
Rat rat = new Rat();
rat.MoveToWorld(this.Location, this.Map);
}
}
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();
}
}
}