From 5137dd483921d27f501db198e55b5d563db0ab7a Mon Sep 17 00:00:00 2001 From: nokoe Date: Mon, 24 Jun 2024 22:09:46 +0200 Subject: rotate object in food processor --- client/game.gd | 8 ++++---- client/map/items/food_processor.gd | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/game.gd b/client/game.gd index 70a3a371..48f393e0 100644 --- a/client/game.gd +++ b/client/game.gd @@ -29,7 +29,7 @@ func _ready(): Global.error_message = reason; $SceneTransition.instant_to("res://menu/error_menu.tscn") ) - + await mp.init if mp.player_id == -1: push_error("multiplayer has not been initialized") @@ -94,18 +94,18 @@ func _ready(): ) mp.connect("put_item", func(tile: Vector2i, player: int): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = 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: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.progress(progress, warn) ) mp.connect("set_finished", func(tile: Vector2i, warn: bool): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.finish(warn) ) diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index 1be3d591..f2226e5f 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -27,6 +27,7 @@ func progress(p: float, warn: bool): super(p, warn) processing.emitting = true processing.rotation.y += p * TAU + base.rotation.y += p * TAU func finish(warn: bool): super(warn) -- cgit v1.2.3-70-g09d2