diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-08 13:50:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-08 13:50:46 +0200 |
commit | 3226addea9b2228ee75b84fc5165771c1935dd99 (patch) | |
tree | 5c851120431211ca79a00ddb98f1ff95180c09a0 /client/map/items/food_processor.gd | |
parent | cd053cb7813160550bd83870c2b23604d147a8bd (diff) | |
download | hurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar hurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar.bz2 hurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar.zst |
add item contents
Diffstat (limited to 'client/map/items/food_processor.gd')
-rw-r--r-- | client/map/items/food_processor.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index 81886ae7..67632fb4 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -19,10 +19,13 @@ extends Item var time := 0. var processing: CPUParticles3D = load("res://map/items/processing.tscn").instantiate() -func _init(owned_by_: Node3D): +func _init(owned_by_: Node3D, contents: Array[String]): super(owned_by_) add_child(load("res://map/items/food_processor.tscn").instantiate()) add_child(processing) + # TODO + # for c in contents: + # base.add_child(ItemFactory.produce(c)) func _process(delta: float): super(delta) |