refactor: 重构幸运墙任务链,添加入口检查

This commit is contained in:
SherkeyXD
2024-02-05 00:50:26 +08:00
parent 54d612f42b
commit 32875b8bd9
4 changed files with 121 additions and 74 deletions

View File

@@ -5125,15 +5125,6 @@
"RecruitNowConfirm"
]
},
"ActivitiesBegin": {
"algorithm": "JustReturn",
"action": "DoNothing",
"next": [
"ReturnToActivities",
"MiningActivities",
"RecruitingActivities"
]
},
"ReturnToActivities": {
"template": "Return.png",
"templThreshold": 0.7,
@@ -5145,9 +5136,6 @@
80
],
"next": [
"ReturnToActivities",
"MiningActivities",
"RecruitingActivities",
"Stop"
]
},
@@ -5209,6 +5197,127 @@
"Stop"
]
},
"OrundumActivitiesBegin": {
"algorithm": "JustReturn",
"action": "DoNothing",
"next": [
"OrundumActivitiesReturnHome@ReturnButtons#next",
"OrundumActivitiesReturnHome",
"OrundumActivities"
]
},
"OrundumActivitiesReturnHome": {
"baseTask": "Home",
"action": "DoNothing",
"template": [
"Terminal.png",
"TerminalDark.png",
"TerminalSami.png",
"TerminalMistCity.png"
],
"next": [
"OrundumActivities"
]
},
"OrundumActivities": {
"doc": "幸运墙领合成玉",
"algorithm": "OcrDetect",
"text": [
"幸运墙",
"幸运",
"活动"
],
"action": "ClickSelf",
"roi": [
15,
80,
189,
144
],
"next": [
"OrundumActivitiesChoose",
"OrundumActivitiesReturn"
]
},
"OrundumActivitiesChoose": {
"baseTask": "OrundumActivitiesClick",
"template": "OrundumActivitiesClick.png",
"action": "DoNothing",
"sub": [
"OrundumActivitiesClick",
"OrundumActivitiesClick",
"OrundumActivitiesClick"
],
"subErrorIgnored": true,
"next": [
"OrundumActivitiesConfirm",
"OrundumActivitiesReturn"
]
},
"OrundumActivitiesClick": {
"action": "ClickSelf",
"roi": [
150,
150,
1000,
400
],
"templThreshold": 0.97,
"maskRange": [
1,
255
],
"rectMove": [
10,
10,
50,
50
]
},
"OrundumActivitiesConfirm": {
"action": "ClickSelf",
"roi": [
1030,
500,
200,
80
],
"next": [
"OrundumActivitiesEarnRewards"
]
},
"OrundumActivitiesEarnRewards": {
"action": "ClickRect",
"roi": [
590,
40,
130,
100
],
"specificRect": [
600,
600,
70,
70
],
"next": [
"OrundumActivitiesReturn"
]
},
"OrundumActivitiesReturn": {
"template": "CloseAnno.png",
"action": "ClickSelf",
"roi": [
1146,
0,
134,
162
],
"next": [
"RecruitingActivities",
"Stop"
]
},
"RecruitingActivitiesBegin": {
"algorithm": "JustReturn",
"action": "DoNothing",
@@ -5555,68 +5664,6 @@
"CloseTaskMailDouble"
]
},
"OrundumDailySignIn": {
"doc": "合成玉签到",
"baseTask": "OrundumDailySignIn-Click",
"template": "OrundumDailySignIn-Click.png",
"action": "DoNothing",
"sub": [
"OrundumDailySignIn-Click",
"OrundumDailySignIn-Click",
"OrundumDailySignIn-Click"
],
"subErrorIgnored": true,
"next": [
"OrundumDailySignIn-Confirm"
]
},
"OrundumDailySignIn-Click": {
"action": "ClickSelf",
"roi": [
150,
150,
1000,
400
],
"templThreshold": 0.97,
"maskRange": [
1,
255
],
"rectMove": [
10,
10,
50,
50
]
},
"OrundumDailySignIn-Confirm": {
"action": "ClickSelf",
"roi": [
1030,
500,
200,
80
],
"next": [
"OrundumDailySignIn-EarnRewards"
]
},
"OrundumDailySignIn-EarnRewards": {
"action": "ClickRect",
"roi": [
590,
40,
130,
100
],
"specificRect": [
600,
600,
70,
70
]
},
"VisitBegin": {
"algorithm": "JustReturn",
"action": "DoNothing",

View File

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB