using System;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName("Santa Klauss corpse")]
public class Santa : BaseCreature
{
[Constructable]
public Santa()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
this.Name = "Santa Klaus";
Body = 0x190;
this.BaseSoundID = 0x568;
this.SetStr(500);
this.SetDex(125);
this.SetInt(100);
this.SetHits(5000);
this.SetMana(1000);
this.SetDamage(1, 5);
this.SetDamageType(ResistanceType.Cold, 100);
this.SetResistance(ResistanceType.Physical, 55);
this.SetResistance(ResistanceType.Fire, 50);
this.SetResistance(ResistanceType.Cold, 50);
this.SetResistance(ResistanceType.Poison, 65);
this.SetResistance(ResistanceType.Energy, 80);
this.SetSkill(SkillName.DetectHidden, 100.0);
this.SetSkill(SkillName.Meditation, 120.0);
this.SetSkill(SkillName.Magery, 120.0);
this.SetSkill(SkillName.EvalInt, 160.0);
this.SetSkill(SkillName.MagicResist, 100.0);
this.SetSkill(SkillName.Tactics, 150.0);
this.SetSkill(SkillName.Wrestling, 120.0);
this.Fame = 5000;
this.Karma = -5000;
this.VirtualArmor = 40;
HairItemID = 0x754;
HairHue = 0x47E;
this.FacialHairItemID = 1882;
this.FacialHairHue = 0x47E;
AddItem(new FancyShirt(0xE8));
AddItem(new LongPants(0xE8));
AddItem(new Cap(0xE8));
AddItem(new Sandals(0xE8));
}
public Santa(Serial serial)
: base(serial)
{
}
public override bool AutoDispel
{
get
{
return true;
}
}
public override bool AlwaysMurderer
{
get
{
return true;
}
}
public override bool BardImmune
{
get
{
return true;
}
}
public override bool AreaPeaceImmune
{
get
{
return true;
}
}
public override void GenerateLoot()
{
this.AddLoot(LootPack.UltraRich, 10);
}
public virtual void Lifted_Callback(Mobile from)
{
if (from != null && !from.Deleted && from is PlayerMobile)
{
this.Combatant = from;
this.Warmode = true;
}
}
public override Item NewHarmfulItem()
{
Item bad = new AcidSlime(TimeSpan.FromSeconds(10), 25, 30);
bad.Name = "Acid Snow";
bad.Hue = 0x782;
return bad;
}
public override void OnDamage(int amount, Mobile from, bool willKill)
{
if (Utility.RandomBool())
{
if (from != null && from.Map != null && this.Map != Map.Internal && this.Map == from.Map && from.InRange(this, 12))
{
this.SpillAcid((willKill) ? this : from, (willKill) ? 3 : 1);
}
}
base.OnDamage(amount, from, willKill);
}
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();
}
}
}