Commit graph RynthSuite/Plugins/RynthCore.Plugin.RynthAi/CorpseOpenController.cs
Author SHA1 Message Date
Daniel Wallace
2e8258b079 RynthAi: a refused combat mode change is not a sent request
ChangeCombatModeFor called host.ChangeCombatMode, began a paced action only on
success, and then returned true either way. BuffManager and the Combat stance
paths read that true as a sent request: they advanced their attempt clocks,
counted a failed try and logged a retry. With the engine turning non-teardown
actions away around a teleport or a death, chained refusals could reach
NoWandFlipMaxFails and set _magicModeBlocked / _wandSwapExhausted.

- ChangeCombatModeFor returns false on a refusal, without Begin. The other
  *For helpers already return the host result. The no-ChangeCombatMode host
  case still returns true (nothing to send or pace).
- Callers stamp their bookkeeping only on true: BuffManager peace-for-kit
  paths (_lastCastAttempt, _healWaitKind); CorpseOpenController's peace
  before an open and MissileCraftingManager's peace before the first combine
  are asked again until accepted, inside their 2.5 s ceiling counted from the
  first ask; the stuck-stance clocks (BuffManager, CombatManager) start only
  once a stance request has gone out; ExpressionEngine's cast-stance flip
  throttle; the CombatManager stall-watchdog toggle, whose ladder step is
  taken back (CombatStallWatchdog.Unfire) when the toggle is refused.
- ActionPacer tracks a streak of consecutive engine refusals (one log line
  when it starts, one when an accepted call ends it). After
  EngineRefusalFailOpenMs (30 s) ChangeCombatModeFor returns true again, so a
  permanent refusal (missing hook, full ring) is counted by the callers' own
  failure paths instead of retrying forever. A gap of more than RefuseGapMs
  (10 s) starts a new streak; Reset() and Forget() end it.
- ActionPacer.LastEngineRefusalMs: a refusal newer than a stuck-stance
  clock's start restarts that clock, so a request accepted and then dropped
  by a teleport does not end in a re-equip UseObject on the wielded weapon.

Tests: FakeHost.CombatModeRefuse; ActionPacingTests (refusals burn no try or
backoff, streak, fail-open, expiry and Forget, stuck clock restart, 20 s
no-wand loop never reaches _magicModeBlocked, peace-before-open retry,
MissileCraftingManager), WeaponTests (equip pass keeps its backoff),
CombatHookTests, CombatStallWatchdogTests (Unfire).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 17:35:42 -07:00
504a6f080a Snapshot for release 2026.10.11.1 (internal d20160b) 2026-10-11 15:00:56 -04:00
e6fffb0f42 Snapshot for release 2026.10.9.3 (internal 8c6b770) 2026-10-09 21:42:40 -04:00
0daf0a44a3 Snapshot for release 2026.10.8.1 (internal f3d67ec) 2026-10-08 17:29:51 -04:00
26907e6ab1 Snapshot for release 2026.10.7.1 (internal 2a9c773) 2026-10-07 12:54:26 -04:00
5416e8066a Snapshot for release 2026.10.6.1 (internal bd2f068) 2026-10-06 08:47:11 -04:00
6847868401 RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00
53438c65c1 RynthSuite as of 2026-10-05 (internal 8b7d487): navigation no longer stalls after doorway turns, faster target and attack, corpses used from a distance and closed after looting, patrol wall clearance, add-to-loot-profile from an item, WCID loot rules, scroll and slayer fixes, release 2026.10.5.1 2026-10-05 08:03:08 -04:00
12ca25f911 RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:34:29 -04:00
c33e24a610 RynthSuite as of 2026-09-27 (internal 0a2fb99): looting waits for item names and types, release 2026.9.27.3 2026-09-27 21:18:57 -04:00
d55ffda4ed RynthSuite as of 2026-09-27 (internal 1816d05): AutoVendor (UtilityBelt port), missile/magic facing and arc line of sight, nav waypoint skipping, rebuff batch and item-enchant fixes, crafting fallback, Loot Editor AutoVendor folder and command-line open, release 2026.9.27.2 2026-09-27 20:25:46 -04:00
0a4b611a90 RynthSuite as of 2026-09-05 (internal a5ff5c2)
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 21:23:05 -04:00