The use endpoint rejects valid consumable use during ROUND_EVAL that the game permits. Verified against vendors/lovely/dump/ and confirmed empirically.
Bug
src/lua/endpoints/use.lua requires_state omits ROUND_EVAL, so using a consumable mid-eval returns INVALID_STATE. The game allows it: Card:can_use_consumeable (card.lua:1763 in the dump) only excludes HAND_PLAYED/DRAW_TO_HAND/PLAY_TAROT, and G.FUNCS.use_card explicitly restores the G.round_eval UI offset.
Empirical: used Hermit mid-eval → money 4→8, consumable consumed, state stayed ROUND_EVAL.
Fix
Add G.STATES.ROUND_EVAL to requires_state and the completion-detection state_restored whitelist (~L224). Both must change or the endpoint hangs.
Sibling of #202.
The
useendpoint rejects valid consumable use duringROUND_EVALthat the game permits. Verified againstvendors/lovely/dump/and confirmed empirically.Bug
src/lua/endpoints/use.luarequires_stateomitsROUND_EVAL, so using a consumable mid-eval returnsINVALID_STATE. The game allows it:Card:can_use_consumeable(card.lua:1763in the dump) only excludesHAND_PLAYED/DRAW_TO_HAND/PLAY_TAROT, andG.FUNCS.use_cardexplicitly restores theG.round_evalUI offset.Empirical: used Hermit mid-eval → money 4→8, consumable consumed, state stayed
ROUND_EVAL.Fix
Add
G.STATES.ROUND_EVALtorequires_stateand the completion-detectionstate_restoredwhitelist (~L224). Both must change or the endpoint hangs.Sibling of #202.