Skip to content

Commit 3de179b

Browse files
authored
Merge pull request #104 from zzliux/hm_dev
fix: 适配新巅峰赛斗技界面,修复逢魔 极逻辑
2 parents bef2881 + 8908e30 commit 3de179b

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ export class Func506 implements IFuncOrigin {
401401
return true;
402402
}
403403

404-
if (thisConf && thisConf.huntBoss_switch === true) {
404+
// 兼容没设置该按钮的逻辑 undefined 当true处理
405+
if (thisConf && thisConf.huntBoss_switch !== false) {
405406
if (thisScript.oper({
406407
name: '检测_首领退治是否已开启',
407408
operator: [{

src/common/funcList/508_逢魔首领.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export class Func508 implements IFuncOrigin {
278278
],
279279
}],
280280
});
281+
sleep(2000);
281282

282283
thisScript.oper({
283284
name: '无法点击首领BOSS集结挑战,换一个首领_是否有寻找 逢魔·普通/极 按钮',
@@ -346,16 +347,26 @@ export class Func508 implements IFuncOrigin {
346347
next_scheme_name: thisConf.next_scheme
347348
});
348349
} else {
350+
let operatorIndex = thisConf && thisConf['switch_ji_enabled'] ? 9 : 0
351+
352+
// 多次寻找无果后放弃挑战逢魔·极,寻找普通逢魔
353+
if (thisConf && thisConf['switch_ji_enabled'] && thisScript.global.fm_boss_btn_click_cnt >= (parseInt(thisConf.times_for_search_boss as string) || 20)) {
354+
operatorIndex = 0;
355+
}
356+
357+
// 尝试了多次寻找逢魔·极首领,放弃挑战逢魔·极,挑战普通逢魔,重试次数是原有的两倍
358+
const reTryNum = thisConf && thisConf['switch_ji_enabled'] && operatorIndex === 0 ? 2 : 1
359+
349360
if (
350361
thisScript.oper({
351362
name: '检测_是否有寻找 逢魔·普通/极 按钮',
352-
operator: [thisOperator[thisConf && thisConf['switch_ji_enabled'] ? 9 : 0]], // 检测 是否有开启 逢魔·极
363+
operator: [thisOperator[operatorIndex]], // 检测 是否有开启 逢魔·极
353364
})
354365
) {
355366
if (!thisScript.global.fm_boss_btn_click_cnt) {
356367
thisScript.global.fm_boss_btn_click_cnt = 0;
357368
}
358-
if (++thisScript.global.fm_boss_btn_click_cnt >= (parseInt(thisConf.times_for_search_boss as string) || 20)) {
369+
if (thisScript.global.fm_boss_btn_click_cnt++ >= (parseInt(thisConf.times_for_search_boss as string) * reTryNum || 20 * reTryNum)) {
359370
thisScript.global.fm_kiss_boss_flag = true;
360371
thisScript.myToast(
361372
`第${thisScript.global.fm_boss_btn_click_cnt}次点击查找逢魔·普通/极首领按钮未成功进入首领挑战,标记挑战成功e`

src/common/multiDetectColors.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -669,37 +669,39 @@ const multiDetectColors: IMultiDetectColorsOrigin = {
669669
[
670670
[right, 1232, 617, 0xd2bb90],
671671
[right, 1189, 627, 0x3b1e0d],
672-
[right, 1190, 109, 0xd7ae7d],
673-
[left, 38, 25, 0xf5e5a6],
674-
[left, 223, 31, 0x593716],
675-
[right, 714, 19, 0x8a4526],
672+
[right, 714, 19, 0x6b3121],
676673
[right, 743, 38, 0xecd79a],
674+
[left, 36, 37, 0xf5e2a3],
675+
[right, 1204, 66, 0xe3c298],
677676
]
678677
],
679678
},
680679
'巅峰斗技主界面_段位保护': {
681680
desc: [1280, 720,
682681
[
683-
[right, 1232, 617, 0xbebba3],
684-
[right, 1189, 627, 0x55565a],
685-
[right, 1190, 109, 0xd7ae7d],
686-
[left, 38, 25, 0xf5e5a6],
687-
[left, 223, 31, 0x593716],
688-
[right, 714, 19, 0x8a4526],
682+
[right, 714, 19, 0x6b3121],
689683
[right, 743, 38, 0xecd79a],
684+
[left, 36, 37, 0xf5e2a3],
685+
[right, 1204, 66, 0xe3c298],
686+
[right, 1179, 594, 0x585a5d],
687+
[right, 1203, 601, 0x565358],
688+
[right, 1179, 624, 0xc6cbb9],
689+
[left, 34, 36, 0xf7e9ab],
690690
]
691691
]
692692
},
693693
'巅峰斗技主界面_段位保护裂': {
694694
desc: [1280, 720,
695695
[
696-
[right, 1232, 617, 0xaebcb3],
697-
[right, 1190, 109, 0xd7ae7d],
698-
[left, 38, 25, 0xf5e5a6],
699-
[left, 223, 31, 0x593716],
700-
[right, 1189, 624, 0x677d8f],
701-
[right, 714, 19, 0x8a4526],
696+
[right, 714, 19, 0x6b3121],
702697
[right, 743, 38, 0xecd79a],
698+
[left, 36, 37, 0xf5e2a3],
699+
[right, 1204, 66, 0xe3c298],
700+
[right, 1182, 574, 0xaeccda],
701+
[right, 1162, 600, 0xaec8cd],
702+
[right, 1179, 601, 0x657e90],
703+
[right, 1180, 625, 0xb4cbcf],
704+
[left, 34, 36, 0xf7e9ab],
703705
]
704706
],
705707
},

src/common/version.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,9 @@ export const versionList = [{
14461446
}, {
14471447
version: '20251225_01',
14481448
desc: 'fix: 506添加首领退治开关,适配会长副会长场景'
1449+
}, {
1450+
version: '20251229_01',
1451+
desc: 'fix: 适配新巅峰赛斗技界面,修复逢魔 极逻辑'
14491452
}];
14501453

14511454
export default versionList[versionList.length - 1].version;

0 commit comments

Comments
 (0)