feat: add playable first-battle militia camp
This commit is contained in:
@@ -284,6 +284,18 @@ async function advanceUntilBattle(page, battleId) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (activeScenes.includes('PrologueMilitiaCampScene')) {
|
||||
const advanced = await page.evaluate(() => {
|
||||
const scene = window.__HEROS_GAME__?.scene.getScene('PrologueMilitiaCampScene');
|
||||
return scene?.getDebugState?.()?.ready === true
|
||||
? scene?.debugCompleteCamp?.() ?? false
|
||||
: false;
|
||||
});
|
||||
if (advanced) {
|
||||
await page.waitForTimeout(320);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
await page.keyboard.press(activeScenes.includes('TitleScene') ? 'Enter' : 'Space');
|
||||
await page.waitForTimeout(240);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user