initial steps to adding ability resources
This commit is contained in:
parent
79b699887e
commit
e752b512ec
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user