From b6d022866f1a83ba7c6e28bb03aede4194e5ec69 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:40:55 +0800 Subject: [PATCH] Upd: _position_match_special --- tasks/base/main_page.py | 2 ++ tasks/rogue/route/loader.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/base/main_page.py b/tasks/base/main_page.py index 07aa90278..4ea355919 100644 --- a/tasks/base/main_page.py +++ b/tasks/base/main_page.py @@ -40,6 +40,8 @@ class OcrPlaneName(OcrWhiteLetterOnComplexBackground): result = re.sub(r'区域.*战$', '区域战斗', result) # 区域-事 result = re.sub(r'区域.*事$', '区域事件', result) + # 区域-战 + result = re.sub(r'区域.*交$', '区域交易', result) # 区域-事伴, 区域-事祥 result = re.sub(r'事[伴祥]', '事件', result) # 医域-战斗 diff --git a/tasks/rogue/route/loader.py b/tasks/rogue/route/loader.py index 3a8544a75..26e340629 100644 --- a/tasks/rogue/route/loader.py +++ b/tasks/rogue/route/loader.py @@ -165,7 +165,12 @@ class RouteLoader(RogueUI, MinimapWrapper, RouteLoader_, CharacterSwitch): # return True # Before Combat_Luofu_Cloudford_F1_X281Y873 - if route.name == [ + if route.name in [ + 'Occurrence_Jarilo_BackwaterPass_F1_X553Y643', + 'Combat_Jarilo_GreatMine_F1_X545Y513', + ] and similarity > 0.20: + return True + if route.name in [ 'Combat_Herta_StorageZone_F1_X273Y92', 'Occurrence_Herta_StorageZone_F1_X273Y93', 'Occurrence_Jarilo_RivetTown_F1_X289Y97',