diff options
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd index efb75c9f..7289eed0 100644 --- a/client/game.gd +++ b/client/game.gd @@ -189,6 +189,9 @@ func handle_packet(p): var i = ItemFactory.produce(item_names[p.item], t.item_base) i.animate_spawn() i.position = t.item_base.global_position + i.rotation.y = t.item_base.global_rotation.y + PI + i.position_target = i.position + i.rotation_target = i.rotation.y add_child(i) i.name = item_names[p.item] t.set_item(i) @@ -198,6 +201,9 @@ func handle_packet(p): var i = ItemFactory.produce(item_names[p.item], pl.hand_base[h]) i.animate_spawn() i.position = pl.hand_base[h].global_position + i.rotation.y = pl.hand_base[h].global_rotation.y + i.position_target = i.position + i.rotation_target = i.rotation.y add_child(i) i.name = item_names[p.item] pl.set_item(i, h) |