Skip to content

Commit

Permalink
feat: 完成所有收菜功能
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jul 13, 2023
1 parent a7b210d commit 0349871
Show file tree
Hide file tree
Showing 16 changed files with 677 additions and 27 deletions.
442 changes: 442 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
- 自动收菜
最基本的了,没啥好说的
- 关卡掉落识别
但这游戏还没企鹅物流这种东西,有没有佬来一起弄一个
有佬在搓类似企鹅的东西了,[圣洛夫数据部](https://github.com/St-Pavlov-Data-Department),欢迎加入!
- 自动战斗
这游戏的自动战斗有点小难度,但又没粥那么难。我觉得完全可以做到打的比大多数玩家水平高,纯粹的无感情的概率 + 数值机器

## 目前进度

- 正在搓 [框架](https://github.com/MaaAssistantArknights/MaaFramework),免得每次新游戏重复造轮子
已经基本完成了,还有些细节及小 bug 要优化下
- 收菜功能正在写
- [x] [框架](https://github.com/MaaAssistantArknights/MaaFramework) 基本完成
- [x] 收菜功能写完了,启动游戏 + 收荒原 + 每日心相 + 日常奖励
- [ ] 进一步优化框架

## Join us

Expand Down
22 changes: 17 additions & 5 deletions assets/resource/pipeline/awards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"MailAwards": {
"Awards": {
"next": [
"Sub_MailBadge",
"Sub_DailyBadge",
"HomeFlag",
"Sub_StartUp"
]
},
"Sub_MailBadge": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "template/Awards/MailAwards.png",
"template": "template/Awards/Badge.png",
"threshold": 0.9,
"roi": [
47,
115,
Expand All @@ -11,7 +21,7 @@
"action": "Click",
"next": [
"CollectMailAwards",
"MailAwards"
"Sub_MailBadge"
]
},
"CollectMailAwards": {
Expand Down Expand Up @@ -57,9 +67,11 @@
"Sub_BackButton"
]
},
"DailyAwards": {
"Sub_DailyBadge": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "template/Awards/MailAwards.png",
"template": "template/Awards/Badge.png",
"threshold": 0.9,
"action": "Click",
"roi": [
44,
Expand Down
1 change: 1 addition & 0 deletions assets/resource/pipeline/combat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
197 changes: 197 additions & 0 deletions assets/resource/pipeline/psychube.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"Psychube": {
"next": [
"EnterTheShow",
"ResourceStages",
"FreePsychubeStages",
"PsychubeStages_7",
"Sub_StartUp"
]
},
"EnterTheShow": {
"recognition": "TemplateMatch",
"template": "template/Psychube/EnterTheShow.png",
"roi": [
926,
221,
229,
153
],
"action": "Click",
"next": [
"ResourceStages"
]
},
"ResourceStages": {
"recognition": "TemplateMatch",
"template": "template/Psychube/ResourceStages.png",
"roi": [
218,
571,
169,
149
],
"action": "Click",
"next": [
"FreePsychubeStages",
"NoFreePsychubeStagesFlag"
]
},
"FreePsychubeStages": {
"recognition": "TemplateMatch",
"template": "template/Psychube/FreePsychubeStages.png",
"roi": [
180,
203,
246,
306
],
"action": "Click",
"next": [
"PsychubeStages_7",
"ReadyForAction"
]
},
"NoFreePsychubeStagesFlag": {
"recognition": "TemplateMatch",
"template": "template/Psychube/NoFreePsychubeStagesFlag.png",
"roi": [
732,
210,
233,
297
],
"next": [
"HomeFlag",
"Sub_StartUp"
]
},
"PsychubeStages_7": {
"recognition": "TemplateMatch",
"template": "template/Psychube/PsychubeStages_7.png",
"roi": [
306,
492,
271,
179
],
"action": "Click",
"next": [
"ReadyForAction",
"PsychubeStages_7"
]
},
"ReadyForAction": {
"recognition": "OCR",
"text": [
"开始行动"
],
"roi": [
958,
537,
235,
136
],
"action": "Click",
"next": [
"SwitchToReplay",
"SetReplaysTimes",
"StartReplay"
]
},
"SwitchToReplay": {
"recognition": "TemplateMatch",
"template": "template/Psychube/SwitchToReplay.png",
"roi": [
781,
581,
145,
139
],
"action": "Click",
"next": [
"SetReplaysTimes",
"StartReplay"
]
},
"SetReplaysTimes": {
"recognition": "TemplateMatch",
"template": "template/Psychube/SetReplaysTimes.png",
"roi": [
737,
586,
174,
134
],
"action": "Click",
"next": [
"ReplayTwice"
]
},
"ReplayTwice": {
"recognition": "TemplateMatch",
"template": "template/Psychube/ReplayTwice.png",
"roi": [
740,
463,
168,
148
],
"action": "Click",
"next": [
"StartReplay"
]
},
"StartReplay": {
"recognition": "OCR",
"text": [
"复现"
],
"roi": [
958,
537,
235,
136
],
"action": "Click",
"next": [
"Replaying"
]
},
"Replaying": {
"recognition": "OCR",
"text": [
"行为",
"复现"
],
"roi": [
1078,
77,
202,
143
],
"post_delay": 5000,
"next": [
"Replaying",
"Victory"
]
},
"Victory": {
"recognition": "OCR",
"text": [
"战斗",
"胜利"
],
"roi": [
678,
10,
473,
240
],
"action": "Click",
"next": [
"HomeFlag",
"Sub_StartUp"
]
}
}
27 changes: 13 additions & 14 deletions assets/resource/pipeline/startup.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"StartUp": {
"Sub_StartUp": {
"is_sub": true,
"next": [
"BluePochLogo",
"Disclaimer",
"GameLoading",
"Download",
"StartGame",
"CloseAnnouncement",
"Sub_HomeLoading",
"HomeFlag",
"Sub_HomeButton",
"Sub_BackButton",
"Start1999"
"Sub_HomeLoading",
"StartGame",
"CloseAnnouncement",
"Download",
"GameLoading",
"BluePochLogo",
"Disclaimer",
"Sub_Start1999"
]
},
"Start1999": {
"Sub_Start1999": {
"is_sub": true,
"action": "StartApp",
"package": "com.shenlan.m.reverse1999/com.ssgame.mobile.gamesdk.frame.AppStartUpActivity",
"next": [
"StartUp"
]
"package": "com.shenlan.m.reverse1999/com.ssgame.mobile.gamesdk.frame.AppStartUpActivity"
},
"BluePochLogo": {
"recognition": "TemplateMatch",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions assets/resource/pipeline/wilderness.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"CollectEXP",
"CollectMoney",
"CollectTrust",
"Sub_HomeButton",
"Sub_HomeLoading"
"Sub_StartUp"
]
},
"EnterWilderness": {
Expand All @@ -21,10 +20,10 @@
"action": "Click",
"next": [
"EnterWilderness",
"Sub_HomeLoading",
"CollectEXP",
"CollectMoney",
"CollectTrust"
"CollectTrust",
"Sub_HomeLoading"
]
},
"CollectEXP": {
Expand Down

0 comments on commit 0349871

Please sign in to comment.