镜牢兔子洞速刷: 每场第一回合超频「空洞」、攻略路线卡包加分
run_task(task="mirror", strategy="rabbit_hole") 时生效, 不带 strategy 时不装: - 选队按 rabbit_hole.json 的编队名(默认「兔子洞」); - 每回合 P → 长按浮士德打开 E.G.O 列表 → OCR 找「空洞」, 第一回合长按卡片超频 (侵蚀「空洞」直接打人; 普通「空洞」只叠弹孔), 其余回合单击 → Enter; 审计 battle/hollow 记 overclock/ego/ego_unavailable/no_option; - 路线卡包加分: 赌徒 → 地狱鸡 → 去·海·边 → 憎恶与绝望 → 2号线(OurPlay 全程困难路线), 按 AALC 默认权重模拟每层都选到路线卡包。 长按点 press_at 出厂未校准: 只记 [ERROR], 照常 P+Enter。 机制和超频操作按零协游戏文本/教程核实; 编队、路线按 codex 检索的 OurPlay/Reddit 攻略。 实机校准步骤见 docs/feedback/2026-11-15/RABBIT-HOLE.md, 台账 R-08。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+15
-3
@@ -6,7 +6,7 @@ import threading
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from . import VERSION
|
from . import VERSION
|
||||||
from .aalc_task import TASKS
|
from .aalc_task import TASK_OPTIONS, TASKS
|
||||||
from .engine import find_hits
|
from .engine import find_hits
|
||||||
|
|
||||||
MAX_WAIT = 300.0
|
MAX_WAIT = 300.0
|
||||||
@@ -83,9 +83,14 @@ TOOLS = [
|
|||||||
'传 count 时本次临时关闭 AALC 无限刷牢,结束后恢复;完成局数不足时任务报 failed。'
|
'传 count 时本次临时关闭 AALC 无限刷牢,结束后恢复;完成局数不足时任务报 failed。'
|
||||||
'只刷一种日常时把另一种次数显式设为0,省略次数沿用配置。'
|
'只刷一种日常时把另一种次数显式设为0,省略次数沿用配置。'
|
||||||
'all 需明确要求全部任务;enkephalin 需明确授权花狂气,免费合成模块不能用它。'
|
'all 需明确要求全部任务;enkephalin 需明确授权花狂气,免费合成模块不能用它。'
|
||||||
'任务运行期间禁止手动点击类工具;最终 succeeded 也要检查 errors,用户停止后不自动重跑。'),
|
'任务运行期间禁止手动点击类工具;最终 succeeded 也要检查 errors,用户停止后不自动重跑。'
|
||||||
|
'mirror 可加 strategy="rabbit_hole":兔子洞速刷(黑兽-卯 浮士德每回合放 E.G.O「空洞」,每场第一回合超频),'
|
||||||
|
'编队、长按点、路线卡包见 lc_mcp/data/rabbit_hole.json。'),
|
||||||
'inputSchema': _obj({'task': {'type': 'string', 'enum': sorted(TASKS)},
|
'inputSchema': _obj({'task': {'type': 'string', 'enum': sorted(TASKS)},
|
||||||
'exp': _NUM, 'thread': _NUM, 'times': _NUM, 'count': _NUM}, ['task'])},
|
'exp': _NUM, 'thread': _NUM, 'times': _NUM, 'count': _NUM,
|
||||||
|
'strategy': {'type': 'string', 'enum': sorted({v for o in TASK_OPTIONS.values()
|
||||||
|
for v in o['strategy']})}},
|
||||||
|
['task'])},
|
||||||
{'name': 'task_status', 'description': '启动 run_task 前检查占用,启动后轮询此工具监控,避免逐帧截图和重复启动。'
|
{'name': 'task_status', 'description': '启动 run_task 前检查占用,启动后轮询此工具监控,避免逐帧截图和重复启动。'
|
||||||
'返回 idle/running/succeeded/failed/stopped、日志及异常;'
|
'返回 idle/running/succeeded/failed/stopped、日志及异常;'
|
||||||
'decisions.counts 按阶段统计选队/寻路/卡包/饰品/事件/商店的决策理由。'
|
'decisions.counts 按阶段统计选队/寻路/卡包/饰品/事件/商店的决策理由。'
|
||||||
@@ -158,6 +163,13 @@ class Server:
|
|||||||
if task not in TASKS:
|
if task not in TASKS:
|
||||||
raise ValueError('unknown task %r' % task)
|
raise ValueError('unknown task %r' % task)
|
||||||
params = {k: int(a[k]) for k in TASKS[task] if a.get(k) is not None}
|
params = {k: int(a[k]) for k in TASKS[task] if a.get(k) is not None}
|
||||||
|
options = TASK_OPTIONS.get(task, {})
|
||||||
|
for key in ('strategy',):
|
||||||
|
if a.get(key) is None:
|
||||||
|
continue
|
||||||
|
if a[key] not in options.get(key, ()):
|
||||||
|
raise ValueError('%s 不支持 %s=%r' % (task, key, a[key]))
|
||||||
|
params[key] = a[key]
|
||||||
# Starting must not race a click that has already checked running().
|
# Starting must not race a click that has already checked running().
|
||||||
# Reject promptly when busy instead of waiting behind a long OCR poll.
|
# Reject promptly when busy instead of waiting behind a long OCR poll.
|
||||||
if not self.lock.acquire(blocking=False):
|
if not self.lock.acquire(blocking=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user