Items integrados y mejoras

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-21 10:40:14 +02:00
1 parent 1fbfdf3f8a
commit 8fc8925151
41 files changed
+493 -74

No files matched your search

+4 -1
View File
@@ -4,12 +4,15 @@ class_name PickupData
@export_category("Identity")
@export var id: StringName = &"pickup"
@export var display_name: String = "Item"
@export_multiline var description: String = ""
@export_category("Visuals")
@export var icon: Texture2D
@export var color: Color = Color(1.0, 0.7, 0.2)
@export_category("Effect")
@export_enum("heal", "speed_boost") var effect_type: String = "heal"
## heal and special_charge are instant; shield absorbs one hit; others expire.
## value is an absolute amount for heal/charge, a fractional bonus for timed buffs.
@export_enum("heal", "speed_boost", "damage_boost", "special_charge", "shield", "damage_reduction", "jump_boost", "air_damage_boost") var effect_type: String = "heal"
@export var value: float = 0.0
@export var duration: float = 0.0