Commit Graph

3894 Commits

Author SHA1 Message Date
Constrat
5b1f211c42 fix: tweak Reed Alter, Noir Corne alter regex 2024-07-13 23:21:47 +02:00
Constrat
54dd30cf79 chore: Auto Update Game Resources - 2024-07-13
[skip changelog]
2024-07-13 12:47:41 +00:00
zzyyyl
aa77805463 perf: 删除 tasks.json 冗余行 (#9645) 2024-07-13 20:36:43 +08:00
HY
b3e73c97a9 fix: 繁中服部分角色無法正確辨識 (#9647) 2024-07-13 10:19:46 +01:00
zzyyyl
b6d0a010da feat: 增加 BattlePauseCancel 重试上限 2024-07-13 12:05:11 +08:00
zzyyyl
2b1a6a1028 fix: roi out of bounds 2024-07-13 08:27:28 +08:00
Constrat
48799e1c85 chore: Auto Update Game Resources - 2024-07-11
[skip changelog]
2024-07-11 17:26:57 +00:00
Weiyou Wang
c2319beb22 fix: 修复坍缩范式插件导致的Gui和傀影/水月肉鸽初始化Bug (#9573)
* fix: call Clp_Pd plugin function directly from Encounter & FoldartalUse plugins

* refactor: 去除 tasks.json 中的冗余

* fix: 修正坍缩范式插件对banner文字位置的判断

* refactor: get_rare_clp_pds直接使用find结果返回

* refactor: delete code for debug

* refactor: 减少hard coding

* refactor: 减少hard coding

* refactor: use canonical debug mode

* refactor: add explanation for m_need_check_panel in comment

* fix: 日版翻译更正 thanks to @Manicsteiner

* refactor: refine the condition for using clp_pd_plugin in *.cpp files

* refactor: refine condition check for enabling clp_pd_task plugin

* refactor: change back to ASST_DEBUG
2024-07-12 01:12:02 +08:00
Manicsteiner
6c6d7efde6 chore: YostarJP add SSSBuffChoose (#9629) 2024-07-11 23:28:28 +08:00
Sherkey
4c97f0c97b refactor: 肉鸽资源加载逻辑及目录结构重构 (#9555)
Todos:
~~+ [ ] autocopilot 也重构一下~~
+ [x] encounter 采用类似 tasks.json 的覆盖模式,各个模式的事件配置覆盖到 `default.json` 上面
+ [x] 肉鸽插件加载主题化(待定)
+ [x] Wait for #9561
2024-07-11 20:11:45 +08:00
Weiyou Wang
d465b02ddf fix: delete mode tag which is no longer used 2024-07-11 18:26:44 +08:00
Constrat
b8e0ca9a6b chore: Auto Update Game Resources - 2024-07-11
[skip changelog]
2024-07-11 07:43:06 +00:00
Weiyou Wang
feb6cd6e68 refactor: reduce redundancy in encounter.json files 2024-07-11 14:04:17 +08:00
Weiyou Wang
841b464746 refactor: 重构肉鸽不期而遇策略的加载与使用 2024-07-11 14:03:44 +08:00
皆川すみれ
e8275e0ddc fix: 为InfrastEnteredFlag添加延迟以避免信用通知对右上角基建提醒的遮挡 (#9597)
* fix: add postdelay for InfrastEnteredFlag to avoid office notification conflication

为InfrastEnteredFlag添加延迟以避免信用通知对右上角基建提醒的遮挡

* fix: remove comma
2024-07-11 13:55:19 +08:00
Constrat
5d2e254643 chore: Auto Update Game Resources - 2024-07-09
[skip changelog]
2024-07-09 17:26:34 +00:00
HX3N
0c3147b1e2 chore: YostarKR ocr fix and remove SkipThePreBattlePlot
remove duplicate and follow CN  maskRange value
2024-07-10 01:37:43 +09:00
Weiyou Wang
f2e2790b40 fix: Roguelike Invest System offset (#9590) 2024-07-10 00:18:25 +08:00
Manicsteiner
2329cf2d4e chore: YostarJP cor fix and roguelike shop text (#9591) 2024-07-09 18:01:58 +02:00
HY
ca4902f97f fix: 修正繁中服薩米肉鴿獎勵無法多選一的問題 (#9584)
fix #9574, fix #9547, fix #9514, fix #9472
2024-07-09 20:10:56 +08:00
Constrat
46d5c1d778 chore: Auto Update Game Resources - 2024-07-09
[skip changelog]
2024-07-09 08:28:53 +00:00
Constrat
6f9b1faee1 chore: Auto Update Game Resources - 2024-07-09
[skip changelog]
2024-07-09 07:25:16 +00:00
Constrat
84f145a123 chore: Auto Update Game Resources - 2024-07-09
[skip changelog]
2024-07-09 04:02:50 +00:00
Constrat
36cf858842 chore: Auto Update Game Resources - 2024-07-09
[skip changelog]
2024-07-09 02:22:29 +00:00
Sherkey
45c698e9ed feat: 添加萨米肉鸽天途半道关卡战斗策略 (#9337) 2024-07-08 12:53:27 +08:00
SherkeyXD
b26ea061a1 refactor: 重构肉鸽不期而遇策略的目录格式 2024-07-08 03:30:24 +08:00
Constrat
7f188eb09e refactor: YoStar -> Yostar only for interfaces (#9548) 2024-07-07 21:28:16 +02:00
Constrat
24a73759ad chore: Auto Update Game Resources - 2024-07-07
[skip changelog]
2024-07-07 13:03:44 +00:00
Sherkey
666b0076d1 feat: 增加识别坍缩范式的插件,增加萨米肉鸽刷隐藏坍缩范式模式 (#9172)
### 更新功能

1. 增加`RoguelikeMode::CLP_PDS = 5`作为萨米肉鸽刷隐藏坍缩范式的模式,可且仅可用于萨米肉鸽。

在此模式下,将在每次回到关卡选择界面时检查坍缩状态,同时会优先使用带有`_collapse`后缀的战斗部署方案,也会使用特有的不期而遇和购物设置。

2. 肉鸽任务新增以下参数:
- `check_collapsal_paradigms`:是否检查坍缩范式,若`mode = 5`则默认为`true`,否则为`false`。
- `double_check_collapsal_paradigms`:是否增加对坍缩范式的检查频率,若`mode =
5`则默认为`true`,否则为`false`。
- `expected_collapsal_paradigms`:需要刷的坍缩范式,若`mode = 5`则默认为两组隐藏坍缩范式。
- `use_foldartal`:是否使用密文板,若`mode = 5`则默认为`false`,否则为`true`。

### 机制介绍

本插件将以两种不同的手段检查坍缩范式:

- 在选关界面点击屏幕中上方展开坍缩状态栏(以下称`Panel Check`);
- 观察屏幕右侧是否有坍缩范式通知(以下称`Banner Check`)。

获取坍缩值的方法多种多样,本插件考虑到了以下情况:

1. 战斗后因非完美战斗而使坍缩值增加,进行`Banner Check`。
2. 战斗后因获得收藏品而使坍缩值变动,进行`Banner Check`。
3. 在不期而遇等(MAA中失与得等节点也会触发不期而遇插件)节点中使坍缩值变动,进行`Banner Check`。
4. 再诡异行商节点中因购买收藏品而使坍缩值变动,进行`Banner Check`。
5. 因使用密文版而使坍缩值减少,进行`Banner Check`。
6. 因进入新的一层而使坍缩值增加,进行`Panel Check`。
7. 若进行`Banner
Check`时发现坍缩范式消退,因不知道会不会一次性消退两层(即便会也概率极低),会在下一次回到选关洁面的时候额外触发一次`Panel
Check`。
8. 在`double_check_collapsal_paradigms =
true`的情况下,每次回到选关界面的时候都会额外触发一次`Panel
Check`以验证是否之前有漏、多记录坍缩范式,并以回调信息的形式传回Debug信息。

**注意事项**

1.
为了防止错过坍缩范式通知,会适当sleep,若检测到屏幕下方有`正在提交反馈至神经`的提示的话会额外sleep。所以开启检查坍缩范式的功能后整体流程会变得拖沓一些(目前在我本人可接受范围内)。
2.
在`RoguelikeMode::CLP_PDS`模式下,获得不需要的坍缩范式会直接重开,遇到需要的坍缩范式则会停止任务。理论上可能在不期而遇事件中获得了不需要的坍缩范式,但因为右上角没有退出按钮而没有及时重开。但我目前没有观察到这样的情形,故没有做处理。不放心的话请设置`double_check_collapsal_paradigms
= true`,等回到选关界面后再检查一遍已获得的坍缩范式。
3.
无论如何,强烈推荐开启`double_check_collapsal_paradigms`。慢点就慢点,求稳才是关键。在我本人测试的过程中,遇到过一两次遗漏`Banner
Check`的情况(截图错过了右上角通知),幸好在额外触发的`Panel
Check`中补上了。怀疑是系统卡顿或网络延迟所致(我在澳大利亚用着MBP2017开着MUMU+MAA刷官服,时间长了后模拟器本身就偶尔会卡住)。

### 回调信息

当`check_collapsal_paradigms == true`时会输出类似于下方的回调信息:
```C++
callback(AsstMsg::SubTaskExtraInfo, json::object { 
    { "what", "RoguelikeCollapsalParadigms" },
    { "details", json::object {
        { "cur", "目空一些" },
        { "deepen_or_weaken", 1 },
        { "prev", "睁眼瞎" }
    } }
});
```
其中`deepen_or_weaken = 1`代表坍缩范式从`prev`加深至`cur`,若`deepen_or_weaken =
-1`则代表坍缩范式消退。
偶尔也会有测试信息以`deepen_or_weaken = 0`被传回,主要用于我自己测试用。

### 任务设置范例

以下是我的测试用任务设置:
```Python
asst.append_task('Roguelike', {
    'theme': 'Sami',
    'mode': 5,
    'investment_enabled': False,
    'squad': '远程战术分队',
    'roles': '稳扎稳打',
    'core_char': '维什戴尔',
    # 'expected_collapsal_paradigms': ['趋同性消耗'],
    # 'check_collapsal_paradigms': True, # 在mode = 5时默认为True
    double_check_collapsal_paradigms': True, # 建议打开,以防万一错过了什么
    # 'use_foldartal': False # 在mode = 5时默认为False
})
```
建议在难度10刷隐藏坍缩,我只做了第一层的漏怪作业且以`维什戴尔`为战斗核心。

### To-Do(s)

- [ ] 补充相关文档 (要不就把上述文字作为文档吧?)

### Need Help

- [ ] 外服适配
- [ ] UI适配

---

小孩子不懂事乱写的代码,请各位多指教。
2024-07-07 20:56:14 +08:00
Constrat
f0c31c4433 feat: YoStarEN resolution warning on client switch (#9539)
Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
2024-07-07 12:27:39 +02:00
Constrat
e7b5693adc chore: Auto Update Game Resources - 2024-07-05
[skip changelog]
2024-07-05 11:02:28 +00:00
Constrat
6896449d3f chore: Auto Update Game Resources - 2024-07-05
[skip changelog]
2024-07-05 01:34:47 +00:00
Constrat
8e002ea439 chore: Auto Update Game Resources - 2024-07-04
[skip changelog]
2024-07-04 20:03:32 +00:00
Constrat
c1b6da5af9 chore: Auto Update Game Resources - 2024-07-02
[skip changelog]
2024-07-02 11:03:27 +00:00
Constrat
9be36ef57d chore: Auto Update Game Resources - 2024-07-02
[skip changelog]
2024-07-02 07:02:54 +00:00
Constrat
8c613b4d80 chore: Auto Update Game Resources - 2024-07-01
[skip changelog]
2024-07-01 19:03:21 +00:00
Constrat
3c54258ba3 chore: Auto Update Game Resources - 2024-07-01
[skip changelog]
2024-07-01 15:03:28 +00:00
Constrat
6f5b1f77cd chore: Auto Update Game Resources - 2024-06-27
[skip changelog]
2024-06-27 15:26:58 +00:00
HY
b399e8d6ac chore: 繁中服「火山旅夢」活動導航 (#9497) 2024-06-27 17:17:22 +02:00
bodayw
1f9467b31a feat: 更新 243 极限效率一天四换排班表(20240608 修订) (#9496) 2024-06-27 16:09:15 +02:00
Constrat
0cfae0fbff chore: Auto Update Game Resources - 2024-06-27
[skip changelog]
2024-06-27 07:43:13 +00:00
Constrat
82d553f338 chore: Auto Update Game Resources - 2024-06-27
[skip changelog]
2024-06-27 07:24:20 +00:00
Weiyou Wang
65cd34e5d8 feat: global adaptation 2024-06-27 15:24:48 +10:00
Weiyou Wang
0a7e6d4e00 feat: modify the combat strategy for collapse 2024-06-26 15:13:36 +10:00
HY
5b63e6582a fix: 修正繁中服薩米肉鴿無法開始探索、密文板無法宣告的問題 (#9484) 2024-06-25 20:53:28 +01:00
Constrat
51bc80786b chore: Auto Update Game Resources - 2024-06-25
[skip changelog]
2024-06-25 09:03:26 +00:00
Constrat
05f8bbfd7e chore: Auto Update Game Resources - 2024-06-25
[skip changelog]
2024-06-25 08:28:38 +00:00
zzyyyl
48820d1a0c feat: 更新模板图片优化工具并优化模板图片 (#9459)
* feat: 更新优化模板图片的工具

* perf: 优化模板图片

共缩小 1.31 MiB
2024-06-23 22:48:02 +08:00
uye
4d098616e2 fix: 五周年活动结束后单选领取月卡功能时报错
fix #9452
2024-06-22 18:12:04 +08:00
HY
78f3625e08 chore: 補充繁中服薩米肉鴿相關內容 (#9450) 2024-06-22 10:05:45 +02:00