19 lines
725 B
GDScript
19 lines
725 B
GDScript
extends Resource
|
|
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")
|
|
## 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
|