Skip to content

Commit 72c2ac4

Browse files
committed
适配寮活动,修复邮箱签到结界卡,寮宴会优化,寮商店修复
1 parent 0b07f23 commit 72c2ac4

File tree

4 files changed

+46
-26
lines changed

4 files changed

+46
-26
lines changed

src/common/funcList/1101_寮商店.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -352,28 +352,19 @@ export class Func1101 implements IFuncOrigin {
352352
name: '寮商店_功勋商店',
353353
operator: [{ desc: thisOperator[4].desc }, thisOperator[20]]
354354
})) {
355-
if (thisScript.oper({
356-
id: 1101,
357-
name: '寮商店_购买',
358-
operator: [thisOperator[15], thisOperator[16], thisOperator[17], thisOperator[18]]
359-
})) {
360-
curCnt -= 0.5;
361-
thisScript.keepScreen(false);
362-
continue;
363-
}
364355
const result = thisScript.findText('.+', 0, thisOperator[14].oper[2], '包含');
365356
if (result.length === 0) {
366357
console.log('未识别到任何字体');
367358
return true;
368359
} else {
369360
for (const r of thisScript.global.MT_liaoShopList) {
370-
const findInvName = thisScript.findTextByOcrResult(r, result, '包含');
371-
if (findInvName.length) {
361+
const findList = thisScript.findTextByOcrResult(r, result, '包含');
362+
if (findList.length) {
372363
const toClickRegion = [
373-
findInvName[0].points[0].x,
374-
findInvName[0].points[0].y,
375-
findInvName[0].points[0].x + 20,
376-
findInvName[0].points[0].y + 20,
364+
findList[0].points[0].x,
365+
findList[0].points[0].y,
366+
findList[0].points[0].x + 20,
367+
findList[0].points[0].y + 20,
377368
1000,
378369
]
379370
thisScript.regionClick([toClickRegion]);
@@ -384,10 +375,20 @@ export class Func1101 implements IFuncOrigin {
384375
thisScript.global.MT_liaoShop = 'back';
385376
break outer;
386377
}
378+
thisScript.keepScreen(false);
387379
break;
388380
}
389381
}
390382
}
383+
if (thisScript.oper({
384+
id: 1101,
385+
name: '寮商店_购买',
386+
operator: [thisOperator[15], thisOperator[16], thisOperator[17], thisOperator[18]]
387+
})) {
388+
curCnt -= 0.5;
389+
thisScript.keepScreen(false);
390+
continue;
391+
}
391392
curCnt++;
392393
if (thisScript.oper({
393394
name: '寮商店_购买',

src/common/funcList/500_进入寮活动.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,17 @@ export class Func500 implements IFuncOrigin {
424424
}
425425
// 道馆活动
426426
if (thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo'] || thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo_again']) {
427-
if (thisconf.admin) {
428-
thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo'] = false;
429-
thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo_again'] = false;
430-
thisScript.superGlobal.liao_activity_Swith['a_ctivity_narrow'] = false;
431-
const next_scheme = thisconf.a_ctivity_dojo_select;
432-
thisScript.rerun(next_scheme);
433-
return true;
427+
if ((nowDay >= 1 && nowDay <= 4) ||
428+
((nowDay === 5 || nowDay === 6 || nowDay === 0) && !thisconf.a_ctivity_narrow)
429+
) {
430+
if (thisconf.admin) {
431+
thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo'] = false;
432+
thisScript.superGlobal.liao_activity_Swith['a_ctivity_dojo_again'] = false;
433+
thisScript.superGlobal.liao_activity_Swith['a_ctivity_narrow'] = false;
434+
const next_scheme = thisconf.a_ctivity_dojo_select;
435+
thisScript.rerun(next_scheme);
436+
return true;
437+
}
434438
}
435439
if (thisScript.oper({
436440
name: '检测_寮界面道馆是否已开启',

src/common/funcList/518_邮箱签到.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export class Func518 implements IFuncOrigin {
6363
]
6464
],
6565
oper: [
66-
[center, 1280, 720, 173, 614, 307, 637, 1000], // 一键已读
66+
[center, 1280, 720, 200, 136, 435, 198, 1000], // 点击第一封邮件
67+
[center, 1280, 720, 192, 613, 300, 635, 1000], // 一键已读
6768
[right, 1280, 720, 1159, 94, 1199, 131, 1200], // 点击关闭
6869
],
6970
},
@@ -692,6 +693,20 @@ export class Func518 implements IFuncOrigin {
692693
[right, 1160, 681, 0x831f1f],
693694
]
694695
],
696+
}, { // 48 结界卡邮件提醒
697+
desc: [1280, 720,
698+
[
699+
[left, 206, 185, 0xf9dec0],
700+
[left, 216, 185, 0xeaccac],
701+
[left, 202, 165, 0xf28957],
702+
[left, 178, 151, 0xf4eae0],
703+
[left, 200, 149, 0xf7ede2],
704+
]
705+
],
706+
oper: [
707+
[center, 1280, 720, 176, 138, 454, 200, 1000],
708+
[center, 1280, 720, 1008, 596, 1134, 630, 1000],
709+
]
695710
}
696711
];
697712
operatorFunc(thisScript: Script, thisOperator: IFuncOperator[]): boolean {
@@ -783,6 +798,7 @@ export class Func518 implements IFuncOrigin {
783798
name: '检测_领取奖励弹窗',
784799
operator: [
785800
thisOperator[43],
801+
thisOperator[48],
786802
thisOperator[5],
787803
thisOperator[7],
788804
thisOperator[8],

src/common/funcList/522_寮宴会.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export class Func522 implements IFuncOrigin {
130130
oper: [
131131
[center, 1280, 720, 707, 416, 813, 438, 1000],
132132
[center, 1280, 720, 1083, 422, 1117, 456, 1000],
133-
[center, 1280, 720, 1013, 294, 1035, 312, 1000],
134133
]
135134
}, { // 8 点击阴阳寮
136135
desc: '页面是否为庭院_菜单已展开_另一种图标_御祝图标_只支持默认庭院皮肤与默认装饰',
@@ -181,7 +180,7 @@ export class Func522 implements IFuncOrigin {
181180
if (thisconfig.admin) {
182181
if (thisScript.oper({
183182
name: '宴会__寮管理开启',
184-
operator: [thisOperator[4]],
183+
operator: [thisOperator[4], thisOperator[9]],
185184
})) {
186185
return true;
187186
}
@@ -203,7 +202,7 @@ export class Func522 implements IFuncOrigin {
203202
}
204203
if (thisScript.oper({
205204
name: '进入寮神社',
206-
operator: [thisOperator[8], thisOperator[9]]
205+
operator: [thisOperator[8]]
207206
})) {
208207
return true;
209208
}

0 commit comments

Comments
 (0)