mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-01 12:44:54 +08:00
Opt: sort action point boxes by rarity
This commit is contained in:
@@ -401,13 +401,7 @@ class ActionPointHandler(UI, MapEventHandler):
|
|||||||
raise ActionPointLimit
|
raise ActionPointLimit
|
||||||
|
|
||||||
# Sort action point boxes
|
# Sort action point boxes
|
||||||
box = []
|
box = [index for index in range(1, 4) if self._action_point_box[index] > 0]
|
||||||
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)
|
|
||||||
|
|
||||||
# Use action point boxes
|
# Use action point boxes
|
||||||
if len(box):
|
if len(box):
|
||||||
|
|||||||
Reference in New Issue
Block a user