Merge branch 'dev' into docs/glossary

This commit is contained in:
Helloworld
2022-07-24 17:23:36 +08:00
12 changed files with 52 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
name: 需求建议Feature request
description: 新功能、建议等
labels: ['feature']
labels: ['enhancement']
body:
- type: textarea
id: describe

View File

@@ -1,14 +1,11 @@
- 新增支持 国际服 (EN) 肉鸽 @cookie223 @MistEO
- 新增支持 日服肉鸽 @natt3
- 新增支持 肉鸽 设置开始次数、投资次数、投资完结束任务 @MistEO
- 新增支持 肉鸽 从选择关卡后 `Enter` 界面继续任务 @MistEO
- 新增支持 日服自动公招 @natt3
- 优化 肉鸽 编队策略,会清空并重新选等级最高的 @MistEO
- 优化 肉鸽 部分代码及识别错误 @horror-proton @zzyyyl @MistEO
- 修复 肉鸽 一直朝右的问题 @horror-proton @MistEO
- 修复 自动战斗 部分干员识别错误 @ABA2396
- 修复 刷理智 偶现掉落识别错误 @MistEO
- 修复 信用购物 偶现信用收取失败问题 @horror-proton @MistEO
- 修复 日服访问好友 的错误 @natt3
- 修复 B 服登陆时卡住的问题 @zzyyyl
- 优化并修复 部分界面问题 @lhhxxxxx @ABA2396 @LeoQ7 @zzyyyl
- 新增支持 繁中服 自动公招、公招识别 @rockerhank
- 修复 肉鸽 编队人数过多时出现的一些问题 @MistEO
- 修复 肉鸽 偶现掉线后、凌晨 4 点更新后无法继续的问题 @MistEO
- 修复 肉鸽 在部分模拟器上战斗画面识别错误问题 @MistEO
- 修复 EN 服 肉鸽 招募干员、进入安全屋、领取关卡奖励时卡住的问题 @MistEO
- 修复 刷理智 偶现掉落识别问题 @MistEO
- 修复 自动战斗 选择了 `删除编队` 时任务报错的问题 @MistEO
- 修复 自动战斗 存在 14 个及以上干员时的崩溃问题 @MistEO
- 修复 界面 崩溃问题 @MistEO
- 新增 core `AsstGetUUID`, `AsstGetTasksList` 接口 @MistEO
- 更新 各种文档 @LYZhelloworld @zzyyyl @ABA2396

View File

@@ -75,9 +75,9 @@ Please refer to: [FAQ](docs/en/FAQ.md)
## Supports for overseas clients
- Global(EN) Client
Supports basic features like Combat, Recruitment calculate, Visiting, Collocting, Auto Roguelike(beta), etc. See also [README](resource/global/YoStarEN/readme.md)
Supports basic features like Combat, Visiting, Collocting, Auto Roguelike(beta), Recruitment calculate, etc. See also [README](resource/global/YoStarEN/readme.md)
- JP Client
Supports basic features like Combat, Recruitment calculate, Visiting, Collocting, Auto Recruiting, Auto Roguelike(beta), etc. See also [README](resource/global/YoStarJP/readme.md)
Supports basic features like Combat, Auto Recruiting, Visiting, Collocting, Auto Roguelike(beta), Recruitment calculate, etc. See also [README](resource/global/YoStarJP/readme.md)
- KR Client
Supports basic features like Combat, etc. See also [README](resource/global/YoStarKR/readme.md)
- ZH_CHT Client

View File

@@ -86,13 +86,13 @@ MAA 的意思是 MAA Assistant Arknights
## 外服支持
- 国际服(美服)
支持基本的刷理智、公招识别、访问好友、领取奖励功能,支持肉鸽功能(测试版本),请参考 [说明](resource/global/YoStarEN/readme.md)
支持基本的刷理智、访问好友、领取奖励、自动肉鸽(测试版本)、公招识别,请参考 [说明](resource/global/YoStarEN/readme.md)
- 日服
支持基本的刷理智、公招识别、访问好友、领取奖励自动公招,支持肉鸽功能(测试版本),请参考 [说明](resource/global/YoStarJP/readme.md)
支持基本的刷理智、自动公招、访问好友、领取奖励自动肉鸽(测试版本)、公招识别,请参考 [说明](resource/global/YoStarJP/readme.md)
- 韩服
支持基本的刷理智功能,请参考 [说明](resource/global/YoStarKR/readme.md)
- 繁中服
支持基本的刷理智功能,请参考 [说明](resource/global/txwy/readme.md)
支持基本的刷理智、自动公招、公招识别功能,请参考 [说明](resource/global/txwy/readme.md)
由于外服用户较少及项目人手不足的问题,外服目前都仅适配了基本的功能。若您有强需求,欢迎在 [讨论区](https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions) 催更,~~或加入我们一起建设 MAA~~

