Refactor multi-resource UI and transfers

This commit is contained in:
Loïc Wisniewski 2026-08-14 11:54:31 +02:00
commit 8231e165ff
20 changed files with 648 additions and 435 deletions

View file

@ -162,8 +162,11 @@ func _process(delta: float) -> bool:
stage = 6
return false
6:
# Long enough for the build itself, which #23 made take time.
if elapsed < game_state.build_time(GameState.PRODUCT_SHIP) * 3.0:
# Long enough for both construction and the physical delivery trip
# from this remote crafter to the mothership hangar.
var delivery_time: float = CRAFTER_AT.distance_to(MOTHERSHIP_AT) \
/ GameState.VESSEL_DELIVERY_SPEED
if elapsed < game_state.build_time(GameState.PRODUCT_SHIP) * 3.0 + delivery_time + 0.5:
return false
# --- 5. the queued order completed off the fleet's own ore ---
if game_state.pending_orders(crafter_id) != 0: