Paint brush

This commit is contained in:
Rendo 2025-10-15 00:10:51 +05:00
commit 1c20d54651
4 changed files with 21 additions and 21 deletions

View file

@ -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))