Skip to content

Commit

Permalink
refactor: 荒原收菜改为进入古厅后进行 (#341)
Browse files Browse the repository at this point in the history
fix #273
  • Loading branch information
Windsland52 authored Feb 18, 2025
1 parent 1688875 commit 3419080
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 55 deletions.
17 changes: 16 additions & 1 deletion assets/resource/base/pipeline/startup.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,21 @@
],
"action": "Click"
},
"BackButtonWithDelay": {
"recognition": "TemplateMatch",
"template": [
"StartUp/BackButton.png",
"StartUp/BackButton_White.png"
],
"roi": [
0,
0,
134,
138
],
"action": "Click",
"post_delay": 3000
},
"Sub_BackButton": {
"is_sub": true,
"recognition": "TemplateMatch",
Expand Down Expand Up @@ -404,4 +419,4 @@
"HomeFlag"
]
}
}
}
149 changes: 95 additions & 54 deletions assets/resource/base/pipeline/wilderness.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"next": [
"EnterWilderness",
"EnterProduct",
"CollectEXP",
"CollectMoney",
"EnterAncientHall",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
Expand All @@ -27,8 +26,7 @@
"next": [
"EnterWilderness",
"EnterProduct",
"CollectEXP",
"CollectMoney",
"EnterAncientHall",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
Expand All @@ -38,58 +36,51 @@
"HomeLoading"
]
},
"CollectEXP": {
"EnterAncientHall": {
"recognition": "OCR",
"expected": [
"微尘",
"钟楼"
],
"expected": "古厅定位",
"roi": [
422,
65,
218,
236
],
"target_offset": [
0,
-30,
0,
0
1168,
148,
86,
24
],
"only_rec": true,
"action": "Click",
"post_wait_freezes": 1,
"next": [
"CollectMoney",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
"TrustDialogueInteraction",
"HomeFlag"
"AncientHallFlag"
],
"interrupt": [
"HomeButton"
"ClickAncientHall"
]
},
"CollectMoney": {
"AncientHallFlag": {
"recognition": "OCR",
"expected": [
"利齿",
"市集"
],
"expected": "古厅",
"roi": [
638,
6,
221,
232
843,
75,
55,
30
],
"target_offset": [
0,
-30,
0,
0
"only_rec": true,
"next": [
"NoExpMoney"
],
"action": "Click",
"post_wait_freezes": 1,
"interrupt": [
"CollectExpMoney"
]
},
"NoExpMoney": {
"recognition": "OCR",
"expected": "^(100|[1-9]\\d?)%$",
"roi": [
1015,
162,
65,
312
],
"inverse": true,
"next": [
"CollectAwards",
"CollectTrust",
Expand All @@ -98,9 +89,49 @@
"HomeFlag"
],
"interrupt": [
"HomeButton"
"BackButtonWithDelay"
]
},
"CollectExpMoney": {
"recognition": "OCR",
"expected": "收取",
"roi": [
1106,
180,
110,
258
],
"action": "Click",
"post_wait_freezes": {
"time": 500,
"target": [
843,
0,
242,
719
]
}
},
"ClickAncientHall": {
"recognition": "OCR",
"expected": "荒原古厅",
"roi": [
596,
93,
237,
172
],
"action": "Click",
"post_wait_freezes": {
"time": 300,
"target": [
843,
0,
242,
719
]
}
},
"CollectAwards": {
"recognition": "TemplateMatch",
"template": "Wilderness/CollectAwards.png",
Expand All @@ -119,6 +150,7 @@
],
"interrupt": [
"ObtainedAwards",
"BackButtonWithDelay",
"HomeButton"
]
},
Expand All @@ -141,6 +173,7 @@
],
"interrupt": [
"TestCritterTraining",
"BackButtonWithDelay",
"HomeButton"
]
},
Expand Down Expand Up @@ -177,6 +210,7 @@
"HomeFlag"
],
"interrupt": [
"BackButtonWithDelay",
"HomeButton"
]
},
Expand All @@ -196,6 +230,7 @@
"HomeFlag"
],
"interrupt": [
"BackButtonWithDelay",
"HomeButton"
]
},
Expand All @@ -215,6 +250,7 @@
"HomeFlag"
],
"interrupt": [
"BackButtonWithDelay",
"HomeButton"
]
},
Expand All @@ -237,7 +273,15 @@
0
],
"action": "Click",
"post_wait_freezes": 100,
"post_wait_freezes": {
"time": 300,
"target": [
0,
508,
622,
212
]
},
"next": [
"CollectProduct",
"AutoAssignCritters",
Expand Down Expand Up @@ -327,15 +371,14 @@
"next": [
"AutoAssignCritters",
"AutoSelectComfirm",
"CollectEXP",
"CollectMoney",
"EnterAncientHall",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
"TrustDialogueInteraction"
],
"interrupt": [
"BackButton"
"BackButtonWithDelay"
]
},
"AutoAssignCritters": {
Expand Down Expand Up @@ -379,15 +422,14 @@
8
],
"next": [
"CollectEXP",
"CollectMoney",
"EnterAncientHall",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
"TrustDialogueInteraction"
],
"interrupt": [
"BackButton"
"BackButtonWithDelay"
]
},
"SummonlngSuccess": {
Expand Down Expand Up @@ -422,15 +464,14 @@
],
"action": "Click",
"next": [
"CollectEXP",
"CollectMoney",
"EnterAncientHall",
"CollectAwards",
"CollectTrust",
"TrustDialogueNext",
"TrustDialogueInteraction"
],
"interrupt": [
"BackButton"
"BackButtonWithDelay"
]
},
"interrupt_SummonlngSuccessBack": {
Expand Down

0 comments on commit 3419080

Please sign in to comment.