Skip to content

Commit 924676d

Browse files
author
07218
committed
fix: 506添加首领退治开关,适配会长副会长场景
1 parent c2a1ec5 commit 924676d

File tree

3 files changed

+31
-16
lines changed

3 files changed

+31
-16
lines changed

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

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ export class Func506 implements IFuncOrigin {
2525
type: 'switch',
2626
default: false,
2727
value: false,
28+
},
29+
{
30+
name: 'huntBoss_switch',
31+
desc: '是否进入首领退治(用于会长副会长问题)',
32+
type: 'switch',
33+
default: true,
34+
value: true,
2835
}]
2936
}];
3037
operator: IFuncOperatorOrigin[] = [
@@ -394,21 +401,23 @@ export class Func506 implements IFuncOrigin {
394401
return true;
395402
}
396403

397-
if (thisScript.oper({
398-
name: '检测_首领退治是否已开启',
399-
operator: [{
400-
desc: thisOperator[1].desc
401-
}]
402-
})) {
403-
if (_liao_activity_state && _liao_activity_state.huntBoss) {
404-
return true;
405-
} else {
406-
return thisScript.oper({
407-
name: '检测_首领退治是否已开启',
408-
operator: [{
409-
oper: thisOperator[1].oper
410-
}]
411-
});
404+
if (thisConf && thisConf.huntBoss_switch === true) {
405+
if (thisScript.oper({
406+
name: '检测_首领退治是否已开启',
407+
operator: [{
408+
desc: thisOperator[1].desc
409+
}]
410+
})) {
411+
if (_liao_activity_state && _liao_activity_state.huntBoss) {
412+
return true;
413+
} else {
414+
return thisScript.oper({
415+
name: '检测_首领退治是否已开启',
416+
operator: [{
417+
oper: thisOperator[1].oper
418+
}]
419+
});
420+
}
412421
}
413422
}
414423

@@ -489,7 +498,7 @@ export class Func506 implements IFuncOrigin {
489498
}]
490499
})) {
491500

492-
if (thisConf.gateOfHades_switch) {
501+
if (thisConf && thisConf.gateOfHades_switch) {
493502
if (_liao_activity_state) {
494503
const nowDateDay = new Date().getDay();
495504
console.log('今天是周', nowDateDay);

src/common/schemeList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ const SchemeList: IScheme[] = [
563563
'506': {
564564
auto_switch_enabled: false,
565565
gateOfHades_switch: true,
566+
huntBoss_switch: false,
566567
},
567568
'516': {
568569
count: '10',
@@ -579,6 +580,7 @@ const SchemeList: IScheme[] = [
579580
'506': {
580581
auto_switch_enabled: false,
581582
gateOfHades_switch: false,
583+
huntBoss_switch: true,
582584
},
583585
'516': {
584586
count: '10',
@@ -739,6 +741,7 @@ const SchemeList: IScheme[] = [
739741
config: {
740742
'506': {
741743
gateOfHades_switch: false,
744+
huntBoss_switch: false,
742745
},
743746
'516': {
744747
count: '2',

src/common/version.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,9 @@ export const versionList = [{
14371437
}, {
14381438
version: '20251211_04',
14391439
desc: 'fix: 修复逢魔boss识别问题'
1440+
}, {
1441+
version: '20251225_01',
1442+
desc: 'fix: 506添加首领退治开关,适配会长副会长场景'
14401443
}];
14411444

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

0 commit comments

Comments
 (0)