mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 00:52:22 +00:00
Fix: 修复演习敌人排序, 现在相同权重时会优先最左
This commit is contained in:
parent
8077760542
commit
10b43b44fa
@ -81,6 +81,6 @@ class OpponentChoose(UI):
|
||||
appear_button=EXERCISE_PREPARATION, skip_first_screenshot=True)
|
||||
|
||||
def _opponent_sort(self):
|
||||
priority = np.argsort([x.priority for x in self.opponents])[::-1]
|
||||
priority = np.argsort([- x.priority for x in self.opponents])
|
||||
logger.attr('Order', str(priority))
|
||||
return priority
|
||||
|
Loading…
Reference in New Issue
Block a user