fixed spell library reference in debug menu
parent
dd202b719a
commit
d995df7279
|
|
@ -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])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue