P2-6 镜牢商店必买先按中文名购买, 取消 P2-7
- 商店每一格下面写着饰品中文名(实机截图可见)。install_shop_by_name 在 buy_gifts 期间往 must_purchase 最前面临时插 3 个占位项, 上游逐个 click_element 点到占位项时: 以 shop_coins_assets 为锚点在商品格范围内 OCR, 名字完全一致 (允许 + 后缀)就点上方的图标, 之后购买/确认仍走上游循环; 图标模板在后面兜底。 - 名字表 lc_mcp/data/shop_gifts.json: AALC 5 张必买模板对应的饰品, 中文名按零协 汉化; 同一名字一次进店最多点 4 次; 没命中的截图不重复 OCR。 - 审计记 shop/name_match; 装在商店审计之后, 购买仍记 purchase_clicked。 - LCP_SHOP_NAMES=0 关闭; 表读不了或上游不再逐个点 must_purchase 时记 [ERROR]。 - 单测执行上游真实的 Shop.buy_gifts, 坐标按截图实测。 - P2-7 观测饰品自动勾选按用户意见不做。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -14,7 +14,7 @@ from .aalc_engine import bootstrap
|
|||||||
from .aalc_patches import (WindowGuard, driver_click_tasks, headless_hdr_warning,
|
from .aalc_patches import (WindowGuard, driver_click_tasks, headless_hdr_warning,
|
||||||
install_default_battle_team, install_event_choices, install_exact_team_match,
|
install_default_battle_team, install_event_choices, install_exact_team_match,
|
||||||
install_gift_preference, install_robust_set_foreground, install_shop_audit,
|
install_gift_preference, install_robust_set_foreground, install_shop_audit,
|
||||||
install_system_team_selection, install_theme_pack_audit,
|
install_shop_by_name, install_system_team_selection, install_theme_pack_audit,
|
||||||
install_typed_keyboard_road, mirror_progress, stop_driver_click)
|
install_typed_keyboard_road, mirror_progress, stop_driver_click)
|
||||||
from .decisions import decisions
|
from .decisions import decisions
|
||||||
from .game_lock import GameBusyError, exclusive_game
|
from .game_lock import GameBusyError, exclusive_game
|
||||||
@@ -134,6 +134,7 @@ def _run(task, params):
|
|||||||
install_gift_preference(log=log)
|
install_gift_preference(log=log)
|
||||||
install_event_choices(log=log)
|
install_event_choices(log=log)
|
||||||
install_shop_audit(log=log)
|
install_shop_audit(log=log)
|
||||||
|
install_shop_by_name(log=log) # 装在审计之后(包在外层), 审计才看得到按名字点的那一下
|
||||||
install_theme_pack_audit(log=log)
|
install_theme_pack_audit(log=log)
|
||||||
guard = WindowGuard(screen, cfg, log=log)
|
guard = WindowGuard(screen, cfg, log=log)
|
||||||
guard.start()
|
guard.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user