Commit graph

3 commits

Author SHA1 Message Date
GaboGG
30bade19bd v0.17.2 - Fix chainState ref, lazy jpx detection, diag visibility
- Fix: chainState/chain used renamed var (jpxChainEnabled vs jpxChainStarted)
- Fix: jpxChainStart lazy-retries (10x/600ms) since jpx creates #ctrl-widget lazily
- Remove duplicate jpxChainStart definition
- HV.diag() now reports scripts.jpx + jpxBridge state for field diagnosis
2026-08-04 15:59:08 -04:00
GaboGG
68b44e022a v0.17.1 - jpx bridge v2: listen to jpx state events
- Listen for jpx_ctrlWidget_update (detail.active) — jpx's own state signal
- Re-trigger M when jpx reports inactive + monsters present + not battle over
- Fallback 2s poll in case the event is missed on page reload
- Cooldown guard (2.5s) to avoid double-trigger
- Stops on maxRounds / low HP / battle finish
2026-08-04 15:56:16 -04:00
GaboGG
5941b1d236 v0.17.0 - jpx round-chaining bridge
- New src/jpx-bridge.js: re-triggers jpx auto-battle (M key) after each
  round completes, chaining single-round auto-battler into continuous play
- Config: autoChainJpx (default on), chainMinHP 0.25, chainMaxRounds 0
- Safety: stops below chainMinHP, at maxRounds, or when jpx absent
- Settings panel: jpx Bridge section
- API: HV.chain(on), HV.chainState()
- Works by dispatching synthetic 'm' keydown (jpx reads e.key, not isTrusted)
- Never re-implements battle logic — jpx executes, we bridge rounds
2026-08-04 15:53:25 -04:00