From b7c31e16e676dfc42b982b7598656431d160b39a Mon Sep 17 00:00:00 2001 From: sui-feng-cb <2518179942@qq.com> Date: Mon, 2 Feb 2026 22:06:43 +0800 Subject: [PATCH] Opt: sort action point boxes by rarity --- module/os_handler/action_point.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/module/os_handler/action_point.py b/module/os_handler/action_point.py index 1e4451c70..0954d86eb 100644 --- a/module/os_handler/action_point.py +++ b/module/os_handler/action_point.py @@ -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):