This commit is contained in:
Eric Vande Voort
2025-01-07 16:10:03 -06:00
commit 7eb0dea424
147 changed files with 9096 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
extends Resource
class_name Upgrade
@export var name: String = "Base Upgrade"
@export var description: String = "Base Description"
@export var unlocks: Array[Upgrade]
@export var cost: Dictionary = {
"star": 1
}
@export var purchased: bool = false
@export var tier: int = -1
func activate_upgrade() -> bool:
if DataHandler.has_upgrade_cost(self): return false
purchased = true
DataHandler.game_data.upgrades.append_array(unlocks)
return true