ModernUO/Projects/UOContent/Mobiles/AI
Kamron Batman a082202e98
refactor: serialize one master reference; fold the SummonMaster lockstep
ControlMaster and SummonMaster, when both set, are always the same
mobile: BaseCreature.Summon assigns both to the caster, and every pet
management flow (transfer, stable, claim, ball of summoning, GM obey,
login overflow) followed SetControlMaster with an identical SummonMaster
assignment. They differ only in presence - uncontrolled summons carry
only a summon master, pets only a control master.

So one _master reference serializes (refreshed at save, fanned back out
through the Controlled/Summoned flags in AfterDeserialization; legacy
loads feed the same path), and SetControlMaster now keeps SummonMaster
in lockstep itself, deleting the six hand-rolled copies of that
boilerplate.

Also: a creature constructed without speeds (missing npc-speeds.json)
now logs debug and defaults to Medium (0.25/0.5) instead of throwing -
this is the place a sane default belongs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-23 20:07:35 -07:00
..
BaseAI refactor: serialize one master reference; fold the SummonMaster lockstep 2026-08-23 20:07:35 -07:00
AIControlMobileTarget.cs feat: Overhauls AI (Speech/Movement) (#2232) 2025-07-18 22:39:57 -07:00
AnimalAI.cs fix: Fixes various target/movement bugs in BaseAI (#2379) 2026-03-29 09:39:02 -07:00
ArcherAI.cs fix: creatures track and chase targets reliably around corners (#2590) 2026-08-23 01:13:00 -07:00
BerserkAI.cs fix: Fixes movement pathing while in combat (#2271) 2025-11-16 10:14:06 -08:00
HealerAI.cs feat: Overhauls AI (Speech/Movement) (#2232) 2025-07-18 22:39:57 -07:00
MageAI.cs fix: creatures track and chase targets reliably around corners (#2590) 2026-08-23 01:13:00 -07:00
MeleeAI.cs fix: creatures track and chase targets reliably around corners (#2590) 2026-08-23 01:13:00 -07:00
OppositionGroup.cs feat: Overhauls AI (Speech/Movement) (#2232) 2025-07-18 22:39:57 -07:00
PredatorAI.cs fix: Fixes movement pathing while in combat (#2271) 2025-11-16 10:14:06 -08:00
ThiefAI.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
VendorAI.cs feat: Overhauls AI (Speech/Movement) (#2232) 2025-07-18 22:39:57 -07:00