extends "res://buildings/BuildingVisualBase.gd" func _ready() -> void: for part in SHIP_PARTS: _hull_parts.append(PackedVector2Array(part.points)) _build_crafter_pieces() queue_redraw() # #117: the line runs when there is something on it. An idle crafter with # its cranes swinging read as a factory working on nothing. func is_working() -> bool: var id: int = building_id() if id == 0: return false var state: Node = _state() return state != null and state.pending_orders(id) > 0 func apply_animation() -> void: _animate_crafter() func _draw() -> void: register_draw() _draw_crafter_static(self)