9 lines
282 B
GDScript
9 lines
282 B
GDScript
class_name HealthUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
|
|
|
func _init() -> void:
|
|
upgradeName = "Increase Health"
|
|
description = "Increase the amount of health you can have by 10"
|
|
|
|
func select():
|
|
if Globals.getPlayer() != null:
|
|
Globals.getPlayer().inceraseMaxhealth(10)
|