1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Opt: sort action point boxes by rarity

This commit is contained in:
sui-feng-cb
2026-02-02 22:06:43 +08:00
parent f20aab0463
commit b7c31e16e6

View File

@@ -401,13 +401,7 @@ class ActionPointHandler(UI, MapEventHandler):
raise ActionPointLimit
# Sort action point boxes
box = []
for index in [1, 2, 3]:
if self._action_point_box[index] > 0:
if self._action_point_current + ACTION_POINT_BOX[index] >= 200:
box.append(index)
else:
box.insert(0, index)
box = [index for index in range(1, 4) if self._action_point_box[index] > 0]
# Use action point boxes
if len(box):