diff options
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/game.gd b/client/game.gd index 74842768..f3c2f81c 100644 --- a/client/game.gd +++ b/client/game.gd @@ -62,7 +62,7 @@ func _ready(): ) mp.connect("set_tile_item", func(tile: Vector2i, item: int): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] var i = ItemFactory.produce(mp.item_names[item], t.item_base) add_child(i) i.name = mp.item_names[item] @@ -70,7 +70,7 @@ func _ready(): ) mp.connect("remove_tile_item", func(tile: Vector2i): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] t.take_item().queue_free() ) @@ -88,24 +88,24 @@ func _ready(): ) mp.connect("take_item", func(tile: Vector2i, player: int): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] var p: Player = players[player] p.take_item(t) ) mp.connect("put_item", func(tile: Vector2i, player: int): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] var p: Player = players[player] p.put_item(t) ) mp.connect("set_progress", func(tile: Vector2i, progress: float, warn: bool): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] t.progress(progress, warn) ) mp.connect("set_finished", func(tile: Vector2i, warn: bool): - var t: Floor = map.tile_by_pos[str(tile)] + var t: Tile = map.tile_by_pos[str(tile)] t.finish(warn) ) |