summaryrefslogtreecommitdiff
path: root/Units/Unit.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-06 12:27:51 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-06 12:27:51 +0100
commit6f17d6c1d458275e8744d57a7f433cc3eb5434d7 (patch)
tree588434069b86aa079a0b36c78367dfb14003321e /Units/Unit.gd
parentc8f674ac6fa0914d9e448d2929f2385cdad80d60 (diff)
next commit
Diffstat (limited to 'Units/Unit.gd')
-rw-r--r--Units/Unit.gd12
1 files changed, 6 insertions, 6 deletions
diff --git a/Units/Unit.gd b/Units/Unit.gd
index f5bb6a6..b575e01 100644
--- a/Units/Unit.gd
+++ b/Units/Unit.gd
@@ -334,10 +334,10 @@ func to_network_data() -> NetworkData:
data.target_path = target.get_path()
- #data.hp = hp
+ data.hp = hp
- #data.base_speed = base_speed
- #data.speed = speed
+ data.base_speed = base_speed
+ data.speed = speed
#data.texture_path = sprite.texture.resource_path
data.sprite_frames_path = sprite.sprite_frames.resource_path
@@ -373,10 +373,10 @@ static func from_network_data(data: NetworkData) -> Unit:
#unit.target = unit.get_tree().current_scene.get_node(data.target_path)
unit.target_path = data.target_path
- #unit.hp = data.hp
+ unit.hp = data.hp
- #unit.base_speed = data.base_speed
- #unit.speed = data.speed
+ unit.base_speed = data.base_speed
+ unit.speed = data.speed
#unit.sprite.texture = load(data.texture_path)
unit.sprite.sprite_frames = load(data.sprite_frames_path)