Files
GGJ26/example/Random Upgrades/upgrade_data.gd
minimata 158e18f1fe
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 1m13s
Added resource table plugin
2026-01-31 10:23:20 +01:00

31 lines
842 B
GDScript

@tool
class_name UpgradeData
extends Resource
enum Attributes {
Strength = 0,
Magic,
Endurance,
Agility,
Luck,
Mastery = 128,
}
@export var color1 := Color.WHITE
@export var max_duplicates := 0
@export var tags : Array[String]
@export_enum("Weapon:0", "Passive:1", "Mastery:16") var type := 0
@export var attributes : Array[Attributes]
@export var icon : Texture
@export var custom_scene : PackedScene
@export var prerequisites : Array[UpgradeData]
@export var color2 := Color.WHITE
@export var base_weight := 10.0
@export var is_notable := false
@export_multiline var multiplier_per_tag := ""
@export_multiline var multiplier_if_tag_present := ""
@export_multiline var multiplier_if_tag_not_present := ""
@export_multiline var max_tags_present := ""
@export var list_item_delimeter := " "
@export var list_row_delimeter := ";"