JS脚本:无树脂领奖添加切换好感队功能 (#804)

* Update settings.json

* Update manifest.json

* Update main.js
This commit is contained in:
5117600049
2025-05-14 09:54:24 +08:00
committed by GitHub
parent 5c83560117
commit 94d4b8247c
3 changed files with 11 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ async function tpEndDetection() {
}
let teaPot = settings.teaPot ?? 0;
let favorTeamName = settings.favorTeamName ?? 0;
let delay = 2000;
let ksl = settings.kslSelect ?? "枫丹";
async function kslAutoPath(location) {
@@ -31,7 +32,8 @@ async function tpEndDetection() {
// 前往_凯瑟琳
await kslAutoPath(ksl);
await sleep(1000);
if(favorTeamName) await genshin.switchParty("好感队");
await sleep(1000);
// 领取邮件
keyPress("Escape");
await sleep(1500);