Skip to content

Commit

Permalink
活动扫荡日常更新 (MaaXYZ#230)
Browse files Browse the repository at this point in the history
看了每次活动都要重写一个json,这次直接抽出一个模版,下次更新活动直接在interface里改数字加图片就行了,不知道是不是扫荡19关,19关名字是什么也不知道(知道的老哥添一下expected),活动还没推呢
  • Loading branch information
lamb203 authored Nov 1, 2024
1 parent a06466e commit 308196b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
14 changes: 14 additions & 0 deletions assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,20 @@
},
"活动选择": {
"cases": [
{
"name": "活动:东区黎明 19 艰难",
"pipeline_override": {
"ActivityEnterTheShow": {
"template": "Combat/Activity/LondonDawningEnterTheShow.png"
},
"TargetStageName": {
"expected": "19"
},
"StageDifficulty": {
"next": "ActivityStageDifficulty"
}
}
},
{
"name": "活动:绿湖噩梦 17 艰难(已结束)",
"pipeline_override": {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 37 additions & 3 deletions assets/resource/base/pipeline/combat_activity.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,47 @@
{
"ActivityEntry": {
"next": [
"ActivityEnterTheShow",
"Sub_StartUp"
]
},
"ActivityEnterTheShow": {
"recognition": "TemplateMatch",
"template_doc": "Set in code",
"roi": [
885,
123,
340,
183
],
"action": "Click",
"post_wait_freezes": 1,
"next": [
"ActivityMainChapter",
"ActivityEnterTheShow"
]
},
"ActivityMainChapter": {
"recognition": "OCR",
"expected": [
"剧情",
""
],
"roi": [
988,
571,
281,
144
],
"action": "Click",
"next": "SwipeLeftAndFindStage"
},
"ActivityStageDifficulty": {
"next": [
"ActivityStageDifficulty_Hard",
"ActivityStageDifficultyToRight"
]
},
"ActivityEntry": {
"next": []
},
"ActivityStageDifficulty_Hard": {
"recognition": "OCR",
"expected": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resource/base/pipeline/limbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,4 @@
],
"next": []
}
}
}

0 comments on commit 308196b

Please sign in to comment.