Skip to content

Commit

Permalink
fix: 修复轶事多次返回主页面的情况;复现次数固定为4次;为轶事派遣任务补充说明 (MaaXYZ#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Windsland52 authored Nov 15, 2024
1 parent 64e6b6a commit 1838283
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 39 deletions.
26 changes: 1 addition & 25 deletions assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"entry": "Awards"
},
{
"name": "轶事派遣",
"name": "轶事派遣(角色故事请自行阅读)",
"entry": "Anecdote",
"pipeline_override": {
"EnterTheActivityMain": {
Expand Down Expand Up @@ -802,30 +802,6 @@
},
"复现次数": {
"cases": [
{
"name": "x1",
"pipeline_override": {
"SetReplaysTimes": {
"expected": "1"
}
}
},
{
"name": "x2",
"pipeline_override": {
"SetReplaysTimes": {
"expected": "2"
}
}
},
{
"name": "x3",
"pipeline_override": {
"SetReplaysTimes": {
"expected": "3"
}
}
},
{
"name": "x4",
"pipeline_override": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"interrupt": [
"ReveriesInTheRainMainEntry",
"EnterTheShow",
"HomeButton",
"BackButton",
"StartUp"
"ReturnMain"
]
},
"ReveriesInTheRainMainEntry": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"interrupt": [
"OutsideDeduction",
"EnterTheShow",
"HomeButton",
"BackButton",
"StartUp"
"ReturnMain"
]
},
"OutsideDeduction": {
Expand Down
13 changes: 8 additions & 5 deletions assets/resource/base/pipeline/anecdote.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
"next": [
"ActivityMainFlag",
"ActivityMainAnecdoteFlag",
"AnecdoteMainFlag"
"AnecdoteMainFlag",
"EnterTheActivityMain"
],
"interrupt": [
"EnterTheActivityMain",
"ActivityMainSelectAnecdote",
"ObtainedAwards",
"StartUp"
"ReturnMain"
]
},
"ActivityMainFlag": {
Expand Down Expand Up @@ -590,6 +589,10 @@
183
],
"action": "Click",
"post_wait_freezes": 300
"post_wait_freezes": 300,
"next": [
"ActivityMainFlag",
"EnterTheActivityMain"
]
}
}
4 changes: 1 addition & 3 deletions assets/resource/base/pipeline/limbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"ArtificialSleepwalkingAwards",
"EnterTheShow",
"ArtificialSleepwalking",
"HomeButton",
"BackButton",
"StartUp"
"ReturnMain"
]
},
"ArtificialSleepwalking": {
Expand Down
74 changes: 74 additions & 0 deletions assets/resource/base/pipeline/startup.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@
"Sub_Start1999"
]
},
"ReturnMain": {
"doc": "返回主界面(专供任务开始前使用)",
"next": [
"HomeButton",
"BackButton",
"ObtainedAwards",
"AccumulatedSignIn",
"BirthdayReward",
"Reward",
"CloseDuringFestivalDipaRewardPage",
"StartGame",
"CloseAnnouncement",
"Download",
"GameLoading",
"BluePochLogo",
"Disclaimer",
"Stop"
]
},
"Sub_StartUp": {
"is_sub": true,
"next": [
Expand Down Expand Up @@ -245,6 +264,26 @@
"action": "Click"
},
"Stop": {},
"Reward": {
"recognition": "TemplateMatch",
"template": [
"StartUp/Reward.png",
"StartUp/Reward1.png"
],
"roi": [
419,
90,
297,
148
],
"action": "Click",
"target": [
0,
0,
526,
590
]
},
"Sub_Reward": {
"is_sub": true,
"recognition": "TemplateMatch",
Expand All @@ -266,6 +305,17 @@
590
]
},
"AccumulatedSignIn": {
"recognition": "TemplateMatch",
"template": "StartUp/AccumulatedSignIn.png",
"roi": [
562,
483,
347,
163
],
"action": "Click"
},
"Sub_AccumulatedSignIn": {
"is_sub": true,
"recognition": "TemplateMatch",
Expand All @@ -278,6 +328,18 @@
],
"action": "Click"
},
"BirthdayReward": {
"recognition": "TemplateMatch",
"template": "StartUp/BirthdayReward.png",
"threshold": 0.8,
"roi": [
803,
273,
121,
121
],
"action": "Click"
},
"Sub_BirthdayReward": {
"is_sub": true,
"recognition": "TemplateMatch",
Expand All @@ -291,6 +353,18 @@
],
"action": "Click"
},
"CloseDuringFestivalDipaRewardPage": {
"green_mask": true,
"recognition": "TemplateMatch",
"template": "StartUp/CloseDuringFestivalDipaRewardPage.png",
"roi": [
1069,
68,
138,
138
],
"action": "Click"
},
"Sub_CloseDuringFestivalDipaRewardPage": {
"is_sub": true,
"green_mask": true,
Expand Down

0 comments on commit 1838283

Please sign in to comment.