1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00
This commit is contained in:
2024-08-17 10:04:56 +08:00
83 changed files with 1545 additions and 258 deletions

View File

@@ -380,10 +380,18 @@ class ActionPointHandler(UI, MapEventHandler):
# Buy action points
if self.config.OpsiGeneral_BuyActionPointLimit > 0 and not buy_checked:
if self.action_point_buy(preserve=self.config.OpsiGeneral_OilLimit):
self.action_point_safe_get()
continue
else:
buy_checked = True
# Recheck if total ap is less than cost
# If it is, skip using boxes
if self._action_point_total < cost:
logger.info('Not having enough action points')
self.action_point_quit()
raise ActionPointLimit
# Sort action point boxes
box = []
for index in [1, 2, 3]: