Skip to content

Commit ae6feba

Browse files
committed
僵尸寮小号增加切换方案(用于关闭游戏)
修复点启动后被错误执行rerun
1 parent 1157f4a commit ae6feba

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/common/funcList/609_僵尸寮小号功能.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export class Func609 implements IFuncOrigin {
2121
desc: '下划次数',
2222
type: 'number',
2323
default: '5',
24+
}, {
25+
name: 'next_scheme',
26+
desc: '下一个方案',
27+
type: 'scheme',
28+
default: '通用准备退出',
2429
}]
2530
}, {
2631
desc: '执行功能选择',
@@ -357,9 +362,9 @@ export class Func609 implements IFuncOrigin {
357362
]
358363
],
359364
oper: [
360-
[center, 1280, 720, 399, 193, 580, 217, 1000], // 层数上划起始
361-
[center, 1280, 720, 401, 679, 573, 706, 1000], // 层数上划结束
362-
[center, 1280, 720, 406, 262, 579, 310, 1000], // 选择一层
365+
[center, 1280, 720, 550, 193, 580, 217, 1000], // 层数上划起始
366+
[center, 1280, 720, 550, 679, 573, 706, 1000], // 层数上划结束
367+
[center, 1280, 720, 550, 262, 579, 310, 1000], // 选择一层
363368
[center, 1280, 720, 995, 608, 1149, 643, 1000], // 选择创建
364369
]
365370
}, { // 24 已集结_创建
@@ -928,7 +933,7 @@ export class Func609 implements IFuncOrigin {
928933
}
929934
if (thisScript.global.account_state === 'login') {
930935
if (thisScript.global.account_num >= (thisconf.account_count as number)) {
931-
thisScript.stop();
936+
thisScript.rerun(thisconf.next_scheme);
932937
return true;
933938
}
934939
if (thisScript.oper({

src/system/webviewEvents/funcList.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export default function webviewFuncList() {
7575
const defaultLaunchAppList = storeSettings.defaultLaunchAppList || [];
7676
if (defaultLaunchAppList.length == 0) {
7777
done(null);
78-
script.rerun();
78+
script.stop();
79+
script.run();
7980
context.startActivity(app.intent({
8081
action: android.content.Intent.ACTION_MAIN,
8182
category: android.content.Intent.CATEGORY_HOME,

0 commit comments

Comments
 (0)