diff options
author | nokoe <nokoe@mailbox.org> | 2025-10-06 23:08:19 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-10-06 23:08:53 +0200 |
commit | 41a176ee24495007131121efcfd19cce4613e40a (patch) | |
tree | 93d365460f6139de7713e9ebab427f2d7ef1e7e0 /client/map/items/glass.gd | |
parent | 176e6bc6c4c29bea3be2aceca99743b997c76c97 (diff) | |
download | hurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar hurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar.bz2 hurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar.zst |
implement add_contents of remaining container items
Diffstat (limited to 'client/map/items/glass.gd')
-rw-r--r-- | client/map/items/glass.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/map/items/glass.gd b/client/map/items/glass.gd index 900a3eba..b9582a3a 100644 --- a/client/map/items/glass.gd +++ b/client/map/items/glass.gd @@ -16,10 +16,11 @@ class_name Glass extends Item -func _init(owned_by_: Node3D, contents: Array): +func _init(owned_by_: Node3D): super(owned_by_) add_child(load("res://map/items/glass.tscn").instantiate()) - + +func add_contents(contents: Array[String]): for i in contents: var item: Item match i: |