Catch screen: A and B buttons confirm selected action instead of hardcoded throw/run
This commit is contained in:
1 parent
96abd838a4
commit
fa1948d51c
2 files changed
+2
-2
No files matched your search
@@ -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; }
|
||||||
|
|||||||
Reference in new issue
Block a user