1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:39:25 +08:00

add: flexible action point upper limit when running OpsiHazard1Leveling

This commit is contained in:
0O0o0oOoO00
2025-11-16 21:08:10 +08:00
parent ccf9782b9b
commit e1bc62f1de
10 changed files with 26 additions and 1 deletions

View File

@@ -902,6 +902,7 @@ class OperationSiren(OperationSiren):
full_config = self.config.full_config
no_opsi_meowfficer_farming = full_config.OpsiHazard1Leveling_OpsiHazard1Leveling_NoOpsiMeowfficerFarming
no_yellow_coin_limit = full_config.OpsiHazard1Leveling_OpsiHazard1Leveling_NoYellowCoinLimit
action_point_upper_limit = full_config.OpsiHazard1Leveling_OpsiHazard1Leveling_ActionPointUpperLimit
if no_opsi_meowfficer_farming:
logger.info(f"No OpsiMeowfficerFarming is enabled in OpsiHazard1Leveling")
@@ -936,7 +937,7 @@ class OperationSiren(OperationSiren):
if self.config.OpsiGeneral_BuyActionPointLimit > 0:
keep_current_ap = False
self.action_point_set(cost=70, keep_current_ap=keep_current_ap, check_rest_ap=True)
if self._action_point_total >= 3000 and not no_opsi_meowfficer_farming:
if self._action_point_total >= action_point_upper_limit and not no_opsi_meowfficer_farming:
with self.config.multi_set():
self.config.task_delay(server_update=True)
if not self.is_in_opsi_explore():