Commit Graph

165 Commits

Author SHA1 Message Date
MistEO
42762bfbb7 feat: 支持多模板匹配,任一达到阈值即视为命中
MultiMatcher 暂不支持,仅使用第一个模板
2023-10-01 13:54:56 +08:00
zzyyyl
a5daac889a style: code format 2023-09-30 23:44:34 +08:00
zzyyyl
af5419a26f feat: 增加接口 get_json(), 运行时可以使用 Task.get_json() 获取任务配置的原生 json 内容 2023-09-30 21:16:36 +08:00
zzyyyl
3e89b4a35e perf: use std::string_view 2023-09-29 00:33:28 +08:00
zzyyyl
6e3a80efcb feat: 每次 parse 都先清空已生成的任务信息 2023-09-29 00:33:28 +08:00
zzyyyl
12aebc6612 fix: 修复 "baseTask": "#none",以及相关文档 2023-09-29 00:33:28 +08:00
zzyyyl
7fd753f8a2 feat: 多文件任务从 json 层面合并后再重新解析
现在如果有 CN 任务
```
"base": { "text": [ "CN" ], "next": [ "yyy" ] },
"A": { "baseTask": "base", "next": [ "xxx" ] }
```
只需要在 EN 文件中重新定义 base:
```
"base": { "text": [ "EN" ] }
```
就等价于
```
"base": { "text": [ "EN" ], "next": [ "yyy" ] },
"A": { "text": [ "EN" ], "next": [ "xxx" ] }
```

