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
VesselTransportComponent.gd
Normal file
9
VesselTransportComponent.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name VesselTransportComponent
|
||||
extends Node
|
||||
|
||||
var capability_id: String = "transport"
|
||||
var travel_speed: float
|
||||
|
||||
func apply_stats() -> void:
|
||||
var state: Node = get_tree().root.get_node("GameState")
|
||||
travel_speed = state.vessel_stat(get_parent().vessel_type, "transport_speed")
|
||||
Loading…
Reference in a new issue