From c469d254bd2cd0084b4c6361ec9009a2c7b78491 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:47:56 +0800 Subject: [PATCH] Fix: Special match Luofu_Cloudford_F1_X281Y873 --- tasks/rogue/route/loader.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/rogue/route/loader.py b/tasks/rogue/route/loader.py index 588a9a447..3a8544a75 100644 --- a/tasks/rogue/route/loader.py +++ b/tasks/rogue/route/loader.py @@ -173,12 +173,20 @@ class RouteLoader(RogueUI, MinimapWrapper, RouteLoader_, CharacterSwitch): 'Occurrence_Luofu_ArtisanshipCommission_F1_X169Y491', ] and similarity > 0.1: return True + # Luofu_Cloudford_F1_X283Y865 and its equivalents # INFO 21:27:00.816 │ Best 3 nearby predictions: [ # ('Combat_Herta_SupplyZone_F2_X45Y369', 0.184, (41.0, 369.1)), # ('Combat_Luofu_Cloudford_F1_X281Y873', 0.149, (281.8, 869.6)), # ('Combat_Luofu_Cloudford_F1_X283Y865', 0.149, (281.8, 869.6))] - if route.name in ['Combat_Luofu_Cloudford_F1_X283Y865', 'Occurrence_Luofu_Cloudford_F1_X283Y865'] \ - and similarity > 0.05: + # INFO | Best 3 predictions: [('Combat_Herta_SupplyZone_F2_X45Y369', 0.149, (43.4, 369.3)), + # ('Combat_Luofu_Cloudford_F1_X241Y947', 0.138, (198.6, 956.8)), + # ('Combat_Luofu_Cloudford_F1Rogue_X59Y405', 0.134, (81.0, 397.4))] + if route.name in [ + 'Combat_Luofu_Cloudford_F1_X283Y865', + 'Occurrence_Luofu_Cloudford_F1_X283Y865', + 'Combat_Luofu_Cloudford_F1_X281Y873', + 'Occurrence_Luofu_Cloudford_F1_X281Y873', + ] and similarity > 0.05: return True return False