外服适配不再是难题!
Multi-language adaptation is no longer a problem!
2023-09-29 00:33:20 +08:00
zzyyyl
20dfd8b3d0 fix: 修复超出生成任务上限时访问越界的问题,增加生成任务上限至 10000
是半年前的憨憨 zzyyyl 写的!
link to 9ff4c30b08
2023-09-28 21:14:54 +08:00
zzyyyl
c44b876a19 debug: debug 模式下增加一项可省略模板任务名的检查 2023-09-24 12:05:02 +08:00
zzyyyl
9c653dba81 debug: 增加一项多余空任务的检查 2023-09-22 20:48:26 +08:00
MistEO
9100a00411 feat: 肉鸽烧开水模式增加凹开局直升 (#6443)
fix #4791 fix #4833 fix #5539 fix #6203
2023-09-20 12:52:38 +08:00
Lancarus
8ed8449a45 feat: 适配其他服,格式化代码 2023-09-19 20:34:41 +08:00
zzyyyl
d4c1f4e7de fix: 修复 debug 模式下 tasks.json 检查未通过时的访问越界问题 2023-09-19 20:34:38 +08:00
zzyyyl
183294f04a feat: 增加未通过企鹅检查的掉落截图,增加 UnknownStage 时的难度回调 2023-09-11 12:05:05 +08:00
MistEO
c15ef1cc22 fix: 简单修复一下异步Load导致的错误
fix #6250
2023-09-10 12:43:32 +08:00
Annoying Flower
5f72e09060 feat: 新增肉鸽干员自动撤退字段 (#6241) 2023-09-07 17:16:38 +08:00
MistEO
7ef3597de3 fix: 规避crt死锁问题
fix #6188
2023-09-02 13:40:30 +08:00
MistEO
100738567d fix: 尝试修复LoadResource卡死的问题 2023-09-02 01:16:40 +08:00
MistEO
6ef6789819 fix: build error on ubuntu 2023-08-28 23:37:00 +08:00
MistEO
27124c65be fix: 不再对资源进行并行加载 2023-08-28 23:00:00 +08:00
MistEO
de01df6af6 fix: try to fix #6006 2023-08-28 20:05:44 +08:00
Lancarus
d7fb47714b feat: 增加烧开水功能,优化萨米肉鸽策略 (#6053) 2023-08-25 14:00:44 +08:00
MiaoYan JY
a19df2e24e fix: 修复肉鸽中干员 山 2 技能反复释放的问题 2023-08-21 23:40:40 +08:00
MistEO
2c8c9121df fix: all operators are marked as new for overseas clients (Toolbox-Recruitment) (#6009) 2023-08-20 21:48:51 +08:00
Annoying Flower
a61d8fd631 feat: 添加对 "skill_times" 字段的支持,再也不会狂点重岳辣 (#6007) 2023-08-20 21:38:40 +08:00
Fryze
e873a98ba6 fix: all operators are marked as new for overseas clients (Toolbox-Recruitment) 2023-08-20 20:34:46 +09:00
lassnuttun
743ab1bb61 chore: 修改了刷源石锭的不期而遇逻辑的变量名、文件名 2023-08-19 15:22:03 +08:00
lassnuttun
58d24beb59 feat: 优化刷源石锭模式的逻辑,保留原先不期而遇选择方案的同时增加了针对刷钱的不期而遇选择方案,根据肉鸽模式使用不同方案 2023-08-19 12:13:24 +08:00
Lancarus
6932303311 fix:肉鸽在招募逻辑内可以将同一干员纳入多个群组,修复由于拆分文件造成的bug (#5946)
Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
2023-08-15 17:44:11 +08:00
MistEO
5142a63201 chore: 删除目前用不上了的肉鸽代码 2023-08-12 15:06:48 +08:00
MistEO
cefb9c03f5 refactor: 拆分所有肉鸽资源文件 (#5856) 2023-08-06 20:07:41 +08:00
uye
49a8393e6e feat: debug版本/release版本加DEBUG.txt load时重新加载tasks.json 2023-07-31 18:47:54 +08:00
uye
0b1bb2f6c7 feat: 主目录存在 DEBUG.txt 时每次开始任务都重新解析tasks.json 2023-07-31 11:32:30 +08:00
DavidWang19
2b4e100f1d feat: 适配萨米肉鸽 2023-07-14 09:29:17 +01:00
BladeHiker
dab8b61506 fix: 去掉异步执行,添加可配置项 2023-07-07 22:31:17 +08:00
MistEO
0453f31709 fix: 将 OCR replace 改为有序 2023-06-29 10:11:26 +08:00
Horror Proton
ee8204c51a fix: workaround for destruction order issue
which creates empty files with random name on Linux

fix: https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/5255
2023-06-26 23:49:32 +08:00
MistEO
2d668b8066 fix: 修复切换日服后再切回后OCR配置不清空的问题
fix #4955
2023-05-28 15:44:22 +08:00
MistEO
91fc2297ae feat: update meojson to v3.0.0-beta.1 (#4789)
https://github.com/MistEO/meojson/releases/tag/v3.0.0-beta.1
2023-05-24 15:58:29 +08:00
MistEO
744d082db8 chore: 添加一些adbSwipeXDistanceMultiplier的注释 2023-05-21 09:48:18 +08:00
MistEO
3fa6fd6340 fix: 全局减小adb滑动距离
糊屎!
2023-05-21 01:19:15 +08:00
MistEO
cecea231d7 feat: 提前为更新json库做好准备() 2023-05-17 00:46:44 +08:00
MistEO
cedc07962f fix: 为Resource loader 添加重入锁 2023-05-16 00:54:35 +08:00
Shawn Sun
cdc6c080b7 fix(avatarcachemanager): avatar saved at wrong path in set_avatar()
m_save_path is empty & ::load() never called when cache folder does not exist.
2023-05-11 03:05:59 +08:00
MistEO
3e4c15f1ff fix: 修复单例错误引发的资源加载错误 2023-05-02 16:55:30 +08:00
MistEO
3d7172a3d2 perf: 修改异步加载资源的方式 2023-05-02 15:16:07 +08:00
MistEO
8bd75c87a0 fix: build error 2023-05-02 14:33:06 +08:00
MistEO
78069c3f82 chore: ResourceLoader 添加一些日志 2023-05-02 14:22:49 +08:00
MistEO
059cf8dbf6 fix: 修复中文目录的crash问题
fix #4585
fix #4574
2023-05-02 00:17:55 +08:00
MistEO
d594c5a590 fix: build error 2023-04-29 02:06:56 +08:00