Skip to content

Commit

Permalink
fix: 修复作战选择复现次数部分情况下无效的问题
Browse files Browse the repository at this point in the history
原匹配方式选择的ocr,roi的范围包括编队第二名角色的等级,当选择的复现次数在该等级中出现时,便会点击该等级,导致选择次数失效。
现改为模板匹配方式。
  • Loading branch information
Windsland52 committed Nov 28, 2024
1 parent 93b9856 commit 8aa64ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,10 @@
"name": "x4",
"pipeline_override": {
"SetReplaysTimes": {
"expected": "4"
"template": [
"Combat/SetReplaysTimesX4.png",
"Combat/SetReplaysTimesX4_selected.png"
]
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions assets/resource/base/pipeline/combat.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@
]
},
"SetReplaysTimes": {
"recognition": "OCR",
"text_doc": "Set in code.",
"recognition": "TemplateMatch",
"template_code": "Set in interface.json.",
"roi": [
751,
333,
Expand All @@ -711,6 +711,7 @@
],
"action": "Click",
"next": [
"SetReplaysTimes",
"StartReplay"
]
},
Expand Down

0 comments on commit 8aa64ed

Please sign in to comment.