Compose vessels from definitions and capabilities
This commit is contained in:
parent
0504b24d8d
commit
14081ad230
39 changed files with 705 additions and 386 deletions
9
VesselCargoComponent.gd
Normal file
9
VesselCargoComponent.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name VesselCargoComponent
|
||||
extends Node
|
||||
|
||||
var capability_id: String = "cargo"
|
||||
var capacity: int
|
||||
|
||||
func apply_stats() -> void:
|
||||
var state: Node = get_tree().root.get_node("GameState")
|
||||
capacity = int(state.vessel_stat(get_parent().vessel_type, "cargo_capacity"))
|
||||
Loading…
Reference in a new issue