diff options
Diffstat (limited to 'UI/tower_configuration.gd')
-rw-r--r-- | UI/tower_configuration.gd | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/UI/tower_configuration.gd b/UI/tower_configuration.gd index 9eb12cd..7031de5 100644 --- a/UI/tower_configuration.gd +++ b/UI/tower_configuration.gd @@ -23,13 +23,6 @@ func _on_texture_rect_gui_input(event: InputEvent) -> void: var builder_element_scene = preload("res://Game/States/Build/BuilderElement.tscn") var builder_element = builder_element_scene.instantiate() - var tower = preload("res://Towers/Tower.tscn").instantiate() as Tower - tower.attack_range = [ - Client.stage.map.tile_set.tile_size.x * 2, - Client.stage.map.tile_set.tile_size.x * 3, - Client.stage.map.tile_set.tile_size.x * 4, - ].pick_random() - - builder_element.element = tower + builder_element.element = preload("res://Towers/Tower.tscn") get_tree().current_scene.add_child(builder_element) state.current_builder_element = builder_element |