P1-4 镜牢事件按选项表选择
- 包住 Mirror.event_handling:上游每轮挑选项前(找 unknown_event 那一步), 画面有选项框时整屏 OCR,按行把文字归到各选项;认出表里的事件就点对应选项, 没收录/选项不在画面上照常交给上游,调用结束还原 click_element - 表 lc_mcp/data/event_choices.json 10 条,取自事件速查里的直出/免费奖励; 按选项文字优先,按编号只用于第一屏、画面没变时最多重试 3 次 - 每屏选项打一次日志(含未收录事件的选项文字,便于补表) - LCP_EVENT_CHOICES=0 关闭,=<路径> 换表;表读不了记 [ERROR] 不装 - 单测执行上游真实 event_handling Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -12,7 +12,7 @@ import sys
|
|||||||
from . import killswitch, preflight
|
from . import killswitch, preflight
|
||||||
from .aalc_engine import bootstrap
|
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_exact_team_match,
|
install_default_battle_team, install_event_choices, install_exact_team_match,
|
||||||
install_gift_preference, install_robust_set_foreground, install_shop_lists,
|
install_gift_preference, install_robust_set_foreground, install_shop_lists,
|
||||||
install_system_team_selection, install_typed_keyboard_road,
|
install_system_team_selection, install_typed_keyboard_road,
|
||||||
mirror_progress, stop_driver_click)
|
mirror_progress, stop_driver_click)
|
||||||
@@ -131,6 +131,7 @@ def _run(task, params):
|
|||||||
install_shop_lists(log=log)
|
install_shop_lists(log=log)
|
||||||
install_typed_keyboard_road(log=log)
|
install_typed_keyboard_road(log=log)
|
||||||
install_gift_preference(log=log)
|
install_gift_preference(log=log)
|
||||||
|
install_event_choices(log=log)
|
||||||
guard = WindowGuard(screen, cfg, log=log)
|
guard = WindowGuard(screen, cfg, log=log)
|
||||||
guard.start()
|
guard.start()
|
||||||
restore_path = os.environ.get(RESTORE_ENV)
|
restore_path = os.environ.get(RESTORE_ENV)
|
||||||
|
|||||||
Reference in New Issue
Block a user