summaryrefslogtreecommitdiff
path: root/Game/Client.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Client.gd')
-rw-r--r--Game/Client.gd17
1 files changed, 10 insertions, 7 deletions
diff --git a/Game/Client.gd b/Game/Client.gd
index 98a8e6c..f4fd1e6 100644
--- a/Game/Client.gd
+++ b/Game/Client.gd
@@ -6,6 +6,8 @@ signal stage_state_changed(state: State)
@warning_ignore("unused_signal")
signal placed_tower(tower: Tower)
+signal multi_select_finished
+
var state: State :
set(value):
@@ -35,13 +37,13 @@ func place_tower(tower: Tower):
tower.owner_id = network_id
tower.name = "Tower@" + str(network_id) + "@" + str(Time.get_ticks_usec())
- tower.attack_range = [
- current_stage.map.tile_set.tile_size.x * 2,
- current_stage.map.tile_set.tile_size.x * 3,
- current_stage.map.tile_set.tile_size.x * 4,
- ].pick_random()
- tower.attack_power = [1, 2, 3, 4].pick_random()
- tower.attack_speed = [1, 2, 3, 4].pick_random()
+ #tower.attack_range = [
+ #current_stage.map.tile_set.tile_size.x * 2,
+ #current_stage.map.tile_set.tile_size.x * 3,
+ #current_stage.map.tile_set.tile_size.x * 4,
+ #].pick_random()
+ #tower.attack_power = [1, 2, 3, 4].pick_random()
+ #tower.attack_speed = [1, 2, 3, 4].pick_random()
current_stage.place_tower.rpc(inst_to_dict(tower.to_network_data()))
@@ -69,6 +71,7 @@ func multi_select(layer: int):
selection_area.select.connect(func(nodes):
for node in nodes:
Client.select_tower(node)
+ multi_select_finished.emit()
)
get_tree().current_scene.add_child(selection_area)