semi-idle-arpg/scripts/PlayerState.gd

15 lines
431 B
GDScript3
Raw Normal View History

2024-10-18 16:17:39 -06:00
# singleton to store player state/values
# everything contained here needs to be utilized in many places or saved
# between play sessions
2024-10-18 16:17:39 -06:00
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