Commit Graph

3717 Commits

Author SHA1 Message Date
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
Constrat
98587ae14d fix: increase mask range for SkipThePreBattlePlotConfirm (#9446) 2024-06-22 11:49:50 +08:00
Manicsteiner
d75c58849a chore: YoStarJP ocr fix 锏 (#9447) 2024-06-22 11:48:55 +08:00
Constrat
335a010a04 chore: Auto Update Game Resources - 2024-06-22
[skip changelog]
2024-06-22 03:43:17 +00:00
HX3N
58a6862820 chore: YoStarKR modified CharsNameOcrReplace 2024-06-22 12:19:43 +09:00
Constrat
5514f152a6 fix: optimized RSChapterToRS YostarEN
[skip changelog]
2024-06-22 00:16:57 +02:00
Constrat
ec2213c86f fix: priority to Flint 点火石 trap instead of operator 2024-06-22 00:12:24 +02:00
Constrat
0ad629b8ae chore: Auto Update Game Resources - 2024-06-21
[skip changelog]
2024-06-21 21:03:04 +00:00
HY
2fe9040e72 chore: 初步適配繁中服薩米肉鴿 (#9429)
* chore: 更新薩米肉鴿相關 task

* chore: 補充薩米肉鴿相關截圖
2024-06-20 16:40:09 +01:00
Manicsteiner
7a407e137c chore: YoStarJP RS navigation (#9427) 2024-06-20 16:39:27 +01:00
Manicsteiner
e0c73ab9d6 chore: YoStarJP roguelike ocr fix (#9426) 2024-06-20 16:39:14 +01:00
IzakyL
18a0410980 refactor: 继续#7904的重构 (#9409) 2024-06-20 17:55:56 +08:00
Constrat
6d3bf5ea13 feat: YostarEN RS navigation 2024-06-20 11:46:02 +02:00
HX3N
970de2d521 feat: YoStarKR RS stage navigation 2024-06-20 16:36:21 +09:00
Constrat
ac0b5f7d66 chore: Auto Update Game Resources - 2024-06-18
[skip changelog]
2024-06-18 20:03:16 +00:00
晓丶梦丶仁
5e936e896a perf: 优化萨米肉鸽棘刺技能携带 (#9400) 2024-06-16 18:59:30 +08:00
Manicsteiner
8ae64b6502 chore: Amiya new promotion in RoguelikeBattleTaskPlugin (#9377) 2024-06-15 18:11:57 +08:00
Constrat
0952b69d25 chore: Auto Update Game Resources - 2024-06-14
[skip changelog]
2024-06-14 09:42:24 +00:00
HX3N
1948458023 chore: YoStarKR fix ocr and add Collapsal
[skip changelog]
2024-06-14 18:37:31 +09:00
Weiyou Wang
d8fd12a5a0 feat: modify the combat strategy for collapse 2024-06-14 18:53:14 +10:00
梁星逢
d4768114bc fix: 弹药类技能不能二次关闭的问题 (#9379)
fix: 弹药类技能二次关闭问题
2024-06-14 03:21:15 +08:00
梁星逢
789dd31af2 fix: 自动战斗跳过对话模板更新 (#9380)
fix: 跳过对话模板更新
2024-06-14 03:20:37 +08:00
uye
374a2b46d7 feat: SideStory「生路」活动导航 2024-06-14 00:04:11 +08:00
Constrat
0828d7e252 chore: Auto Update Game Resources - 2024-06-13
[skip changelog]
2024-06-13 06:03:33 +00:00
Constrat
0d3495bd05 chore: Auto Update Game Resources - 2024-06-13
[skip changelog]
2024-06-13 02:20:34 +00:00
Lancarus
72546c2344 feat: 增加暂停放技能和暂停撤退 (#9348) 2024-06-12 18:22:52 +08:00
Constrat
fcb1903576 chore: Auto Update Game Resources - 2024-06-12
[skip changelog]
2024-06-12 09:02:37 +00:00