semi-idle-arpg/scripts/PlayerState.gd

15 lines
433 B
GDScript

# singleton to store player state/values
# everything contained here needs to be utilized in many places or saved
# between play sessions
extends Node
var constitution := 1
var experience := 0.0
var level := 1.0
var max_health := constitution * 100
# TEST: change current health to var on player and use signals to take damage?
# var current_health := max_health
var max_resource := 100
var weapon_type: Globals.Weapon.WeaponType