mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08: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)
|
appear_button=EXERCISE_PREPARATION, skip_first_screenshot=True)
|
||||||
|
|
||||||
def _opponent_sort(self):
|
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))
|
logger.attr('Order', str(priority))
|
||||||
return priority
|
return priority
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user