Paint brush
This commit is contained in:
parent
6a7d3d0e45
commit
1c20d54651
4 changed files with 21 additions and 21 deletions
|
@ -5,5 +5,5 @@ const test_item :=preload("res://generic/items/dbg_item.tres")
|
|||
func _process(_delta: float) -> void:
|
||||
for point in [Vector2(-1,0),Vector2(1,0),Vector2(0,1),Vector2(0,-1)]:
|
||||
var found_structure = get_parent().get_relative(point)
|
||||
if found_structure:
|
||||
if found_structure and found_structure.inventory:
|
||||
found_structure.inventory.add(Stack.new(test_item,1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue