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

View File

@@ -1,8 +1,8 @@
{ {
"manifest_version": 1, "manifest_version": 1,
"name": "无树脂每日领奖", "name": "无树脂每日领奖",
"version": "1.1", "version": "1.2",
"description": "完成周本或首领讨伐等不使用浓缩树脂的副本挑战后,前往凯瑟琳领奖、派遣、纪行、尘歌壶。如果是周一会在尘歌壶自动购买树脂", "description": "完成周本或首领讨伐等不使用浓缩树脂的副本挑战后,切换好感队前往凯瑟琳领奖、派遣、纪行、尘歌壶。如果是周一会在尘歌壶自动购买树脂",
"authors": [ "authors": [
{ {
"name": "柒叶子", "name": "柒叶子",

View File

@@ -22,5 +22,10 @@
"须弥", "须弥",
"枫丹" "枫丹"
] ]
},
{
"name": "favorTeamName",
"type": "input-text",
"label": "请输入好感队名称"
} }
] ]