diff --git a/scripts/Globals.gd b/scripts/Globals.gd index a59d59d..3bbce06 100644 --- a/scripts/Globals.gd +++ b/scripts/Globals.gd @@ -49,6 +49,12 @@ class Ability: DOTE } +class Weapon: + enum WeaponType { + SWORD, + BOW, + } + func debug_print(value: String) -> void: if OS.is_debug_build(): print(value) diff --git a/scripts/Player.gd b/scripts/Player.gd index 2ff20d7..9d5cf62 100644 --- a/scripts/Player.gd +++ b/scripts/Player.gd @@ -4,6 +4,9 @@ extends VBoxContainer var area_exp := 0.0 +var current_health : int +var resource_type : String +var current_resource : int func _ready() -> void: diff --git a/scripts/PlayerState.gd b/scripts/PlayerState.gd index 130b8a3..939f4a5 100644 --- a/scripts/PlayerState.gd +++ b/scripts/PlayerState.gd @@ -6,4 +6,7 @@ extends Node @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