fix: 修改每周经验值上限 && 意外的升级弹窗 (#2255)

* chore: 修改每周经验值上限

* fix: 意外出现升级提示
This commit is contained in:
Bread Grocery
2025-10-27 16:51:28 +08:00
committed by GitHub
parent a4a9d6c3bd
commit 0aa613dce1
5 changed files with 7 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
| room | 奇域关卡关键词或关卡 GUID支持多个id用中文或英文逗号隔开 | 7070702264 |
| force | 忽略本周经验值已达上限 | false |
| thisAttempts | 指定通关次数 | 0 |
| expWeeklyLimit | 每周可获取的经验值上限 | 5000 |
| expWeeklyLimit | 每周可获取的经验值上限 | 4000 |
| expPerAttempt | 每次通关获取的经验值数量 | 20 |
### ❗ 注意事项

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -147,6 +147,7 @@ const findMessageEnter = () => findImageWithinBounds("assets/Enter.png", 0, 1020
const findMessageEnter2 = () => findImageWithinBounds("assets/Enter2.png", 0, 1020, 960, 60);
const findExitButton = () => findImageWithinBounds("assets/Exit.png", 960, 0, 960, 540);
const findGotTeyvatButton = () => findTextWithinBounds("返回", 1500, 0, 300, 95, { contains: true });
const findClickAnywhere = () => findTextWithinBounds("空白处", 610, 950, 700, 60, { contains: true });
const isInLobby = () => findMessageEnter() !== void 0 || findMessageEnter2() !== void 0;
const goToLobby = async () => {
const ok = await waitForAction(
@@ -290,6 +291,8 @@ const startGame = async () => {
await assertRegionDisappearing(prepare, "等待加入准备区提示消失超时");
click(770, 275);
} else {
// 出现升级提醒时,点击空白处继续
findClickAnywhere()?.click();
if (outputCount % 7 === 0 ) {
log.info("等待本次关卡结束...");
}
@@ -324,7 +327,7 @@ const startGame = async () => {
const rooms = roomStr.split(/[,]/).map(r => r.trim()).filter(r => r);
const force = settings.force ?? false;
const thisAttempts = Math.max(0, Number(settings.thisAttempts || "0"));
const expWeeklyLimit = Math.max(1, Number(settings.expWeeklyLimit || "5000"));
const expWeeklyLimit = Math.max(1, Number(settings.expWeeklyLimit || "4000"));
const expPerAttempt = Math.max(1, Number(settings.expPerAttempt || "20"));
const store = useStore("data");
store.weekly = store.weekly || { expGained: 0, attempts: 0 };

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "千星奇域每周刷取经验值",
"version": "0.3",
"version": "0.4",
"bgi_version": "0.52.0",
"description": "千星奇域每周刷取经验值",
"authors": [

View File

@@ -27,7 +27,7 @@
"type": "input-text",
"name": "expWeeklyLimit",
"label": "每周可获取的经验值上限",
"default": "5000"
"default": "4000"
},
{
"type": "input-text",