initial steps to adding ability resources

This commit is contained in:
tonydero 2024-10-23 20:58:44 -06:00
parent 79b699887e
commit e752b512ec
3 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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