RynthSuite/Tools/RynthCore.RynthAiHostTests/Fakes
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace ad8df0b671 Corpse ID: retry refused requests, re-ask the target, cap the burst
The corpse's LongDesc (its killer name, which "my kills" mode needs) arrives only
after an ID request, and AutoId may not appraise a corpse in time, so this request
has to land. CorpseOpenController recorded the corpse as asked whether or not
Host.RequestId returned true. The engine refuses RequestId during the teleport and
death settle and drops stale queued requests, so a refused or dropped request was
never retried and the claim stayed tentatively lootable until the 12 s timeout.

- A corpse is recorded as asked only when RequestId returned true; a refused one is
  asked again, at least 250 ms apart per corpse.
- An accepted request that brought no LongDesc within 3 s is asked once more, once
  per 3 s, with no give-up cap. Only the targeted corpse or the open container
  re-asks: HasLootWork evaluates every in-range corpse, and the others would send a
  stream of requests for corpses the bot is not going for. They get one accepted
  request each.
- When a refusal window ends (after a teleport) every uncached corpse would be
  accepted in the same tick, so at most 2 new requests go out per scan tick, the
  target or open corpse first. The budget restarts after 250 ms for evaluations
  made outside a scan, so it never stays exhausted.
- _corpseIdAskedAt and _corpseIdRefusedAt are cleared on delete and on the >200
  prune.

Tests (ActionPacingTests): refused-then-accepted; re-ask at 3 s and not before;
two corpses where only the target re-asks; 20 uncached corpses through a refusal
window; the open-container branch; the id map clears. Each case was
mutation-checked. The test fake's RequestId can now refuse (RequestIdAccepts,
RefusedIdRequests).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 16:50:23 -07:00
..
FakeHost.cs Corpse ID: retry refused requests, re-ask the target, cap the burst 2026-10-12 16:50:23 -07:00
Items.cs 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 2026-10-04 18:34:29 -04:00
SpellTable.cs 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 2026-10-04 18:34:29 -04:00