RynthSuite/Plugins
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace 493cca6bea Vitals: a kit its result line calls used up is not picked again
A kit's last heal ends "... Your Treated Healing Kit is used up." (ACE
Healer.DoHealing) and the server removes the kit. A use of an item the
player no longer has is answered with a bare UseDone and no chat, so a
used-up kit picked again is a heal lost.

Kit picks read the client's live pack walk (ConsumableLookup.Resolve,
BestPackHealingKit, BestPackStaminaKit), which drops the removed kit, but
a walk is reused for up to 1 s (DirectInventoryCooldownMs), and the next
kit goes out 700 ms after the line (KitLandGraceMs): inside that reuse
the used-up kit was picked again. An engine without GetContainerContents
has no walk at all; its inventory view is the object cache, which can
keep the removed kit for good.

Now the "is used up" line, when it names the kit in flight, makes every
kit pick skip that kit: for 3 s (UsedUpKitSkipMs) with the live walk, long
enough for a fresh walk to have dropped it, and for the session without
it (the server deleted the object; its id never comes back). A line
naming another kit (a late line from a kit that timed out) is logged and
ignored. ConsumableLookup.Resolve takes an optional skip predicate; a
skipped listed id falls through to the name match. Healing and stamina
kits.

WorldObjectCache.WalkClock: the clock GetDirectInventory's reuse runs on
(RynthClock unless a test sets it), so the tests can hold the walk still
and prove the skip, not a refreshed walk, keeps the kit out.

Ported from the earlier kit-drop work onto the live-walk lookup: the rest
of that work (dropping a kit after two bare answers, the 5 minute drop,
the emergency last resort for dropped kits, dropped potion stacks) is
covered by the live walk and is not carried.

Tests: KitUsedUpTests (new, 6). The walk-window cases fail on main and
with KitUsedUp stubbed to false; the no-walk case fails with a 3 s skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 09:32:29 -08:00
..
RynthCore.Plugin.RynthAi Vitals: a kit its result line calls used up is not picked again 2026-11-07 09:32:29 -08:00
RynthCore.Plugin.RynthChat Snapshot for release 2026.10.19.1 (internal f0bdcf8) 2026-10-19 09:11:22 -04:00
RynthCore.Plugin.RynthDefective Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
RynthCore.Plugin.RynthInventory Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthCore.Plugin.RynthLua Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthCore.Plugin.RynthNav Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthCore.Plugin.RynthNet Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
RynthCore.Plugin.RynthOracle Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthCore.Plugin.RynthSort Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthCore.Plugin.RynthTracker Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
RynthCore.Plugin.RynthVision RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
Shared Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
Directory.Build.props 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
Directory.Build.targets 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