mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Upd: cl1_enough_yellow_coins
This commit is contained in:
@@ -38,6 +38,11 @@ class OSStatus(UI):
|
||||
def is_cl1_enabled(self) -> bool:
|
||||
return self.config.is_task_enabled('OpsiHazard1Leveling')
|
||||
|
||||
@property
|
||||
def cl1_enough_yellow_coins(self) -> bool:
|
||||
return self.get_yellow_coins() >= self.config.cross_get(
|
||||
keys='OpsiHazard1Leveling.OpsiHazard1Leveling.OperationCoinsPreserve')
|
||||
|
||||
@property
|
||||
def nearest_task_cooling_down(self) -> t.Optional[Function]:
|
||||
"""
|
||||
@@ -101,6 +106,5 @@ class OSStatus(UI):
|
||||
logger.info(f'Yellow coins: {self._shop_yellow_coins}, purple coins: {self._shop_purple_coins}')
|
||||
|
||||
def cl1_task_call(self):
|
||||
if self.is_cl1_enabled and self.get_yellow_coins() > self.config.cross_get(
|
||||
keys='OpsiHazard1Leveling.OpsiHazard1Leveling.OperationCoinsPreserve'):
|
||||
if self.is_cl1_enabled and self.cl1_enough_yellow_coins:
|
||||
self.config.task_call('OpsiHazard1Leveling')
|
||||
|
||||
Reference in New Issue
Block a user