View File

@@ -9,10 +9,10 @@
- 刷理智(仅支持选择`当前关卡`
- 使用理智药恢复理智
- 使用源石恢复理智
- 指定次数
- 公招计算
- 刷理智指定
- 访问好友
- 领取日常奖励
- 公招计算
- 无限刷肉鸽(测试功能)
## Global (EN)
@@ -25,7 +25,7 @@ Now supports:
- Restore with potion
- Restore with Originite
- Set the max number of auto battles
- Recruitment calculate
- Friends visit
- Award collect
- Recruitment calculate
- Auto Roguelike (beta)

View File

@@ -9,11 +9,11 @@
- 刷理智(仅支持选择`当前关卡`
- 使用理智药恢复理智
- 使用源石恢复理智
- 指定次数
- 公招计算
- 刷理智指定次数
- 自动公招
- 访问好友
- 领取日常奖励
- 自动公招
- 公招计算
- 无限刷肉鸽(测试功能)
## Japanese
@@ -26,10 +26,10 @@ Now supports:
- Restore with potion
- Restore with Originite
- Set the max number of auto battles
- Recruitment calculate
- Auto Recruiting
- Friends visit
- Award collect
- Auto Recruiting
- Recruitment calculate
- Auto Roguelike (beta)
## 日本
@@ -42,8 +42,8 @@ Now supports:
- ポーションで復元
- Originiteで復元
- 自動戦闘の最大数を設定します
- 採用計算
- 自動採用
- 友達が訪問
- アワードコレクト
- 自動採用
- 採用計算
- 自動ローグライク(ベータ版)

View File

@@ -9,4 +9,6 @@
- 刷理智(仅支持选择`当前关卡`
- 使用理智药恢复理智
- 使用源石恢复理智
- 指定次数
- 刷理智指定次数
- 自动公招
- 公招识别

View File

@@ -7029,7 +7029,7 @@
1,
255
],
"templThreshold": 0.7
"templThreshold": 0.9
},
"Roguelike1FormationOperSelected": {
"template": "empty.png",
@@ -7430,6 +7430,16 @@
"Roguelike1StageCambatDps",
"Roguelike1StageEmergencyDps",
"Roguelike1StageDreadfulFoe",
"TodaysSuppliesToRoguelike1",
"TerminalToRoguelike1",
"CloseAnnoToRoguelike1",
"Roguelike1TodoEnter",
"Roguelike1Continue",
"ReturnToRoguelike1",
"ReturnToRoguelike1Confirm",
"OfflineConfirmToRoguelike1",
"StartToWakeUpToRoguelike1",
"StartUpConnectingToRoguelike1",
"Roguelike1ClickToStartPoint"
]
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -132,6 +132,9 @@ bool asst::BattleImageAnalyzer::opers_analyze()
for (const MatchRect& flag_mrect : flags_analyzer.get_result()) {
BattleRealTimeOper oper;
oper.rect = flag_mrect.rect.move(click_move);
if (oper.rect.x + oper.rect.width >= m_image.cols) {
oper.rect.width = m_image.cols - oper.rect.x;
}
oper.avatar = m_image(utils::make_rect<cv::Rect>(oper.rect));
Rect available_rect = flag_mrect.rect.move(avlb_move);
@@ -147,6 +150,9 @@ bool asst::BattleImageAnalyzer::opers_analyze()
#endif
Rect cooling_rect = flag_mrect.rect.move(cooling_move);
if (cooling_rect.x + cooling_rect.width >= m_image.cols) {
cooling_rect.width = m_image.cols - cooling_rect.x;
}
oper.cooling = oper_cooling_analyze(cooling_rect);
if (oper.cooling && oper.available) {
Log.error("oper is available, but with cooling");

View File

@@ -2,8 +2,7 @@
//#include "RoguelikeSkillSelectionTaskPlugin.h"
#include "StageDropsTaskPlugin.h"
#include "DepotImageAnalyzer.h"
#include "StageDropsImageAnalyzer.h"
asst::DebugTask::DebugTask(const AsstCallback& callback, void* callback_arg)
: PackageTask(callback, callback_arg, TaskType)
@@ -15,7 +14,9 @@ asst::DebugTask::DebugTask(const AsstCallback& callback, void* callback_arg)
bool asst::DebugTask::run()
{
cv::Mat image = cv::imread("depot2.png");
DepotImageAnalyzer analyzer(image);
cv::Mat image = cv::imread("err/1.png");
cv::Mat resized;
cv::resize(image, resized, cv::Size(1280, 720), 0, 0, cv::INTER_AREA);
StageDropsImageAnalyzer analyzer(resized);
return analyzer.analyze();
}