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>
This commit is contained in:
parent
7166d256ce
commit
486f72de58
6 changed files with 553 additions and 18 deletions
|
|
@ -191,6 +191,7 @@ internal static class Program
|
|||
CommandReplyTests.Register(runner);
|
||||
MonsterStatsTests.Register(runner);
|
||||
MetaSaveTests.Register(runner);
|
||||
HealGraceTests.Register(runner);
|
||||
return runner.Run("RynthAi host tests", args.Length > 0 ? args[0] : null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue