This commit is contained in:
Andriy Yednarovych
2026-02-22 19:26:26 +01:00
parent fd1ff19c4c
commit e877c5f058
211 changed files with 9385 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
class_name ItemData extends Resource
@export var name := ""
@export_multiline var description := ""
@export var texture: Texture2D
@export_category("Item user effects")
@export var effects: Array[ItemEffect]
func use() -> bool:
if effects.is_empty():
return false
for effect in effects:
if effect:
effect.use()
return true

View File

@@ -0,0 +1 @@
uid://rgpcvn78hiod