Catch screen: A and B buttons confirm selected action instead of hardcoded throw/run

This commit is contained in:
Sterling Archer
2026-05-27 15:50:16 -07:00
parent 96abd838a4
commit fa1948d51c
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -379,7 +379,7 @@ class Game {
if (s === 'party-select') { this._partySelectConfirm(); return; } if (s === 'party-select') { this._partySelectConfirm(); return; }
if (s === 'starter') { this.pickStarter(this._starterCursor||0); return; } if (s === 'starter') { this.pickStarter(this._starterCursor||0); return; }
if (s === 'starter-confirm') { document.getElementById('btn-starter-continue')?.click(); return; } if (s === 'starter-confirm') { document.getElementById('btn-starter-continue')?.click(); return; }
if (s === 'catch') { const btns = document.querySelectorAll('.catch-action-btn'); if (btns[0]) btns[0].click(); return; } if (s === 'catch') { const btns = document.querySelectorAll('.catch-action-btn'); if (btns[this._catchCursor||0]) btns[this._catchCursor||0].click(); return; }
if (s === 'catch-result') { document.getElementById('btn-catch-continue')?.click(); return; } if (s === 'catch-result') { document.getElementById('btn-catch-continue')?.click(); return; }
if (s === 'result') { document.getElementById('btn-result-cont')?.click(); return; } if (s === 'result') { document.getElementById('btn-result-cont')?.click(); return; }
if (s === 'levelup') { document.getElementById('btn-lu-cont')?.click(); return; } if (s === 'levelup') { document.getElementById('btn-lu-cont')?.click(); return; }
@@ -391,7 +391,7 @@ class Game {
if (s === 'battle' && this.state.answering) { return; } if (s === 'battle' && this.state.answering) { return; }
if (s === 'battle' && !this.state.answering) { this._confirmCursor(); return; } if (s === 'battle' && !this.state.answering) { this._confirmCursor(); return; }
if (s === 'intro') { this.advanceIntro(); return; } if (s === 'intro') { this.advanceIntro(); return; }
if (s === 'catch') { const btns = document.querySelectorAll('.catch-action-btn'); if (btns[1]) btns[1].click(); return; } if (s === 'catch') { const btns = document.querySelectorAll('.catch-action-btn'); if (btns[this._catchCursor||0]) btns[this._catchCursor||0].click(); return; }
if (s === 'result') { document.getElementById('btn-result-cont')?.click(); return; } if (s === 'result') { document.getElementById('btn-result-cont')?.click(); return; }
if (s === 'starter-confirm') { document.getElementById('btn-starter-continue')?.click(); return; } if (s === 'starter-confirm') { document.getElementById('btn-starter-continue')?.click(); return; }
if (s === 'catch-result') { document.getElementById('btn-catch-continue')?.click(); return; } if (s === 'catch-result') { document.getElementById('btn-catch-continue')?.click(); return; }
BIN
View File
Binary file not shown.