mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 15:39:26 +08:00
Add: Call abyssal,strongholdo,obscure when yellow coins below 35000
This commit is contained in:
@@ -57,6 +57,8 @@ class OSCampaignRun(OSMapOperation):
|
||||
if get_os_reset_remain() > 0:
|
||||
self.config.task_delay(server_update=True)
|
||||
self.config.task_call('Reward')
|
||||
if self.is_cl1_enabled and self.get_yellow_coins() >= self.config.OS_NORMAL_YELLOW_COINS_PRESERVE:
|
||||
self.config.task_call('OpsiHazard1Leveling')
|
||||
else:
|
||||
logger.info('Just less than 1 day to OpSi reset, delay 2.5 hours')
|
||||
self.config.task_delay(minute=150, server_update=True)
|
||||
|
||||
@@ -444,6 +444,11 @@ class OperationSiren(OSMap):
|
||||
self.config.task_delay(server_update=True)
|
||||
if not self.is_in_opsi_explore():
|
||||
self.config.task_call('OpsiMeowfficerFarming')
|
||||
next_run = deep_get(self.config.data, "OpsiObscure.Scheduler.NextRun", default=DEFAULT_TIME)
|
||||
if next_run - datetime.now() > timedelta(minutes=27):
|
||||
self.config.task_call('OpsiAbyssal')
|
||||
self.config.task_call('OpsiStronghold')
|
||||
self.config.task_call('OpsiObscure')
|
||||
self.config.task_stop()
|
||||
else:
|
||||
logger.warning(f"Disable OpsiHazard1Leveling yellow coin limit : {IsDisableOpsiHazard1LevelingYellowCoinLimit}")
|
||||
|
||||
Reference in New Issue
Block a user