* Movie ignore mobiles to Mobile class * Allow necromancer familiars to ignore mobiles * ChampionSpawn should not quietly fail when creating new spawn * Fix client party crash bug: 2 people partied, the leader logs out, other client is hung * Fix spellbooks creating with magery/meditation only and creating magery multiple times * Fix BaseRunicTool.GetRandomSlayer() creating more undead slayers than intended * Do not allow players to dismount each other whilst mounted * Fix AOS onwards damage increase tooltip and wrong formula in AOS * Fix monsters killing other monster revenants + animate dead should not attack player pets + other animates * Fix fire steed having loot pack added twice * Fix oaks spawn not able to create Unicorns + Kirins via Activator.CreateInstace() due to constructor having name as parametr * Fix ignoreMobiles flag not propagated to client for non-players. * Fix harrower tents not leeching from players * Fix boats speedhacking around the map * Fix bless, agility etc. not renewing duration * Fix reveal always worked * Fix empty constructor for steeds so they don't throw now.
91 lines
2.6 KiB
C#
91 lines
2.6 KiB
C#
using Server.Ethics;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
public class UnholySteed : BaseMount
|
|
{
|
|
public override string DefaultName => "a dark steed";
|
|
|
|
[Constructible]
|
|
public UnholySteed() : base(0x74, 0x3EA7, AIType.AI_Melee, FightMode.Aggressor)
|
|
{
|
|
SetStr(496, 525);
|
|
SetDex(86, 105);
|
|
SetInt(86, 125);
|
|
|
|
SetHits(298, 315);
|
|
|
|
SetDamage(16, 22);
|
|
|
|
SetDamageType(ResistanceType.Physical, 40);
|
|
SetDamageType(ResistanceType.Fire, 40);
|
|
SetDamageType(ResistanceType.Energy, 20);
|
|
|
|
SetResistance(ResistanceType.Physical, 55, 65);
|
|
SetResistance(ResistanceType.Fire, 30, 40);
|
|
SetResistance(ResistanceType.Cold, 30, 40);
|
|
SetResistance(ResistanceType.Poison, 30, 40);
|
|
SetResistance(ResistanceType.Energy, 20, 30);
|
|
|
|
SetSkill(SkillName.MagicResist, 25.1, 30.0);
|
|
SetSkill(SkillName.Tactics, 97.6, 100.0);
|
|
SetSkill(SkillName.Wrestling, 80.5, 92.5);
|
|
|
|
Fame = 14000;
|
|
Karma = -14000;
|
|
|
|
VirtualArmor = 60;
|
|
|
|
Tamable = false;
|
|
ControlSlots = 1;
|
|
}
|
|
|
|
public UnholySteed(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override string CorpseName => "an unholy corpse";
|
|
public override bool IsDispellable => false;
|
|
public override bool IsBondable => false;
|
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
|
|
|
private static MonsterAbility[] _abilities = { MonsterAbility.FireBreath };
|
|
public override MonsterAbility[] GetMonsterAbilities() => _abilities;
|
|
|
|
public override string ApplyNameSuffix(string suffix)
|
|
{
|
|
if (suffix.Length == 0)
|
|
{
|
|
return base.ApplyNameSuffix(Ethic.Evil.Definition.Adjunct.String);
|
|
}
|
|
|
|
return base.ApplyNameSuffix($"{suffix} {Ethic.Evil.Definition.Adjunct.String}");
|
|
}
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
if (Ethic.Find(from) != Ethic.Evil)
|
|
{
|
|
from.SendMessage("You may not ride this steed.");
|
|
}
|
|
else
|
|
{
|
|
base.OnDoubleClick(from);
|
|
}
|
|
}
|
|
|
|
public override void Serialize(IGenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write(0); // version
|
|
}
|
|
|
|
public override void Deserialize(IGenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
var version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|