Follow-up to the gargoyle Throwing work (#2510/#2512/#2514). Ports two Stygian Abyss creatures from ServUO so two of the throwing artifacts finally have a real OSI drop source instead of being `[add`-only. ## Changes - **`Raptor`** and **`StoneSlith`** — ported stat-for-stat from ServUO. They **spawn automatically**: `Distribution/Data/Spawns/post-uoml/termur/TerMur.json` already contained Raptor/StoneSlith spawner entries referencing these class names, so no spawn-file edits were needed. - **`RaptorClaw`** (Boomerang-based) and **`StoneSlithClaw`** (Cyclone-based) artifacts, dropped from each creature's `OnDeath` at ServUO's 0.5% rate (uncontrolled only). - StoneSlith retains its `GraspingClaw` monster ability; both use `BleedAttack`. ## ModernUO idioms Default range perception (16) / fight range, derived `GetSpeeds` (no `SetSpeed`), `[SerializationGenerator(0)]` codegen, collection-expression arrays. ## Documented omissions vs ServUO Flagged as TODO in-code — all are content missing from ModernUO, not silent drops: Raptor's friend-spawn timer + its 25% `AncientPotteryFragments` drop; StoneSlith's `TailSwipe`, `DragonBlood`, and `SlithEye`/`TatteredAncientScroll`/`AncientPotteryFragments` drops; plus `HideType.Horned/Spined` and `PackInstinct.Ostard` (no ModernUO equivalents yet). ## Not included The other three throwing artifacts (Storm Caller, Banshee's Call, Wind of Corruption) drop from renowned/boss creatures via a `BaseRenowned` artifact-list system that doesn't exist in ModernUO yet — a separate, larger effort. AbyssReaver stays with the (deferred) Into-the-Void quest. Verified: server builds clean; throwing suite 14/14.
72 lines
2 KiB
C#
72 lines
2 KiB
C#
using ModernUO.Serialization;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles;
|
|
|
|
[SerializationGenerator(0)]
|
|
public partial class StoneSlith : BaseCreature
|
|
{
|
|
private static readonly MonsterAbility[] _abilities = [MonsterAbilities.GraspingClaw, MonsterAbilities.TailSwipe];
|
|
|
|
[Constructible]
|
|
public StoneSlith() : base(AIType.AI_Melee)
|
|
{
|
|
Body = 734;
|
|
|
|
SetStr(250, 300);
|
|
SetDex(76, 90);
|
|
SetInt(34, 69);
|
|
|
|
SetHits(154, 166);
|
|
SetStam(76, 90);
|
|
SetMana(34, 69);
|
|
|
|
SetDamage(6, 24);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetResistance(ResistanceType.Physical, 50, 55);
|
|
SetResistance(ResistanceType.Fire, 20, 30);
|
|
SetResistance(ResistanceType.Cold, 10, 20);
|
|
SetResistance(ResistanceType.Poison, 30, 40);
|
|
SetResistance(ResistanceType.Energy, 30, 40);
|
|
|
|
SetSkill(SkillName.MagicResist, 86.8, 95.1);
|
|
SetSkill(SkillName.Tactics, 82.6, 88.6);
|
|
SetSkill(SkillName.Wrestling, 75.8, 87.4);
|
|
SetSkill(SkillName.Anatomy, 0.0, 2.9);
|
|
|
|
Tamable = true;
|
|
MinTameSkill = 65.1;
|
|
ControlSlots = 2;
|
|
|
|
// TODO(SA-creatures): unported vs ServUO — DragonBlood carving, and the minor drops
|
|
// SlithEye / TatteredAncientScroll / AncientPotteryFragments (item classes not yet in ModernUO).
|
|
}
|
|
|
|
public override string CorpseName => "a slith corpse";
|
|
public override string DefaultName => "a stone slith";
|
|
|
|
public override int Meat => 1;
|
|
public override int Hides => 12;
|
|
public override HideType HideType => HideType.Spined;
|
|
|
|
public override WeaponAbility GetWeaponAbility() => WeaponAbility.BleedAttack;
|
|
|
|
public override MonsterAbility[] GetMonsterAbilities() => _abilities;
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot(LootPack.Average, 2);
|
|
}
|
|
|
|
public override void OnDeath(Container c)
|
|
{
|
|
base.OnDeath(c);
|
|
|
|
if (!Controlled && Utility.RandomDouble() <= 0.005)
|
|
{
|
|
c.DropItem(new StoneSlithClaw());
|
|
}
|
|
}
|
|
}
|