mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 18:05:26 +00:00
Fix: Multiple right doors are classified as left and right doors
This commit is contained in:
parent
caf3af9973
commit
5f9ec0ed57
@ -253,8 +253,17 @@ class RogueExit(CombatInteract):
|
|||||||
else:
|
else:
|
||||||
return None, results[0].matched_keyword
|
return None, results[0].matched_keyword
|
||||||
else:
|
else:
|
||||||
results = [r for d, r in sorted(zip(directions, results))]
|
left = [r for d, r in sorted(zip(directions, results)) if d < 0]
|
||||||
return results[0].matched_keyword, results[-1].matched_keyword
|
right = [r for d, r in sorted(zip(directions, results)) if d >= 0]
|
||||||
|
if len(left):
|
||||||
|
left = left[0].matched_keyword
|
||||||
|
else:
|
||||||
|
left = None
|
||||||
|
if len(right):
|
||||||
|
right = right[-1].matched_keyword
|
||||||
|
else:
|
||||||
|
right = None
|
||||||
|
return left, right
|
||||||
|
|
||||||
def choose_door(self, left_door: MapPlane | None, right_door: MapPlane | None) -> str | None:
|
def choose_door(self, left_door: MapPlane | None, right_door: MapPlane | None) -> str | None:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user