aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/map/items/item.gd6
-rw-r--r--client/player/player.gd2
2 files changed, 8 insertions, 0 deletions
diff --git a/client/map/items/item.gd b/client/map/items/item.gd
index cd8fd75e..688308fe 100644
--- a/client/map/items/item.gd
+++ b/client/map/items/item.gd
@@ -42,5 +42,11 @@ func progress(p: float, warn: bool):
func finish(_warn: bool):
progress_instance.visible = false
+func take():
+ pass
+
+func put():
+ pass
+
static func base_position() -> Vector3:
return Vector3(0., 0., 0.)
diff --git a/client/player/player.gd b/client/player/player.gd
index b47216d6..237ce870 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -92,10 +92,12 @@ func take_item(tile: Tile):
if hand != null:
push_error("already holding an item")
var i = tile.take_item()
+ i.take()
set_item(i)
func put_item(tile: Tile):
var i = remove_item()
+ i.put()
tile.put_item(i)
func _process(delta):