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

Add: [CN, JP] island recipe execution with shop jump

This commit is contained in:
guoh064
2026-06-14 00:20:19 +08:00
parent 2148d722b5
commit 4fac1e907a
16 changed files with 798 additions and 4 deletions

View File

@@ -92,10 +92,6 @@ def load_hard_floor_items(hard_floor_items_yaml=None):
return load_item_mapping(hard_floor_items_yaml, config_name='HardFloorItems')
def load_request_buffer_items(request_buffer_items_yaml=None):
return load_item_mapping(request_buffer_items_yaml, config_name='RequestBufferItems')
def normalize_technology_status(technology_status=None):
if not technology_status:
return {}
@@ -329,6 +325,18 @@ def get_target_stock_load_rate(stock, reserve, target_deadlines):
return rate_per_day
def get_production_target_stock(hard_floor, reserve, daily_buffer):
"""Return the recipe replenishment target, including the soft daily buffer."""
return max(hard_floor, 0) + max(reserve, 0) + max(daily_buffer, 0)
def get_order_effective_stock(stock, hard_floor, reserve=0, priority=False):
"""Return stock available to an order under the current priority policy."""
if priority:
return stock
return stock - max(hard_floor, 0) - max(reserve, 0)
def is_integer_value(value):
if isinstance(value, (int, np.integer)):
return True