按台账修镜牢: 饰品弹窗兜底、按键扫描码、卡包按体系加分

Browse Source
按 docs/ISSUES.md 处理本机回归后待修/待数据的条目:

- I-06/R-04 开局「获得E.G.O饰品」弹窗死循环: 确认模板连续第 3 次命中起改点
  按钮中心(勾号 +76/1440), 连续 20 次还在就记 [ERROR]、抛 TaskAbort 结束任务
  (上游 continue 跳过了循环计数)。单测执行上游真实 select_init_ego_gift。
- I-05/R-03 键盘寻路 0 成功: 前台按键改发带扫描码和扩展键标志的 keybd_event,
  各模式按住 0.12 秒(上游注释: Unity 6 校验扫描码/扩展键); 连续 3 个节点进不去
  就本次任务停用键盘寻路(方案 B)。MCP key 工具前台同样处理。LCP_KEY_HOLD=0 关。
- I-07/R-02 事件表 6 -> 9 条: 蜘蛛巢、归乡路途两段(拿「归途」), 按 wiki.gg 核对结果;
  全表按本机装的零协 release 2026111301 重新核对唯一性。
- I-13 复查 5992827: 「进入」先模板确认再 OCR(原来每轮都跑一次整屏 OCR);
  选队页重试重新截图; 入场切队失败记 [ERROR] 且本局不再重翻列表。
- R-01/I-08 卡包按体系加分: wiki.gg 122 个卡包(楼层/专属饰品/Featured 分类) +
  零协中文名生成 lc_mcp/data/theme_pack_systems.json(scripts/build_theme_pack_systems.py);
  灰机 wiki 对云端 403、BWIKI 无卡包条目, 中文社区攻略用 codex CLI 联网检索,
  推荐/避开并入表的 community。选卡包时临时加到 AALC 权重上, 按当前难度只看会出现
  的卡包; 审计记 system_bonus。LCP_THEME_PACK_SYSTEMS=0 关。
- 文档: ISSUES/BACKLOG/README 更新, 新增 docs/feedback/2026-11-15/REGRESSION.md
  (本轮回归清单)和 theme-pack-research.md(检索记录)。

