GetModeChain in window.gameInfo for prod debugging

This commit is contained in:
Frederico Santos 2024-08-24 17:42:20 +01:00
parent 7bea5eb86e
commit 0f6170b3f7
2 changed files with 7 additions and 6 deletions

View File

@ -2652,7 +2652,8 @@ export default class BattleScene extends SceneBase {
wave: this.currentBattle?.waveIndex || 0,
party: this.party ? this.party.map(p => {
return { name: p.name, level: p.level };
}) : []
}) : [],
modeChain: this.ui.getModeChain(),
};
(window as any).gameInfo = gameInfo;
}

View File

@ -97,7 +97,7 @@ export default class MenuUiHandler extends MessageUiHandler {
render() {
const ui = this.getUi();
console.log(ui.getModeChain());
this.scene.updateGameInfo();
this.excludedMenus = () => [
{ condition: ![Mode.COMMAND, Mode.TITLE].includes(ui.getModeChain()[0]), options: [ MenuOptions.EGG_GACHA, MenuOptions.EGG_LIST] },
{ condition: bypassLogin, options: [ MenuOptions.LOG_OUT ] }