13 lines
441 B
GDScript
13 lines
441 B
GDScript
# singleton to store player state/values
|
|
extends Node
|
|
|
|
|
|
@export var player_constitution := 1
|
|
@export var player_exp := 0.0
|
|
@export var player_level := 1.0
|
|
@export var player_maxhealth := player_constitution * player_level * 100
|
|
# TEST: change current health to var on player and use signals to take damage?
|
|
@export var player_currenthealth := player_maxhealth
|
|
var player_maxresource := 100
|
|
var player_weapon_type : Globals.Weapon.WeaponType
|