aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd
index 1a5e8ff6..9117be18 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -183,6 +183,7 @@ func handle_packet(p):
if "tile" in p.location:
var t: Tile = map.get_tile_instance(p.location.tile)
var i = ItemFactory.produce(item_names[p.item], t.item_base)
+ i.animate_spawn()
i.position = t.item_base.global_position
add_child(i)
i.name = item_names[p.item]
@@ -191,6 +192,7 @@ func handle_packet(p):
var pl: Player = players[p.location.player[0]]
var h = p.location.player[1]
var i = ItemFactory.produce(item_names[p.item], pl.hand_base[h])
+ i.animate_spawn()
i.position = pl.hand_base[h].global_position
add_child(i)
i.name = item_names[p.item]