fixed spell library reference in debug menu

main
Artur David 2026-06-02 09:10:55 +02:00
parent dd202b719a
commit d995df7279
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ extends CanvasLayer
@onready var _witch = get_node("/root/Game/Witch") @onready var _witch = get_node("/root/Game/Witch")
@onready var _drop_manager = get_node("/root/Game/DropManager") @onready var _drop_manager = get_node("/root/Game/DropManager")
var _spell_library: SpellLibrary = SpellLibrary.new()
var _spell_dispatch: Dictionary var _spell_dispatch: Dictionary
var _lvl_disable_btn: Button var _lvl_disable_btn: Button
@ -74,7 +73,7 @@ func _build_ui() -> void:
hbox_time.add_child(btn) hbox_time.add_child(btn)
_add_section(vbox, "SPELLS") _add_section(vbox, "SPELLS")
for spell_id in _spell_library.recipes.keys(): for spell_id in SpellLibrary.recipes.keys():
if _spell_dispatch.has(spell_id): if _spell_dispatch.has(spell_id):
_add_button(vbox, spell_id.capitalize(), _spell_dispatch[spell_id]) _add_button(vbox, spell_id.capitalize(), _spell_dispatch[spell_id])