1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-15 11:43:08 +08:00

Add: island production planner

This commit is contained in:
guoh064
2026-06-14 00:20:19 +08:00
parent 083054bad0
commit 5c977304a6
6 changed files with 1283 additions and 12 deletions

View File

@@ -306,6 +306,10 @@ class IslandProduction(IslandRecipe, IslandDock):
slot_finish_time = self.config.cross_get("IslandProduction.Storage.Storage.SlotFinishTime", default={})
self.slot_finish_time = {int(k): datetime.fromisoformat(v) for k, v in slot_finish_time.items()}
self.claim_all_rewards()
yaml_text = self.config.cross_get("IslandProduction.IslandProduction.DailyBufferItems", "")
if not yaml_text or yaml_text == "{}":
logger.critical('No daily buffer items found in config, please run Island Production Planner first')
raise RequestHumanTakeover('No daily buffer items found in config, please run Island Production Planner first')
self.dispatch_all()
next_run_time = list(self.slot_finish_time.values())
with self.config.multi_set():