RynthSuite/Tools/RynthCore.RynthAiHostTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace 486f72de58 Vitals: heal grace - a heal never waits more than 2 s on pending state
"Stuck in Healing": a healing kit got no result line, and no vitals
action followed for 8 s and more with the label reading Healing; the
character died. The kit wait's timeout was 8 s.

VirindiTank re-sends a kit every 100 ms until the server plays the heal
motion (3 s at most), then waits up to 3 s for the result line. It never
parks on the client's busy state.

ActionPacer.HealGraceMs (2000) bounds what a heal under a heal line waits on:
- the kit wait (KitWaitVerdict): no motion, no UseDone and no line after
  2 s lets the kit go and the next tick sends it again; the kit's own
  UseDone(0) (the first after the send) with no line ends it after 700 ms;
  a started kit waits 3.5 s at most (KitResultTimeoutMs, was 8 s; stamina
  kits share this wait). An engine with neither GetCastBusyState nor the
  UseDone sequence can't show the server took a kit, so there only the
  3.5 s limit applies;
- an item use nobody answered (a lost kit) no longer holds the heal past
  2 s (corpse/door uses and our own casts keep their rules);
- the character's animation: 2 s for a plain heal (was 4 s), logged and
  counted once per busy spell;
- the 'too busy' probe for a waiting heal: at least every 2 s;
- the cast gate: closed 2 s under a heal line opens for the heal only
  (no mana, stamina or buff goes on that tick);
- a busy count: up 2 s (timed from its rise) no longer holds a heal.

Tests: HealGraceTests (new, 10), StuckCastTests' probe test split into the
non-heal doubling and the heal's capped probe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 09:35:34 -08:00
..
Fakes Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
Fixtures Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
Tests Vitals: heal grace - a heal never waits more than 2 s on pending state 2026-11-07 09:35:34 -08:00
Program.cs Vitals: heal grace - a heal never waits more than 2 s on pending state 2026-11-07 09:35:34 -08:00
RynthCore.RynthAiHostTests.csproj Snapshot for release 2026.10.15.2 (internal 2d4b0af) 2026-10-15 20:32:35 -04:00