ModernUO/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/OrcishMage.cs

84 lines
2.5 KiB
C#

using ModernUO.Serialization;
using Server.Items;
using Server.Misc;
namespace Server.Mobiles
{
[SerializationGenerator(0, false)]
public partial class OrcishMage : BaseCreature
{
[Constructible]
public OrcishMage() : base(AIType.AI_Mage)
{
Body = 140;
BaseSoundID = 0x45A;
SetStr(116, 150);
SetDex(91, 115);
SetInt(161, 185);
SetHits(70, 90);
SetDamage(4, 14);
SetDamageType(ResistanceType.Physical, 100);
SetResistance(ResistanceType.Physical, 25, 35);
SetResistance(ResistanceType.Fire, 30, 40);
SetResistance(ResistanceType.Cold, 20, 30);
SetResistance(ResistanceType.Poison, 30, 40);
SetResistance(ResistanceType.Energy, 30, 40);
SetSkill(SkillName.EvalInt, 60.1, 72.5);
SetSkill(SkillName.Magery, 60.1, 72.5);
SetSkill(SkillName.MagicResist, 60.1, 75.0);
SetSkill(SkillName.Tactics, 50.1, 65.0);
SetSkill(SkillName.Wrestling, 40.1, 50.0);
Fame = 3000;
Karma = -3000;
VirtualArmor = 30;
PackReg(6);
if (Utility.RandomDouble() < 0.05)
{
PackItem(new OrcishKinMask());
}
}
public override string CorpseName => "a glowing orc corpse";
public override InhumanSpeech SpeechType => InhumanSpeech.Orc;
public override string DefaultName => "an orcish mage";
public override bool CanRummageCorpses => true;
public override int TreasureMapLevel => 1;
public override int Meat => 1;
public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override void GenerateLoot()
{
AddLoot(LootPack.Average);
AddLoot(LootPack.LowScrolls);
}
public override bool IsEnemy(Mobile m) =>
(!m.Player || m.FindItemOnLayer<OrcishKinMask>(Layer.Helm) == null) && base.IsEnemy(m);
public override void AggressiveAction(Mobile aggressor, bool criminal)
{
base.AggressiveAction(aggressor, criminal);
if (aggressor.FindItemOnLayer(Layer.Helm) is OrcishKinMask item)
{
AOS.Damage(aggressor, 50, 0, 100, 0, 0, 0);
item.Delete();
aggressor.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
aggressor.PlaySound(0x307);
}
}
}
}