Fix: 修复演习敌人排序, 现在相同权重时会优先最左

This commit is contained in:
LmeSzinc 2020-05-13 11:05:26 +08:00
parent 8077760542
commit 10b43b44fa

View File

@ -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