1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-17 04:18:53 +08:00

Opt: use yellow_coins_preserve aggressively

This commit is contained in:
guoh064
2026-06-12 15:51:29 +08:00
parent f64a702270
commit 10dd242c82
6 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import typing as t
from datetime import datetime, timedelta
from module.base.decorator import cached_property
import module.config.server as server
from module.base.timer import Timer
from module.config.config import Function
@@ -60,6 +61,13 @@ class OSStatus(UI):
tasks = SelectedGrids(self.config.pending_task + self.config.waiting_task).filter(func).sort('next_run')
return tasks.first_or_none()
@cached_property
def yellow_coins_preserve(self):
if self.is_cl1_enabled:
return 100000
else:
return 35000
def get_yellow_coins(self) -> int:
yellow_coins = 0
timeout = Timer(2, count=3).start()