单测 703 个全过(Linux)。实机未验。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yws
2026-11-15 01:24:46 +00:00
co-authored by Claude Opus 5.5
parent 599282729c
commit 96a31bc1ae
19 changed files with 2121 additions and 56 deletions
+7 -6
View File
@@ -300,12 +300,13 @@ class AalcEngine(Engine):
finally: finally:
handler.key_up(k) handler.key_up(k)
elif not self.cfg.simulator and self.cfg.win_input_type == 'foreground': elif not self.cfg.simulator and self.cfg.win_input_type == 'foreground':
import pyautogui # pyautogui 发的按键扫描码是 0、方向键不带扩展键标志, Unity 6 会忽略(ISSUES I-05);
pyautogui.keyDown(k) # 与任务子进程的按键补丁用同一个 press_vk, 同样按住 0.12 秒。
try: import ctypes
time.sleep(0.12) from module.automation.input_handlers.input import EXTENDED_KEY_VKS, key_list
finally: from .aalc_patches import press_vk
pyautogui.keyUp(k) vk = key_list[k]
press_vk(ctypes.windll.user32, vk, vk in EXTENDED_KEY_VKS, hold=0.12)
else: else:
self.auto.key_press(k) self.auto.key_press(k)
+438 -7
View File
@@ -575,6 +575,7 @@ def install_team_screen_guard(log=print):
return False return False
return result return result
find_element.__wrapped__ = original
auto.find_element = find_element auto.find_element = find_element
log('[lc_mcp] patch: 选队页守卫(星之恩惠页忽略星级模板)') log('[lc_mcp] patch: 选队页守卫(星之恩惠页忽略星级模板)')
return original return original
@@ -662,10 +663,14 @@ def _select_team_by_name(auto, names, log=print, rounds=6):
""" """
if auto.take_screenshot() is None: if auto.take_screenshot() is None:
return False return False
for _ in range(3): for attempt in range(3):
# 选队页刚加载时图标和列表可能还没出来: 等一下、重新截图再认, 别对着同一张图认三次
if attempt:
time.sleep(0.8)
if auto.take_screenshot() is None:
continue
if auto.find_element(TEAM_SCREEN_ICON) or _looks_like_team_screen(auto): if auto.find_element(TEAM_SCREEN_ICON) or _looks_like_team_screen(auto):
break break
time.sleep(0.8)
else: else:
log('[lc_mcp] 不在编队界面, 跳过按名字选队') log('[lc_mcp] 不在编队界面, 跳过按名字选队')
return False return False
@@ -726,7 +731,7 @@ def install_system_team_selection(log=print):
if original is None: if original is None:
log('[lc_mcp] 体系选队补丁跳过: mirror 模块没有 select_battle_team') log('[lc_mcp] 体系选队补丁跳过: mirror 模块没有 select_battle_team')
return None return None
wanted = {'names': ()} wanted = {'names': (), 'enter_failed': False}
original_init = mirror_mod.Mirror.__init__ original_init = mirror_mod.Mirror.__init__
def __init__(self, team_setting, team_num): def __init__(self, team_setting, team_num):
@@ -734,6 +739,7 @@ def install_system_team_selection(log=print):
system = getattr(self, 'system', '') system = getattr(self, 'system', '')
wanted['names'] = (SYSTEM_TEAM_NAMES.get(system, ()) wanted['names'] = (SYSTEM_TEAM_NAMES.get(system, ())
+ TEAM_PREFERENCES.get(system, ())) + TEAM_PREFERENCES.get(system, ()))
wanted['enter_failed'] = False
log('[lc_mcp] 镜牢体系 %s -> 目标编队 %s' log('[lc_mcp] 镜牢体系 %s -> 目标编队 %s'
% (system or '?', '/'.join(wanted['names']) or '(无配置)')) % (system or '?', '/'.join(wanted['names']) or '(无配置)'))
@@ -753,16 +759,27 @@ def install_system_team_selection(log=print):
original_click = getattr(auto, 'click_element', None) original_click = getattr(auto, 'click_element', None)
if original_click is not None: if original_click is not None:
def click_element(target, *args, **kwargs): def click_element(target, *args, **kwargs):
if isinstance(target, str) and target == ENTER_ASSET:
names = wanted['names'] names = wanted['names']
if (target != ENTER_ASSET or not names or wanted['enter_failed']
or kwargs.get('click') is False):
return original_click(target, *args, **kwargs)
# 镜牢主循环和 road_to_mir 每轮都会问一次「进入」; 先用模板确认按钮真在画面上,
# 再做整屏 OCR, 不然每轮白跑一次 OCR。没找到时上游也是返回 False。
if not original_click(target, *args, **dict(kwargs, click=False)):
return False
try: try:
if names and _looks_like_team_screen(auto) and not _header_is(auto, names): if _looks_like_team_screen(auto) and not _header_is(auto, names):
log('[lc_mcp] 入场前切队伍: %s' % '/'.join(names)) log('[lc_mcp] 入场前切队伍: %s' % '/'.join(names))
_select_team_by_name(auto, names, log=log) if not _select_team_by_name(auto, names, log=log):
# 显式报错, 但不拦着进入: 拦住的话上游会一直点「进入」、一直重翻列表。
# 本局不再重试, 免得每一轮都把列表从头翻一遍。
wanted['enter_failed'] = True
log('[ERROR] [lc_mcp] 入场前没切到 %s, 本局按游戏当前编队进入' % '/'.join(names))
except Exception as e: except Exception as e:
log('[lc_mcp] 入场前切队伍出错: %s: %s' % (type(e).__name__, e)) log('[lc_mcp] 入场前切队伍出错: %s: %s' % (type(e).__name__, e))
return original_click(target, *args, **kwargs) return original_click(target, *args, **kwargs)
click_element.__wrapped__ = original_click
auto.click_element = click_element auto.click_element = click_element
log('[lc_mcp] patch: 入场前按体系切队伍') log('[lc_mcp] patch: 入场前按体系切队伍')
@@ -789,6 +806,9 @@ UPSTREAM_NODE_WEIGHT = {
'risky_encounter': 7, 'shop': 2, 'abnormality_focused_encounter': 6, 'risky_encounter': 7, 'shop': 2, 'abnormality_focused_encounter': 6,
} }
TYPED_ROAD_ENV = 'LCP_TYPED_ROAD' # 设为 0 时不装这个补丁, 完全回到原简单键盘寻路 TYPED_ROAD_ENV = 'LCP_TYPED_ROAD' # 设为 0 时不装这个补丁, 完全回到原简单键盘寻路
# 连续这么多个节点按键都没进去, 本次任务就不再按键寻路(直接交给 AALC 的常规寻路)。
# 2026-11-14 实机 24/24 失败, 每个节点白按 5 次键 ≈ 5 秒; 进去一次就清零重新计。
ROAD_KEY_GIVE_UP = 3
def rank_next_nodes(bus, nodes, scale, weights=UPSTREAM_NODE_WEIGHT, def rank_next_nodes(bus, nodes, scale, weights=UPSTREAM_NODE_WEIGHT,
@@ -839,9 +859,26 @@ def install_typed_keyboard_road(log=print, env=None):
column_gap = getattr(road, 'ROAD_COLUMN_GAP', UPSTREAM_ROAD_COLUMN_GAP) column_gap = getattr(road, 'ROAD_COLUMN_GAP', UPSTREAM_ROAD_COLUMN_GAP)
row_gap = getattr(road, 'ROAD_ROW_GAP', UPSTREAM_ROAD_ROW_GAP) row_gap = getattr(road, 'ROAD_ROW_GAP', UPSTREAM_ROAD_ROW_GAP)
state = {'fails': 0, 'off': False}
def search_road_simple_keyboard(): def search_road_simple_keyboard():
if not cfg.mirror_keyboard_navigation: if not cfg.mirror_keyboard_navigation:
return original() # 上游会说明需要开启键盘寻路 return original() # 上游会说明需要开启键盘寻路
if state['off']:
return False # 上游接着走常规寻路
entered = _typed_keyboard_road()
if entered:
state['fails'] = 0
return entered
state['fails'] += 1
if state['fails'] >= ROAD_KEY_GIVE_UP:
state['off'] = True
log('[lc_mcp] 键盘寻路: 连续 %d 个节点按键都没进去, 本次任务不再按键寻路, 交给 AALC 常规寻路'
% state['fails'])
decisions.record('road', None, 'keyboard_off', fails=state['fails'])
return entered
def _typed_keyboard_road():
try: try:
auto.mouse_to_blank() auto.mouse_to_blank()
time.sleep(0.3) time.sleep(0.3)
@@ -1535,9 +1572,403 @@ def install_theme_pack_audit(log=print):
decision = theme_pack_decision(capture.messages) decision = theme_pack_decision(capture.messages)
if decision: if decision:
pack, reason, weights = decision pack, reason, weights = decision
extra = {}
if pack in THEME_PACK_BOOSTED: # 选中的是按体系加过分的卡包
extra['system_bonus'] = THEME_PACK_BOOSTED[pack]
decisions.record('theme_pack', pack, reason, weights=weights, decisions.record('theme_pack', pack, reason, weights=weights,
floor=kwargs.get('floor', args[1] if len(args) > 1 else None)) floor=kwargs.get('floor', args[1] if len(args) > 1 else None), **extra)
select_theme_pack.__wrapped__ = original
mirror_mod.select_theme_pack = select_theme_pack mirror_mod.select_theme_pack = select_theme_pack
log('[lc_mcp] patch: 卡包选择写入决策审计') log('[lc_mcp] patch: 卡包选择写入决策审计')
return original return original
# ---------------------------------------------------------------- 卡包按体系加分
# BACKLOG R-01 / ISSUES I-08: theme_pack_list.yaml 几乎全是 0, 所有卡包并列最高分, 每层都拿最左边那个。
# 这里在 AALC 选卡包时把它的权重表临时加上「卡包对当局体系的加分」(lc_mcp/data/theme_pack_systems.json),
# 不改配置文件。AALC 拿卡包卡面 OCR 文字按权重表的键做子串匹配、取第一个命中的键, 所以加过分的键排在最前面。
THEME_PACK_SYSTEMS_ENV = 'LCP_THEME_PACK_SYSTEMS' # 0 = 关闭; 文件路径 = 用这张表代替默认表
THEME_PACK_SYSTEMS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data', 'theme_pack_systems.json')
THEME_PACK_UNKNOWN_KEYS = ('未知', 'unknown') # AALC 认不出卡包时的兜底权重键, 不当卡包名用
THEME_PACK_BOOSTED = {} # 本次选卡包加过分的键 → {pack, system, from, to}; 卡包审计记到 decisions 里
def load_theme_pack_systems(path=THEME_PACK_SYSTEMS_FILE):
"""读卡包体系表, 返回 (bonus, packs); 格式不对抛 ValueError。
community 里的推荐/避开按卡包中文名挂到对应卡包上(recommend / avoid 两个体系集合, avoid 里 '*' 表示所有体系)。
"""
with open(path, encoding='utf-8') as fh:
data = json.load(fh)
bonus = data.get('bonus') if isinstance(data, dict) else None
if not isinstance(bonus, dict) or not isinstance(bonus.get('featured'), int) \
or not isinstance(bonus.get('unique'), list) or not bonus['unique'] \
or not all(isinstance(v, int) for v in bonus['unique']) \
or not all(isinstance(bonus.get(k, 0), int) for k in ('recommend', 'avoid')):
raise ValueError('bonus 要有整数 featured、非空整数列表 unique, recommend/avoid 也要是整数')
packs = data.get('packs')
if not isinstance(packs, list) or not packs:
raise ValueError('packs 必须是非空列表')
systems = set(SYSTEM_TEAM_NAMES)
loaded = {}
for pack in packs:
if not isinstance(pack, dict) or not str(pack.get('zh') or '').strip() or not str(pack.get('en') or '').strip():
raise ValueError('卡包要有 zh 和 en 名字: %r' % (pack,))
if not set(pack.get('featured') or ()) <= systems or not set(pack.get('unique') or {}) <= systems:
raise ValueError('卡包 %s 的体系名不认识' % pack['zh'])
if not all(isinstance(n, int) and n > 0 for n in (pack.get('unique') or {}).values()):
raise ValueError('卡包 %s 的专属饰品件数必须是正整数' % pack['zh'])
loaded[pack['zh']] = dict(pack, recommend=set(), avoid=set())
community = data.get('community') or {}
for field, allowed in (('recommend', systems), ('avoid', systems | {'*'})):
for entry in community.get(field) or ():
name = entry.get('pack') if isinstance(entry, dict) else None
wanted = set(entry.get('systems') or ()) if isinstance(entry, dict) else set()
if name not in loaded:
raise ValueError('community.%s 里的卡包 %r 不在 packs 里' % (field, name))
if not wanted or not wanted <= allowed:
raise ValueError('community.%s 里 %s 的体系不对: %r' % (field, name, sorted(wanted)))
loaded[name][field] |= wanted
result = {'featured': bonus['featured'], 'unique': tuple(bonus['unique']),
'recommend': bonus.get('recommend', 0), 'avoid': bonus.get('avoid', 0)}
return result, list(loaded.values())
def theme_pack_bonus(pack, system, bonus):
"""卡包对体系的加分(可以是负的)。
体系包给 featured 档, 有这个体系的专属饰品按件数给 unique 档, 社区推荐给 recommend 档, 取最大;
社区说这个体系走它不划算(avoid 里有这个体系)就不加; 速刷要避开的(avoid 里有 '*')再减 avoid。
"""
score = bonus['featured'] if system in (pack.get('featured') or ()) else 0
count = (pack.get('unique') or {}).get(system, 0)
if count:
score = max(score, bonus['unique'][min(count, len(bonus['unique']) - 1)])
if system in (pack.get('recommend') or ()):
score = max(score, bonus.get('recommend', 0))
avoid = pack.get('avoid') or ()
if system in avoid:
score = min(score, 0)
if '*' in avoid:
score -= bonus.get('avoid', 0)
return score
def _pack_text(text):
"""AALC find_str_in_text 的比较方式: 去空格、不分大小写。"""
return str(text).replace(' ', '').lower()
def boost_theme_pack_weights(weights, packs, system, bonus, language='zh_cn', hard_mode=None):
"""把体系加分加进 AALC 的卡包权重表。返回 (新表, {键: {packs, system, from, to}})。
hard_mode 给了(True/False)时, 只看这个难度会出现的卡包(表里 hard/normal 楼层不为空的): 活动专用包、
只在困难出现的复刻不会出现在普通模式, 不该拿来和同名短键的普通卡包「冲突」。
一个键会命中所有名字里含有它的卡包(AALC 的「谋杀」同时是 WARP快车谋杀案 原版和复刻), 所以键的加分
取这些卡包里离 0 最近的那个(都加分取最少的, 都减分取减得最少的); 有一个不变、或者有加有减, 就不动这个键,
免得连带改了别的卡包。某个卡包的分没被已有的键表达出来(复刻比原版多、或者 AALC 表里没有它)时,
再用卡包全名做键。原权重: 键在表里就用表里的; 全名键用这个卡包被 AALC 认成的那个键的分, 认不出来按
「未知」。改过分的键按长度从长到短排在最前面: AALC 按表的顺序取第一个命中的键, 全名(更具体)要先于短片段。
"""
field = 'en' if language == 'en' else 'zh'
unknown = next((weights[k] for k in THEME_PACK_UNKNOWN_KEYS if k in weights), -5)
if hard_mode is not None:
packs = [pack for pack in packs if pack.get('hard' if hard_mode else 'normal')]
scored = [(pack, theme_pack_bonus(pack, system, bonus), _pack_text(pack[field])) for pack in packs]
aalc_keys = [k for k in weights if k not in THEME_PACK_UNKNOWN_KEYS and _pack_text(k)]
def holders(key):
return [(pack, extra) for pack, extra, name in scored if _pack_text(key) in name]
def key_bonus(key):
extras = [extra for _, extra in holders(key)]
if extras and all(e > 0 for e in extras):
return min(extras)
if extras and all(e < 0 for e in extras):
return max(extras)
return 0
changed, info = {}, {}
def add(key, start, extra):
changed[key] = start + extra
info[key] = {'packs': [pack['zh'] for pack, _ in holders(key)], 'system': system,
'from': start, 'to': start + extra}
for key in aalc_keys:
extra = key_bonus(key)
if extra:
add(key, weights[key], extra)
for pack, extra, name in scored:
if not extra:
continue
own = [k for k in aalc_keys if _pack_text(k) in name]
if any(key_bonus(k) == extra for k in own):
continue # 已有的键已经表达了这个卡包的分
full = pack[field]
full_extra = key_bonus(full)
if full_extra and full not in changed:
add(full, weights.get(full, weights[own[0]] if own else unknown), full_extra)
ordered = sorted(changed, key=lambda k: -len(_pack_text(k)))
result = {k: changed[k] for k in ordered}
result.update((k, v) for k, v in weights.items() if k not in changed)
return result, {k: info[k] for k in ordered}
def install_theme_pack_systems(log=print, env=None):
"""镜牢选卡包时按当局体系给卡包加分。返回原 select_theme_pack, 未安装返回 None。"""
env = os.environ if env is None else env
setting = env.get(THEME_PACK_SYSTEMS_ENV, '').strip()
if setting == '0':
log('[lc_mcp] 卡包按体系加分已关闭(%s=0)' % THEME_PACK_SYSTEMS_ENV)
return None
path = setting or THEME_PACK_SYSTEMS_FILE
try:
bonus, packs = load_theme_pack_systems(path)
except (OSError, ValueError) as e:
log('[ERROR] [lc_mcp] 卡包体系表读不了(%s): %s, 卡包按 AALC 原权重选' % (path, e))
return None
try:
import inspect
from tasks.mirror import mirror as mirror_mod
from tasks.mirror import select_theme_pack as theme_pack_mod
except Exception as e:
log('[lc_mcp] 卡包按体系加分跳过: 无法导入 %s' % e)
return None
original = getattr(mirror_mod, 'select_theme_pack', None)
theme_list = getattr(theme_pack_mod, 'theme_list', None)
try:
source = inspect.getsource(theme_pack_mod) # 上游装饰器没用 functools.wraps, 只能看整个模块
except (OSError, TypeError):
source = None
if original is None or theme_list is None or (
source is not None and 'theme_list.get_effective_theme_pack_list(' not in source):
log('[ERROR] [lc_mcp] 上游 select_theme_pack 不再从 theme_list.get_effective_theme_pack_list 取权重, '
'卡包按体系加分挂不上, 跳过')
return None
state = {'system': None}
original_init = mirror_mod.Mirror.__init__
def __init__(self, *args, **kwargs):
original_init(self, *args, **kwargs)
state['system'] = getattr(self, 'system', None)
def select_theme_pack(*args, **kwargs):
THEME_PACK_BOOSTED.clear()
system = state['system']
if system not in SYSTEM_TEAM_NAMES:
return original(*args, **kwargs)
real = theme_list.get_effective_theme_pack_list
def get_effective_theme_pack_list(hard_mode, language, *more, **kw):
weights = real(hard_mode, language, *more, **kw)
try:
result, info = boost_theme_pack_weights(dict(weights), packs, system, bonus, language,
bool(hard_mode))
except Exception as e:
log('[lc_mcp] 卡包按体系加分出错(%s: %s), 用 AALC 原权重' % (type(e).__name__, e))
return weights
if info:
log('[lc_mcp] 卡包按体系 %s 加分: %s' % (system, ', '.join(
'%s %d→%d' % (key, item['from'], item['to']) for key, item in info.items())))
THEME_PACK_BOOSTED.update(info)
return result
with _override(theme_list, 'get_effective_theme_pack_list', get_effective_theme_pack_list):
return original(*args, **kwargs)
select_theme_pack.__wrapped__ = original
mirror_mod.Mirror.__init__ = __init__
mirror_mod.select_theme_pack = select_theme_pack
log('[lc_mcp] patch: 镜牢卡包按体系加分(%s, %d 个卡包)' % (os.path.basename(path), len(packs)))
return original
# ---------------------------------------------------------------- 「获得E.G.O饰品」确认弹窗兜底
# ISSUES I-06(2026-11-14 18:45): 开局「获得E.G.O饰品」弹窗上 AALC 一直点确认模板的匹配点(模板是勾号,
# 1280x720 下约 (602,525)), 弹窗不关, 连点了 5 分钟; 手动点按钮中心 (640,530) 一次就过。
# 上游 select_init_ego_gift 的 loop_count 退出判断在循环底部, 点到确认就 continue, 永远走不到;
# 镜牢主循环点到确认也是 continue, 同样不减计数。所以兜底放在 click_element 这一层, 两处都管:
# 连续命中第 3 次起改点按钮中心, 连续 20 次还在就记 [ERROR] 结束任务。
GIFT_CONFIRM = 'mirror/road_in_mir/ego_gift_get_confirm_assets.png'
GIFT_CONFIRM_BUTTON_DX = 76 # 勾号模板中心 → 按钮中心的横向距离(1440 标定; 1280x720 实测 602 → 640)
GIFT_CONFIRM_SHIFT_AT = 3 # 连续第几次命中起改点按钮中心(正常一个弹窗点 1~2 次就关)
GIFT_CONFIRM_LIMIT = 20 # 连续命中这么多次弹窗还在: 记 [ERROR] 并结束任务(卡住时约 1.5 秒一次)
GIFT_CONFIRM_GAP = 60 # 两次命中隔了这么多秒就不算连续
class TaskAbort(BaseException):
"""补丁判断再跑只会空转时抛出; aalc_task 在最外层接住, 记 [ERROR] 后按未完成退出。
不继承 Exception: AALC 的 onetime_mir_process 会吞掉 Exception 再开一局, 弹窗还在, 新的一局接着空转。
"""
def install_gift_confirm_guard(log=print, clock=time.monotonic):
"""「获得E.G.O饰品」确认点了不关时换落点, 再不行就结束任务。返回原 click_element, 未安装返回 None。
"连续"= 中间没有别的 click_element 点成功过、确认也一直找得到。别的东西点成功、确认没找到、
或者隔了 GIFT_CONFIRM_GAP 秒, 都清零重新计。
"""
try:
from module.automation import auto
from module.config import cfg
except Exception as e:
log('[lc_mcp] 饰品确认兜底跳过: 无法导入 %s' % e)
return None
real_click = getattr(auto, 'click_element', None)
if real_click is None:
log('[lc_mcp] 饰品确认兜底跳过: auto 没有 click_element')
return None
state = {'streak': 0, 'last': None}
def click_element(target, *args, **kwargs):
lookup_only = kwargs.get('click') is False
if target != GIFT_CONFIRM or lookup_only:
result = real_click(target, *args, **kwargs)
if result and not lookup_only:
state['streak'] = 0
return result
now = clock()
if state['last'] is not None and now - state['last'] > GIFT_CONFIRM_GAP:
state['streak'] = 0
shifting = state['streak'] + 1 >= GIFT_CONFIRM_SHIFT_AT
result = real_click(target, *args, **(dict(kwargs, click=False) if shifting else kwargs))
if not result:
state['streak'] = 0
return result
state['streak'] += 1
state['last'] = now
streak = state['streak']
if not shifting:
return result
if streak >= GIFT_CONFIRM_LIMIT:
log('[ERROR] [lc_mcp] 「获得E.G.O饰品」确认连点 %d 次弹窗还在, 结束任务(免得空转到超时)' % streak)
decisions.record('gift_confirm', None, 'stuck', clicks=streak)
raise TaskAbort('「获得E.G.O饰品」弹窗关不掉(连点 %d 次)' % streak)
x = int(round(result[0] + GIFT_CONFIRM_BUTTON_DX * cfg.set_win_size / 1440))
y = int(round(result[1]))
if streak == GIFT_CONFIRM_SHIFT_AT:
log('[lc_mcp] 「获得E.G.O饰品」确认点了 %d 次还在, 改点按钮中心 (%d,%d)' % (streak - 1, x, y))
decisions.record('gift_confirm', 'button_center', 'repeated', clicks=streak - 1)
auto.mouse_click(x, y)
return True
click_element.__wrapped__ = real_click
auto.click_element = click_element
log('[lc_mcp] patch: 「获得E.G.O饰品」确认连点不关时改点按钮中心, %d 次还在就结束任务' % GIFT_CONFIRM_LIMIT)
return real_click
# ---------------------------------------------------------------- 按键: 带扫描码、按住再松开
# ISSUES I-05: 2026-11-14 镜牢键盘寻路 24/24 没进去(旧版只按 ↑ 也是 32/32)。AALC 前台模式的 key_press
# 是 pyautogui.press: keybd_event 的扫描码填 0、方向键不带扩展键标志, 按下抬起紧挨着。上游在后台模式的
# _make_key_lparam 注释里写了"Unity 6+ 会校验 scan code 和 extended flag", 本仓库 aalc_engine 也记过
# Unity 会吞掉同一帧里的 down/up。这里把前台按键换成带扫描码和扩展键标志的 keybd_event,
# 各模式都按住 KEY_HOLD 秒再松开。
KEY_HOLD = 0.12 # 与 aalc_engine 的 key 工具一致
KEY_HOLD_ENV = 'LCP_KEY_HOLD' # 0 = 不装, 按键完全走 AALC 原逻辑
KEYEVENTF_EXTENDEDKEY = 0x0001
KEYEVENTF_KEYUP = 0x0002
MAPVK_VK_TO_VSC = 0
def press_vk(user32, vk, extended, hold=KEY_HOLD):
"""向前台窗口按一次键: keybd_event 带扫描码(方向键等再带扩展键标志), 按住 hold 秒再松开。"""
scan = user32.MapVirtualKeyW(vk, MAPVK_VK_TO_VSC) & 0xFF
flags = KEYEVENTF_EXTENDEDKEY if extended else 0
user32.keybd_event(vk, scan, flags, 0)
try:
time.sleep(hold)
finally:
user32.keybd_event(vk, scan, flags | KEYEVENTF_KEYUP, 0)
return scan
def install_key_hold(log=print, env=None, user32=None):
"""改 AALC 各 Windows 输入后端的 key_press。返回 {类名: 原 key_press}, 未安装返回 None。
前台(Input): 先确认游戏窗口在前台(不在就激活一次, 还不在就不发, 免得按到别的程序里),
再用 press_vk 发。后台(BackgroundInput / WindowMoveInput): 仍用上游自己的 key_down/key_up
消息(扫描码上游已经填对), 只在中间按住 KEY_HOLD 秒。不认识的键名交回原逻辑。模拟器不动。
"""
env = os.environ if env is None else env
if env.get(KEY_HOLD_ENV) == '0':
log('[lc_mcp] 按键补丁已关闭(%s=0), 按键走 AALC 原逻辑' % KEY_HOLD_ENV)
return None
try:
from module.automation.input_handlers import input as input_mod
from module.game_and_screen import screen
except Exception as e:
log('[lc_mcp] 按键补丁跳过: 无法导入 %s' % e)
return None
key_list = getattr(input_mod, 'key_list', None)
extended_vks = getattr(input_mod, 'EXTENDED_KEY_VKS', None)
if not key_list or extended_vks is None:
log('[lc_mcp] 按键补丁跳过: 上游没有 key_list / EXTENDED_KEY_VKS')
return None
originals = {}
foreground = getattr(input_mod, 'Input', None)
if foreground is not None:
original_fg = foreground.key_press
if _source_mentions(original_fg, 'pyautogui.press') is False:
log('[ERROR] [lc_mcp] 按键补丁: 上游前台 Input.key_press 不再用 pyautogui.press, 挂不上, 前台按键照旧')
else:
if user32 is None:
import ctypes
user32 = ctypes.windll.user32
def key_press(self, key):
name = str(key).lower()
vk = key_list.get(name)
if vk is None:
return original_fg(self, key)
handle = screen.handle
if not handle.isActive:
try:
handle.setForeground()
except Exception as e:
log('[lc_mcp] 按键前激活游戏窗口出错: %s: %s' % (type(e).__name__, e))
time.sleep(0.15)
if not handle.isActive:
log('[lc_mcp] 按键 %s 没发: 游戏窗口不在前台(避免按到别的程序里)' % name)
return None
press_vk(user32, vk, vk in extended_vks)
return None
key_press.__wrapped__ = original_fg
foreground.key_press = key_press
originals['Input'] = original_fg
for name in ('BackgroundInput', 'WindowMoveInput'):
cls = getattr(input_mod, name, None)
if cls is None or not all(hasattr(cls, m) for m in ('set_active', 'key_down', 'key_up')):
continue
original_bg = cls.key_press
def key_press(self, key, _original=original_bg):
if str(key).lower() not in key_list:
return _original(self, key)
self.set_active()
self.key_down(key)
try:
time.sleep(KEY_HOLD)
finally:
self.key_up(key)
key_press.__wrapped__ = original_bg
cls.key_press = key_press
originals[name] = original_bg
if not originals:
log('[lc_mcp] 按键补丁跳过: 没有可改的 Windows 输入后端')
return None
log('[lc_mcp] patch: 按键按住 %dms 再松开, 前台改发带扫描码的按键(%s)'
% (KEY_HOLD * 1000, '/'.join(sorted(originals))))
return originals
+14 -6
View File
@@ -11,12 +11,13 @@ 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 (TaskAbort, 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_confirm_guard, install_gift_preference, install_key_hold,
install_shop_by_name, install_system_team_selection, install_team_screen_guard, install_robust_set_foreground, install_shop_audit, install_shop_by_name,
install_theme_pack_audit, install_system_team_selection, install_team_screen_guard,
install_typed_keyboard_road, mirror_progress, stop_driver_click) install_theme_pack_audit, install_theme_pack_systems, 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
@@ -124,6 +125,8 @@ def _run(task, params):
decisions.open() # TaskRunner 给的 .decisions.jsonl; 直接运行时不写 decisions.open() # TaskRunner 给的 .decisions.jsonl; 直接运行时不写
install_exact_team_match(auto, log) install_exact_team_match(auto, log)
install_robust_set_foreground(screen, log=log) install_robust_set_foreground(screen, log=log)
if not cfg.simulator:
install_key_hold(log=log) # 前台按键带扫描码、各模式按住再松开(ISSUES I-05)
# 日常本(经验/纽本)不翻队伍列表: 队伍是自定义名字时按名字找必然失败, # 日常本(经验/纽本)不翻队伍列表: 队伍是自定义名字时按名字找必然失败,
# 白等 60 秒还会把界面滚乱, 后面 to_battle 就找不到 "进入战斗" 了。 # 白等 60 秒还会把界面滚乱, 后面 to_battle 就找不到 "进入战斗" 了。
if task in ('daily', 'all'): if task in ('daily', 'all'):
@@ -132,12 +135,14 @@ def _run(task, params):
if task in ('mirror', 'all'): if task in ('mirror', 'all'):
install_system_team_selection(log=log) install_system_team_selection(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_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) install_event_choices(log=log)
install_shop_audit(log=log) install_shop_audit(log=log)
install_shop_by_name(log=log) # 装在审计之后(包在外层), 审计才看得到按名字点的那一下 install_shop_by_name(log=log) # 装在审计之后(包在外层), 审计才看得到按名字点的那一下
install_theme_pack_audit(log=log) install_theme_pack_systems(log=log) # 卡包按体系加分(BACKLOG R-01)
install_theme_pack_audit(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)
@@ -165,6 +170,9 @@ def _run(task, params):
'mirror': scheme.Mirror_task, 'mirror': scheme.Mirror_task,
}[task]() }[task]()
return mirror_result(task, progress) return mirror_result(task, progress)
except TaskAbort as e:
log('[ERROR] [lc_mcp] 任务中止: %s' % e)
return INCOMPLETE_EXIT
finally: finally:
guard.stop() guard.stop()
retry_monitor.stop() retry_monitor.stop()
+13 -2
View File
@@ -4,9 +4,11 @@
"认事件: options 里的每一句都出现在这一屏的选项里, 才算这个事件(按表顺序, 先命中的生效); 然后点包含 text 的那一项。", "认事件: options 里的每一句都出现在这一屏的选项里, 才算这个事件(按表顺序, 先命中的生效); 然后点包含 text 的那一项。",
"零协汉化的事件数据没有标题字段, 画面上也不保证有事件名, 所以不按事件名认; name 只用于日志。", "零协汉化的事件数据没有标题字段, 画面上也不保证有事件名, 所以不按事件名认; name 只用于日志。",
"文字都先归一再比较: 去空白、全角转半角、去标点、改回常见误读。整表关闭: 任务环境变量 LCP_EVENT_CHOICES=0。", "文字都先归一再比较: 去空白、全角转半角、去标点、改回常见误读。整表关闭: 任务环境变量 LCP_EVENT_CHOICES=0。",
"id 是零协汉化 LLC_zh-CN/ActionEvents_*.json 里的事件 id; options/text 照抄那里的选项原文(2026-11-14 核对 LocalizeLimbusCompany@231a8bc)。", "id 是零协汉化 LLC_zh-CN/ActionEvents_*.json 里的事件 id; options/text 照抄那里的选项原文(2026-11-15 按本机装的 release 2026111301 核对)。",
"同一套选项在别的文件里有复刻(如 ActionEvents.json 910301/910302 与地狱鸡两条选项、结果都相同)时会一起命中, 选的是同一项。",
"check=true 表示选了之后还要罪人判定(由 AALC 原逻辑挑成功率最高的人格); 其余都是无判定、无战斗的直出。", "check=true 表示选了之后还要罪人判定(由 AALC 原逻辑挑成功率最高的人格); 其余都是无判定、无战斗的直出。",
"选择依据: docs/skills/limbus-mirror-speedrun/references/event-choices.md(依据边狱公司中文 Wiki 社区「探索事件」, CC BY-SA 4.0)。", "选择依据: docs/skills/limbus-mirror-speedrun/references/event-choices.md(依据边狱公司中文 Wiki 社区「探索事件」, CC BY-SA 4.0)。",
"蜘蛛巢、归乡路途两条的结果依据 Limbus Company Wiki(wiki.gg) Spider of Marriage / Smokey Old Man 条目(CC BY-SA 4.0), 2026-11-15 核对。",
"选项原文来自零协汉化 LocalizeLimbusCompany(https://github.com/LocalizeLimbusCompany/LocalizeLimbusCompany, CC BY-NC-SA 4.0)。" "选项原文来自零协汉化 LocalizeLimbusCompany(https://github.com/LocalizeLimbusCompany/LocalizeLimbusCompany, CC BY-NC-SA 4.0)。"
], ],
"events": [ "events": [
@@ -27,6 +29,15 @@
"note": "两项都是判定: 1 忧郁/色欲(门槛 16), 2 忧郁/怠惰(门槛 14, 成功获得打击饰品); AALC 不区分两项, 点它认出的那个优势判定"}, "note": "两项都是判定: 1 忧郁/色欲(门槛 16), 2 忧郁/怠惰(门槛 14, 成功获得打击饰品); AALC 不区分两项, 点它认出的那个优势判定"},
{"name": "破碎罗盘(冻僵的尸体指路)", "id": 901095, "file": "ActionEvents_Mirror3.json", {"name": "破碎罗盘(冻僵的尸体指路)", "id": 901095, "file": "ActionEvents_Mirror3.json",
"options": ["向裂开的手所指的北方。", "向警告的手所指的东方。", "向折断的手所指的西方。"], "text": "返回。", "options": ["向裂开的手所指的北方。", "向警告的手所指的东方。", "向折断的手所指的西方。"], "text": "返回。",
"note": "第 4 项直接结束; 其余方向都还有后续分支"} "note": "第 4 项直接结束; 其余方向都还有后续分支"},
{"name": "蜘蛛巢(结婚蜘蛛)", "id": 901028, "file": "ActionEvents_Mirror.json",
"options": ["扯断棘蔓。"], "text": "摘下一朵花。",
"note": "1 直接给饰品「偏见」, 非傲慢人格扣 5 体力、傲慢人格回 15; 2 是 50% 判定, 成功全体降 10 理智, 失败全体扣 10 体力"},
{"name": "归乡路途(烟雾老人)", "id": 901039, "file": "ActionEvents_Mirror.json",
"options": ["不听故事离开。"], "text": "告诉它你们很乐意听些故事。",
"note": "1 进入下一段选择; 2 直接离开但全体降 30 理智"},
{"name": "归乡路途(第二段: 那幅画)", "id": 90103901, "file": "ActionEvents_Mirror.json",
"options": ["留下这幅画。"], "text": "带走这幅画。",
"note": "1 获得饰品「归途」(商店必买之一); 2 得 50 经费但全体降 15 理智"}
] ]
} }
+175
View File
@@ -0,0 +1,175 @@
{
"_说明": [
"镜牢卡包按当局队伍体系加分(BACKLOG R-01 / ISSUES I-08)。只在选卡包时临时加到 AALC 的权重上, 不改 theme_pack_list.yaml。",
"featured: 这个卡包「Featured Gifts」掉的是哪个体系的饰品(体系包, 如 电闪雷鸣/动力渐盈 = 充能); unique: 专属饰品里各体系各几件。",
"加分 = max(bonus.featured(体系包), bonus.unique[专属饰品件数, 超过按最后一档], bonus.recommend(社区推荐)); 社区说这个体系不划算的不加; 速刷要避开的再减 bonus.avoid。AALC 原权重 + 加分 = 这一局的权重。",
"社区推荐/避开写在 community 里(带来源), 重新生成 packs 时保留。",
"默认档位让体系包和专属饰品 ≥3 件的包压过 AALC 的 -5(比如充能队会选 WARP快车谋杀案), 2 件的压过 -3 以内; 想保守就把数字调小。",
"normal/hard 是出现楼层, 只做参考, 不参与计算。没有 featured/unique 的卡包不加分。",
"数据由 scripts/build_theme_pack_systems.py 生成: 卡包条目与饰品体系来自 Limbus Company Wiki(https://limbuscompany.wiki.gg, CC BY-SA 4.0), 2026-11-15 抓取;",
"中文名来自零协汉化 LLC_zh-CN/MirrorDungeonTheme-1.json(release 2026111301, CC BY-NC-SA 4.0)。边狱巴士 BWIKI 没有卡包条目。",
"整表关闭: 任务环境变量 LCP_THEME_PACK_SYSTEMS=0; 设为 JSON 文件路径时用它代替本表。"
],
"bonus": {"featured": 6, "unique": [0, 1, 4, 6], "recommend": 6, "avoid": 3},
"community": {
"_说明": [
"社区攻略的选包建议(2026-11-15 用 codex CLI 联网检索整理, 检索记录见 docs/feedback/2026-11-15/theme-pack-research.md)。",
"recommend: 攻略推荐这个体系走这个卡包, 加 bonus.recommend(和 featured/unique 取大的)。只收普通难度会出现的卡包。",
"avoid: systems 为 [\"*\"] 的是速刷攻略说拖时间的卡包, 所有体系都减 bonus.avoid; 写了具体体系的只是对该体系不划算, 那个体系不加分。",
"来源多是旧赛季或困难/单通路线, 只当倾向用; 灰机 wiki 的卡包数据表已标「停止更新」, 层数以 packs 里 wiki.gg 的为准。",
"WARP快车谋杀案 的「流血 1」是 wiki.gg 把血液结晶归为流血, 中文事件文本说是泛用饰品; 只影响流血队 +1, 暂不改。"
],
"recommend": [
{"pack": "地狱鸡", "systems": ["burn", "tremor", "poise"], "source": "https://steamcommunity.com/sharedfiles/filedetails/?id=3010191708", "note": "S7 速刷路线 2 层"},
{"pack": "地狱鸡", "systems": ["rupture"], "source": "https://www.taptap.cn/moment/664273800250000543", "note": "旧镜5 普牢破裂速刷"},
{"pack": "憎恶与绝望", "systems": ["burn", "tremor"], "source": "https://steamcommunity.com/sharedfiles/filedetails/?id=3010191708", "note": "S7 烧震速刷 3 层: 免判定事件、战斗少"},
{"pack": "憎恶与绝望", "systems": ["sinking", "charge"], "source": "https://www.ourplay.net/planet/thread/758301", "note": "单通: 拿沉沦/充能饰品(泪锋之剑、未被选中之人)"},
{"pack": "LCB定期体检", "systems": ["burn"], "source": "https://www.ourplay.net/planet/thread/497714", "note": "旧困牢"},
{"pack": "LCB定期体检", "systems": ["rupture"], "source": "https://www.gamemale.com/thread-177147-1-1.html", "note": "旧版呼破 15 层"},
{"pack": "绞丝结线", "systems": ["bleed", "charge"], "source": "https://www.ourplay.net/planet/thread/758301", "note": "单通可选"},
{"pack": "时间杀人时间", "systems": ["tremor"], "source": "https://www.ourplay.net/planet/thread/715281", "note": "专属震颤饰品提升大"},
{"pack": "无归属者", "systems": ["rupture"], "source": "https://www.taptap.cn/moment/664273800250000543", "note": "旧镜5 普牢破裂速刷"},
{"pack": "深夜清扫", "systems": ["rupture"], "source": "https://www.gamemale.com/thread-177147-1-1.html", "note": "旧版呼破 15 层"},
{"pack": "切磋琢春", "systems": ["rupture"], "source": "https://www.gamemale.com/thread-177147-1-1.html", "note": "旧版呼破 15 层; 另一篇单通攻略评价低"},
{"pack": "琥珀色的黄昏", "systems": ["sinking"], "source": "https://www.ourplay.net/planet/thread/758301", "note": "单通可选"},
{"pack": "由子弹画下的句点", "systems": ["poise"], "source": "https://www.ourplay.net/planet/thread/497714", "note": "旧困牢"},
{"pack": "20区的奇迹", "systems": ["poise"], "source": "https://www.ourplay.net/planet/thread/497714", "note": "旧困牢"},
{"pack": "WARP快车谋杀案", "systems": ["charge"], "source": "https://www.ourplay.net/planet/thread/497714", "note": "旧困牢"},
{"pack": "经验记忆", "systems": ["slash"], "source": "https://www.ourplay.net/planet/thread/758301", "note": "单通必走"},
{"pack": "身无分文的赌徒", "systems": ["pierce"], "source": "https://www.bilibili.com/opus/1200031368835235848", "note": "纯P突刺 1 层"},
{"pack": "去·海·边", "systems": ["pierce"], "source": "https://www.bilibili.com/opus/1200031368835235848", "note": "纯P突刺 2 层"},
{"pack": "当贯之物", "systems": ["pierce"], "source": "https://www.bilibili.com/opus/1200031368835235848", "note": "纯P突刺 3 层"},
{"pack": "20区的奇迹", "systems": ["pierce"], "source": "https://www.bilibili.com/opus/1200031368835235848", "note": "纯P突刺 4 层优先"}
],
"avoid": [
{"pack": "被遗忘者们", "systems": ["*"], "source": "https://steamcommunity.com/sharedfiles/filedetails/?id=3010191708", "note": "时钟加不断出现的小怪, 自动战斗常拖到 5 回合以上"},
{"pack": "自动工厂", "systems": ["*"], "source": "https://steamcommunity.com/sharedfiles/filedetails/?id=3010191708", "note": "可能遇到机器人, 拖时间"},
{"pack": "当碎之物", "systems": ["*"], "source": "https://steamcommunity.com/sharedfiles/filedetails/?id=3010191708", "note": "可能遇到机器人, 拖时间"},
{"pack": "琥珀色的黄昏", "systems": ["bleed"], "source": "https://www.ourplay.net/planet/thread/758301", "note": "流血有效收益只有「泛音」"}
]
},
"packs": [
{"id": 1001, "zh": "被遗忘者们", "en": "The Forgotten", "normal": "1F", "hard": "1F", "featured": [], "unique": {}},
{"id": 1002, "zh": "无归属者", "en": "The Outcast", "normal": "1F", "hard": "1F", "featured": [], "unique": {"bleed": 1, "rupture": 1}},
{"id": 1003, "zh": "身无分文的赌徒", "en": "Flat-broke Gamblers", "normal": "1F,2F", "hard": "1F", "featured": [], "unique": {}},
{"id": 1004, "zh": "自动工厂", "en": "Automated Factory", "normal": "1F,2F", "hard": "1F,2F", "featured": [], "unique": {"sinking": 1, "tremor": 1}},
{"id": 1005, "zh": "无法去爱", "en": "The Unloving", "normal": "1F,2F", "hard": "1F,2F", "featured": [], "unique": {"sinking": 1}},
{"id": 1006, "zh": "钉与锤", "en": "Nagel und Hammer", "normal": "1F", "hard": "1F", "featured": [], "unique": {}},
{"id": 1007, "zh": "信仰与侵蚀", "en": "Faith & Erosion", "normal": "1F,2F", "hard": "1F", "featured": [], "unique": {"bleed": 1}},
{"id": 1008, "zh": "未曾面对", "en": "The Unconfronting", "normal": "3F", "hard": "2F,3F", "featured": [], "unique": {"bleed": 1}},
{"id": 1009, "zh": "巢、工坊、技术", "en": "Nest, Workshop, and Technology", "normal": "1F,2F", "hard": "1F", "featured": [], "unique": {}},
{"id": 1010, "zh": "落花", "en": "Falling Flowers", "normal": "3F", "hard": "2F,3F", "featured": [], "unique": {}},
{"id": 1011, "zh": "落泪者们", "en": "Tearful Things", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1012, "zh": "无改变者", "en": "The Unchanging", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {}},
{"id": 1013, "zh": "湖的世界", "en": "Lake World", "normal": "2F", "hard": "1F", "featured": [], "unique": {}},
{"id": 1014, "zh": "伏行深渊", "en": "Crawling Abyss", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {"poise": 1}},
{"id": 1015, "zh": "定义为恶", "en": "The Evil Defining", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"poise": 1}},
{"id": 1016, "zh": "宅邸的副产物", "en": "Dregs of the Manor", "normal": "3F", "hard": "1F", "featured": [], "unique": {"sinking": 1}},
{"id": 1017, "zh": "某个世界", "en": "A Certain World", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1018, "zh": "心意相悖", "en": "The Heartbreaking", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"sinking": 1}},
{"id": 1019, "zh": "重新开园的拉·曼却领", "en": "La Manchaland Re-opening", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 5}},
{"id": 1020, "zh": "无尽的游行", "en": "The Infinite Procession", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 5}},
{"id": 1021, "zh": "梦之终焉", "en": "The Dream Ending", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 5}},
{"id": 1022, "zh": "四大家族与欲念", "en": "Four Houses and Greed", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"charge": 1}},
{"id": 1023, "zh": "不思观望", "en": "The Surrendered Witnessing", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"poise": 1, "rupture": 1}},
{"id": 1024, "zh": "魅惑、彷徨、猜疑", "en": "Charm, Wander, Doubt", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {"bleed": 1, "blunt": 1}},
{"id": 1025, "zh": "教材", "en": "Textbook", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"burn": 1, "tremor": 2}},
{"id": 1026, "zh": "刀与作品", "en": "Blade and Artwork", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 2, "poise": 1}},
{"id": 1027, "zh": "无割舍者", "en": "The Unsevering", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"poise": 1, "sinking": 1}},
{"id": 1028, "zh": "开店抢购", "en": "Storefront Campout", "normal": "3F,4F", "hard": "3F,4F", "featured": [], "unique": {"charge": 2}},
{"id": 1029, "zh": "纷繁的色彩", "en": "An Anarchy of Colors", "normal": "", "hard": "4F,5F,6-10F", "featured": [], "unique": {"charge": 2}},
{"id": 1030, "zh": "保存的信念", "en": "Creed of Preservation", "normal": "", "hard": "4F,5F,6-10F", "featured": [], "unique": {"charge": 1, "tremor": 1}},
{"id": 1031, "zh": "暴食重临", "en": "Readvent of Gluttony", "normal": "", "hard": "4F,5F,6-10F", "featured": [], "unique": {}},
{"id": 1101, "zh": "地狱鸡", "en": "Hell's Chicken", "normal": "2F", "hard": "2F", "featured": [], "unique": {"bleed": 1, "burn": 1, "rupture": 1}},
{"id": 1102, "zh": "去·海·边", "en": "S.E.A.", "normal": "2F", "hard": "2F,3F", "featured": [], "unique": {"rupture": 1, "tremor": 1}},
{"id": 1103, "zh": "20区的奇迹", "en": "Miracle in District 20", "normal": "4F", "hard": "3F,4F", "featured": [], "unique": {"poise": 2}},
{"id": 1104, "zh": "肉斩骨断", "en": "Yield My Flesh to Claim Their Bones", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {"bleed": 1, "poise": 2}},
{"id": 1105, "zh": "时间杀人时间", "en": "Timekilling Time", "normal": "4F,5F", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"tremor": 5}},
{"id": 1106, "zh": "WARP快车谋杀案", "en": "Murder on the WARP Express", "normal": "4F,5F", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"bleed": 1, "charge": 5}},
{"id": 1107, "zh": "紫罗兰的正午", "en": "The Noon of Violet", "normal": "4F", "hard": "3F,4F", "featured": [], "unique": {"bleed": 1, "charge": 1, "sinking": 3}},
{"id": 1108, "zh": "1号线", "en": "Line 1", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1109, "zh": "2号线", "en": "Line 2", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {}},
{"id": 1110, "zh": "3号线", "en": "Line 3", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"burn": 1}},
{"id": 1111, "zh": "4号线 - 第3区段", "en": "Line 4 - Section 3", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1112, "zh": "4号线 - 第4区段", "en": "Line 4 - Section 4", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1113, "zh": "20区的奇迹 复刻", "en": "Miracle in District 20 BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"poise": 2, "tremor": 1}},
{"id": 1114, "zh": "由子弹画下的句点", "en": "Full-Stopped by a Bullet", "normal": "4F", "hard": "3F,4F", "featured": [], "unique": {"pierce": 2, "poise": 2}},
{"id": 1115, "zh": "LCB定期体检", "en": "LCB Regular Check-up", "normal": "5F", "hard": "4F,5F,6F-10F", "featured": ["burn", "rupture"], "unique": {"burn": 3, "rupture": 3}},
{"id": 1116, "zh": "肉斩骨断 复刻", "en": "Yield My Flesh to Claim Their Bones BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"bleed": 1, "poise": 2, "slash": 2}},
{"id": 1117, "zh": "深夜清扫", "en": "Nocturnal Sweeping", "normal": "5F", "hard": "4F,5F,6F-10F", "featured": ["rupture"], "unique": {"blunt": 2, "rupture": 3, "slash": 1}},
{"id": 1118, "zh": "5号线", "en": "Line 5", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 1, "poise": 1}},
{"id": 1119, "zh": "憎恶与绝望", "en": "Hatred and Despair", "normal": "3F,4F", "hard": "3F,4F", "featured": [], "unique": {"charge": 2, "sinking": 2}},
{"id": 1120, "zh": "时间杀人时间 复刻", "en": "Timekilling Time BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"tremor": 8}},
{"id": 1121, "zh": "切磋琢春", "en": "Spring Cultivation", "normal": "5F", "hard": "5F,6F-10F", "featured": [], "unique": {"burn": 1, "rupture": 3, "slash": 1, "tremor": 1}},
{"id": 1122, "zh": "善意的巡礼", "en": "Pilgrimage of Compassion", "normal": "4F,5F", "hard": "4F,5F,6-10F", "featured": [], "unique": {"poise": 1, "rupture": 1, "sinking": 1, "tremor": 1}},
{"id": 1123, "zh": "WARP快车谋杀案 复刻", "en": "Murder on the WARP Express BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"bleed": 3, "charge": 7}},
{"id": 1124, "zh": "琥珀色的黄昏", "en": "The Dusk of Amber", "normal": "4F,5F", "hard": "4F,5F,6F-10F", "featured": [], "unique": {"bleed": 3, "burn": 1, "sinking": 2}},
{"id": 1125, "zh": "LCB定期体检 复刻", "en": "LCB Regular Check-up BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["burn", "rupture"], "unique": {"burn": 4, "charge": 1, "rupture": 4}},
{"id": 1126, "zh": "绞丝结线", "en": "Twining Threads", "normal": "5F", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 2, "blunt": 1, "charge": 1, "sinking": 1}},
{"id": 1127, "zh": "深夜清扫 复刻", "en": "Nocturnal Sweeping BokGak", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["rupture"], "unique": {"blunt": 3, "rupture": 4, "slash": 1}},
{"id": 1128, "zh": "经验记忆", "en": "Mnestic Experience", "normal": "5F", "hard": "5F,6F-10F", "featured": [], "unique": {"bleed": 1, "poise": 1, "slash": 3}},
{"id": 1129, "zh": "黎明后贯穿而来之楔", "en": "The Wedge in the Wake of Dawnbreak", "normal": "5F", "hard": "5F,6F-10F", "featured": [], "unique": {"pierce": 3, "tremor": 2}},
{"id": 1201, "zh": "斩切者们", "en": "Slicers & Dicers", "normal": "5F", "hard": "4F", "featured": ["slash"], "unique": {}},
{"id": 1202, "zh": "当斩之物", "en": "To be Cleaved", "normal": "2F,3F", "hard": "1F,2F", "featured": ["slash"], "unique": {}},
{"id": 1203, "zh": "穿刺者们", "en": "Piercers & Penetrators", "normal": "5F", "hard": "4F", "featured": ["pierce"], "unique": {}},
{"id": 1204, "zh": "当贯之物", "en": "To be Pierced", "normal": "2F,3F", "hard": "1F,2F", "featured": ["pierce"], "unique": {}},
{"id": 1205, "zh": "粉碎者们", "en": "Crushers & Breakers", "normal": "5F", "hard": "4F", "featured": ["blunt"], "unique": {}},
{"id": 1206, "zh": "当碎之物", "en": "To be Crushed", "normal": "2F,3F", "hard": "1F,2F", "featured": ["blunt"], "unique": {}},
{"id": 1301, "zh": "压抑的暴怒", "en": "Repressed Wrath", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1302, "zh": "解放的暴怒", "en": "Unbound Wrath", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"burn": 2}},
{"id": 1303, "zh": "受情感压迫者", "en": "Emotional Repression", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1304, "zh": "沉迷的色欲", "en": "Addicting Lust", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1305, "zh": "束缚的色欲", "en": "Tangling Lust", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1306, "zh": "因情感困惑者", "en": "Emotional Seduction", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1307, "zh": "空转的怠惰", "en": "Treadwheel Sloth", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1308, "zh": "停滞的怠惰", "en": "Inert Sloth", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1309, "zh": "待情感懒惰者", "en": "Emotional Indolence", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1310, "zh": "吞噬的暴食", "en": "Devoured Gluttony", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1311, "zh": "漫溢的暴食", "en": "Excessive Gluttony", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1312, "zh": "对情感饥渴者", "en": "Emotional Craving", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1313, "zh": "堕落的忧郁", "en": "Degraded Gloom", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1314, "zh": "沉溺的忧郁", "en": "Sunk Gloom", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {"sinking": 1}},
{"id": 1315, "zh": "于情感沉溺者", "en": "Emotional Flood", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1316, "zh": "虚张声势的傲慢", "en": "Vain Pride", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1317, "zh": "自以为是的傲慢", "en": "Tyrannical Pride", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1318, "zh": "向情感屈从者", "en": "Emotional Subservience", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1319, "zh": "寒微的嫉妒", "en": "Insignificant Envy", "normal": "4F,5F", "hard": "3F,4F", "featured": [], "unique": {}},
{"id": 1320, "zh": "凄惨的嫉妒", "en": "Pitiful Envy", "normal": "", "hard": "5F,6F-10F", "featured": [], "unique": {}},
{"id": 1321, "zh": "被情感评判者", "en": "Emotional Judgment", "normal": "3F", "hard": "2F", "featured": [], "unique": {}},
{"id": 1401, "zh": "燃烧的摇曳", "en": "Burning Haze", "normal": "", "hard": "3F", "featured": ["burn"], "unique": {}},
{"id": 1402, "zh": "盛火时节", "en": "Season of the Flame", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["burn"], "unique": {"burn": 2}},
{"id": 1403, "zh": "渗出的赤血", "en": "Trickled Sanguine Blood", "normal": "", "hard": "3F", "featured": ["bleed"], "unique": {}},
{"id": 1404, "zh": "尸山血海", "en": "Mountain of Corpses, Sea of Blood", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["bleed"], "unique": {}},
{"id": 1405, "zh": "缭乱的波动", "en": "Dizzying Waves", "normal": "", "hard": "3F", "featured": ["tremor"], "unique": {}},
{"id": 1406, "zh": "异常地震带", "en": "Abnormal Seismic Zone", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["tremor"], "unique": {}},
{"id": 1407, "zh": "破坏性外力", "en": "Crushing External Force", "normal": "", "hard": "3F", "featured": ["rupture"], "unique": {}},
{"id": 1408, "zh": "破竹之势", "en": "Unrelenting Might", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["rupture"], "unique": {}},
{"id": 1409, "zh": "沉于苦痛", "en": "Sinking Pang", "normal": "", "hard": "3F", "featured": ["sinking"], "unique": {}},
{"id": 1410, "zh": "沉沦泛滥", "en": "Sinking Deluge", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["sinking"], "unique": {"sinking": 1}},
{"id": 1411, "zh": "深沉叹息", "en": "Deep Sigh", "normal": "", "hard": "3F", "featured": ["poise"], "unique": {}},
{"id": 1412, "zh": "循环呼吸", "en": "Poised Breathing", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["poise"], "unique": {}},
{"id": 1413, "zh": "动力渐盈", "en": "Rising Power Supply", "normal": "", "hard": "3F", "featured": ["charge"], "unique": {}},
{"id": 1414, "zh": "电闪雷鸣", "en": "Thunder and Lightning", "normal": "", "hard": "4F,5F,6F-10F", "featured": ["charge"], "unique": {}},
{"id": 1501, "zh": "N公司 新九人会", "en": "N Corp. New League of Nine Littérateurs", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1502, "zh": "绽放的绿林", "en": "Efflorescing Greenery", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1503, "zh": "3号线 - 终点站", "en": "Line 3 - Terminus", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1504, "zh": "永劫的枷锁", "en": "Bridle of Infinity", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1505, "zh": "去·海·边·激·蟹", "en": "S.E.A. C.R", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1506, "zh": "无尽的死路", "en": "Impenetrable Path", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1507, "zh": "无法成为血魔的人们", "en": "Who Couldn't Be Bloodfiends", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1508, "zh": "美妙的嗓音", "en": "A Beautiful Voice", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1509, "zh": "绿色的黎明", "en": "The Dawn of Green", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1510, "zh": "进入某座图书馆的某本藏书", "en": "Into a Certain Library's Book", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1511, "zh": "紫色编码", "en": "Code Purple", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1512, "zh": "身负重担者们", "en": "Bearers of Weight", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1513, "zh": "1号线 : 疯狂", "en": "Line 1 : MADNESS", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1514, "zh": "充满祝福的嘉年华", "en": "Blessed Carnival", "normal": "", "hard": "", "featured": [], "unique": {"bleed": 1}},
{"id": 1515, "zh": "精灵童话", "en": "Fairy Tale", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1516, "zh": "血腥味", "en": "Bloodtinged Ichthyic Odor", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1517, "zh": "即刻处刑时间", "en": "Complete & Total Extermination", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1518, "zh": "拉·曼却领之主", "en": "The Master of La Manchaland", "normal": "", "hard": "", "featured": [], "unique": {"bleed": 1}},
{"id": 1519, "zh": "插翅虎", "en": "Chachihu", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 1520, "zh": "仲春夜之梦2", "en": "A Midspring Night's Dream 2", "normal": "", "hard": "", "featured": [], "unique": {}},
{"id": 3001, "zh": "凤·皇", "en": "The B.E.", "normal": "", "hard": "3F,4F,5F,6F-10F", "featured": [], "unique": {}}
]
}