Added resource table plugin
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

This commit is contained in:
2026-01-31 10:23:20 +01:00
parent cd150a4513
commit 158e18f1fe
182 changed files with 9266 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
@tool
extends "res://example/Random Upgrades/upgrade_data.gd"
@export var weapon_damage := 0.0
@export var weapon_cooldown := 0.0
@export var weapon_dps := 0.0:
set(v):
weapon_damage = v * weapon_cooldown
get:
return weapon_damage / weapon_cooldown if weapon_cooldown != 0.0 else 0.0
func _validate_property(property: Dictionary) -> void:
if property.name == &"weapon_dps":
# Show in inspector, but don't save into resource file.
property.usage = PROPERTY_USAGE_EDITOR