罪人编队沿用游戏编队预设, 不再清空后按 1~12 全选(R-09)

Browse Source
- 用户「选角色哪里不能根据角色进行选择吗,而是按顺序全选,或者用选好的配对」。
  上游每局第一场战斗前先「清除选择」再按 sinner_order 点人; 本机是默认 1~12, 11-18 16:21 日志:
  清除确认框 0.896(原来选好了人) + 12 次按座位点击, 覆盖了游戏里流血/震颤等编队预设的出战人员和顺序。
- install_preset_formation: 镜牢 team_formation 默认不清不点, 直接用预设(formation/kept);
  游戏弹「没有选罪人」(none_sinner)时这一局改回上游按顺序选(formation/preset_empty), 下一局重新用预设。
  LCP_SINNER_FORMATION=aalc 还原上游。
- tests: test_preset_formation 8 例(含上游源码契约); ISSUES 记 R-09。

单测: 803 passed。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yws
2026-11-22 09:15:13 +00:00
co-authored by Claude Opus 5.5
parent 4db3cd2605
commit 337f433930
4 changed files with 194 additions and 2 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ from .aalc_engine import bootstrap
from .aalc_patches import (TaskAbort, WindowGuard, driver_click_tasks, headless_hdr_warning, from .aalc_patches import (TaskAbort, WindowGuard, driver_click_tasks, headless_hdr_warning,
install_back_button_result, install_default_battle_team, install_event_choices, install_back_button_result, install_default_battle_team, install_event_choices,
install_exact_team_match, install_gift_confirm_guard, install_gift_preference, install_exact_team_match, install_gift_confirm_guard, install_gift_preference,
install_image_error_guard, install_key_hold, install_progress_watchdog, install_image_error_guard, install_key_hold, install_preset_formation, install_progress_watchdog,
install_rabbit_hole, install_robust_set_foreground, install_safe_blank_click, install_shop_audit, install_shop_by_name, install_rabbit_hole, install_robust_set_foreground, install_safe_blank_click, install_shop_audit, install_shop_by_name,
install_system_team_selection, install_team_screen_guard, install_system_team_selection, install_team_screen_guard,
install_theme_pack_audit, install_theme_pack_drag_retry, install_theme_pack_refresh_click, install_theme_pack_audit, install_theme_pack_drag_retry, install_theme_pack_refresh_click,
@@ -158,6 +158,7 @@ def _run(task, params):
if task in ('mirror', 'all'): if task in ('mirror', 'all'):
install_back_button_result(log=log) # 上游 V1.6.2 拿 click_element 返回的 True 当坐标, 首次引导页 TypeError install_back_button_result(log=log) # 上游 V1.6.2 拿 click_element 返回的 True 当坐标, 首次引导页 TypeError
install_system_team_selection(log=log, names=rabbit['team_names'] if rabbit else None) install_system_team_selection(log=log, names=rabbit['team_names'] if rabbit else None)
install_preset_formation(log=log) # 罪人编队沿用游戏编队预设, 不再清空后按 1~12 全选
install_safe_blank_click(log=log) # 「点空白」不再点桌面(回收站) install_safe_blank_click(log=log) # 「点空白」不再点桌面(回收站)
install_team_screen_guard(log=log) install_team_screen_guard(log=log)
install_gift_confirm_guard(log=log) # 「获得E.G.O饰品」点不关时换落点/结束任务(ISSUES I-06) install_gift_confirm_guard(log=log) # 「获得E.G.O饰品」点不关时换落点/结束任务(ISSUES I-06)