镜牢决策补强: 确认重试回退、快感合成闸门与英文 OCR 别名
- aalc_engine: window_move 下按压保持 0.5s, 避免 Unity 漏点 - jev_mirror_agent: 技能描述抖动时 Enter 未推进改点已核对按钮并限制连续重试; 结果页指纹忽略剧情与时钟变化; 追加的苦难不再误判为单个饰品场景; 第 3 层起离开商店前强制做一次有界快感合成检查 - lc_scene_aliases: 补 Mounting Trials / Acquire E.G.O Gift 等标签, 识别拆分的 Win/Bate 胜率按钮与 Max HP / Defense Level 文本 - tests: 覆盖上述回归点
This commit is contained in:
@@ -24,6 +24,8 @@ LABELS = {
|
|||||||
'e.g.ogiftsearch':'额外观测', 'eg.dgiftsearch':'额外观测',
|
'e.g.ogiftsearch':'额外观测', 'eg.dgiftsearch':'额外观测',
|
||||||
'nextfloor':'下一层', 'gotonextfloor':'前往下一层', 'proceedtonextfloor':'前往下一层', 'claim':'领取',
|
'nextfloor':'下一层', 'gotonextfloor':'前往下一层', 'proceedtonextfloor':'前往下一层', 'claim':'领取',
|
||||||
'additionalhardship':'追加的苦难', 'additionalhardships':'追加的苦难',
|
'additionalhardship':'追加的苦难', 'additionalhardships':'追加的苦难',
|
||||||
|
'mountingtrials':'追加的苦难', 'acquiree.g.ogift':'获得E.G.O饰品',
|
||||||
|
'acquiree.g.ogift!':'获得E.G.O饰品!', 'skilsowned':'当前持有技能',
|
||||||
'obtaine.g.ogift':'获得E.G.O饰品', 'obtaine.g.ogifts':'获得E.G.O饰品',
|
'obtaine.g.ogift':'获得E.G.O饰品', 'obtaine.g.ogifts':'获得E.G.O饰品',
|
||||||
'claimrewards':'领取奖励', 'explorationcomplete':'探索完成',
|
'claimrewards':'领取奖励', 'explorationcomplete':'探索完成',
|
||||||
'explorationcompleted':'探索完成', 'dungeoncomplete':'探索完成',
|
'explorationcompleted':'探索完成', 'dungeoncomplete':'探索完成',
|
||||||
@@ -40,7 +42,17 @@ def normalize(state):
|
|||||||
raw = item['text']
|
raw = item['text']
|
||||||
compact = re.sub(r'\s+', '', raw).lower().lstrip('×x')
|
compact = re.sub(r'\s+', '', raw).lower().lstrip('×x')
|
||||||
compact = compact.replace('e.g.0', 'e.g.o')
|
compact = compact.replace('e.g.0', 'e.g.o')
|
||||||
|
compact = re.sub(r'fl[o0]{2}r', 'floor', compact)
|
||||||
text = LABELS.get(compact, raw)
|
text = LABELS.get(compact, raw)
|
||||||
|
screen = state.get('screen', {})
|
||||||
|
if item.get('x', 0) > screen.get('w', 1920) * .65 and item.get('y', 0) > screen.get('h', 1080) * .5:
|
||||||
|
if compact in ('winrate', 'damage'):
|
||||||
|
text = '胜率' if compact == 'winrate' else '伤害'
|
||||||
|
elif compact == 'win' and any(
|
||||||
|
re.sub(r'\s+', '', other['text']).lower() in ('rate', 'bate')
|
||||||
|
and abs(other['x'] - item['x']) < 40
|
||||||
|
and 0 < other['y'] - item['y'] < 35 for other in source_items):
|
||||||
|
text = '胜率'
|
||||||
if compact == 'enhance' and any(re.sub(r'\s+', '', other['text']).lower() == 'gifts'
|
if compact == 'enhance' and any(re.sub(r'\s+', '', other['text']).lower() == 'gifts'
|
||||||
and abs(other['x'] - item['x']) < 80 and 0 < other['y'] - item['y'] < 70
|
and abs(other['x'] - item['x']) < 80 and 0 < other['y'] - item['y'] < 70
|
||||||
for other in source_items):
|
for other in source_items):
|
||||||
@@ -93,6 +105,13 @@ def normalize(state):
|
|||||||
('Heathcliff','希斯克利夫'), ('Outis','奥提斯'), ('Gregor','格里高尔'),
|
('Heathcliff','希斯克利夫'), ('Outis','奥提斯'), ('Gregor','格里高尔'),
|
||||||
('Ryoshu','良秀'), ('Faust','浮士德')]:
|
('Ryoshu','良秀'), ('Faust','浮士德')]:
|
||||||
text = text.replace(english, chinese)
|
text = text.replace(english, chinese)
|
||||||
|
text = re.sub(r'Max\s*HP', '体力上限', text, flags=re.I)
|
||||||
|
text = re.sub(r'Defense\s*Level', '防御等级', text, flags=re.I)
|
||||||
|
if re.fullmatch(r'\d+/\d+', compact) and any(
|
||||||
|
re.sub(r'\s+', '', other['text']).lower() in ('select', '选择')
|
||||||
|
and 0 < item['x'] - other['x'] < 150
|
||||||
|
and abs(item['y'] - other['y']) < 30 for other in source_items):
|
||||||
|
text = '选择' + compact
|
||||||
if text != raw:
|
if text != raw:
|
||||||
item['original_text'] = raw
|
item['original_text'] = raw
|
||||||
item['text'] = text
|
item['text'] = text
|
||||||
|
|||||||
Reference in New Issue
Block a user