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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user