codium todo test, fix new call after having removed constructor
This commit is contained in:
parent
5e51ee43b2
commit
eea96ea633
@ -1,6 +1,7 @@
|
||||
class_name Character
|
||||
extends Node2D
|
||||
|
||||
# TODO: do the thing
|
||||
|
||||
@export var charName := "Character"
|
||||
@export var maxHealth := 10
|
||||
|
@ -11,7 +11,7 @@ func _on_exit_button_pressed() -> void:
|
||||
func _on_test_button_pressed() -> void:
|
||||
var rand_difficulty = NPC.npcDifficulties.values().pick_random()
|
||||
var rand_tier = NPC.npcTiers.values().pick_random()
|
||||
var anNPC = NPC.new(rand_difficulty, rand_tier)
|
||||
var anNPC = NPC.new()
|
||||
%TestNMEMaxHealthVal.text = str(anNPC.maxHealth)
|
||||
#TestEMaxHealthVal.label_settings = LabelSettings.new()
|
||||
%TestNMEName.text = str(NPC.npcDifficulties.find_key(anNPC.npcDifficulty))
|
||||
|
Loading…
Reference in New Issue
Block a user