Skip to content

Commit

Permalink
Fix: 修复演习敌人排序, 现在相同权重时会优先最左
Browse files Browse the repository at this point in the history
  • Loading branch information
LmeSzinc committed May 13, 2020
1 parent 8077760 commit 10b43b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/exercise/opponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ def _opponent_fleet_check_all(self):
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

0 comments on commit 10b43b4

Please sign in to comment.