semi-idle-arpg/scripts/PlayerState.gd

17 lines
424 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 player_name := "Player"
var constitution := 1
var experience := 0.0
var level := 1.0
var base_health := 100
var base_resource := 100
var current_resource := 100
var weapon_type: Globals.Weapon.WeaponType
var zone_duration := 0
var world_tier := Globals.World.Tier.I