From eea96ea633700202a1c321ecc0d627413bb76eb5 Mon Sep 17 00:00:00 2001 From: tonydero Date: Fri, 11 Oct 2024 19:26:49 -0600 Subject: [PATCH] codium todo test, fix new call after having removed constructor --- scripts/character.gd | 1 + scripts/test_scene.gd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/character.gd b/scripts/character.gd index be1d010..c9ba38d 100644 --- a/scripts/character.gd +++ b/scripts/character.gd @@ -1,6 +1,7 @@ class_name Character extends Node2D +# TODO: do the thing @export var charName := "Character" @export var maxHealth := 10 diff --git a/scripts/test_scene.gd b/scripts/test_scene.gd index 02522ed..c56726d 100644 --- a/scripts/test_scene.gd +++ b/scripts/test_scene.gd @@ -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))