diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index a8f03cb..e7916df 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -126,7 +126,7 @@ func _ready(): for i in weaponStore.get_children(): i.free() weaponStore.add_child(ComponentManager.getWeapon("PurpleCrystal").instantiate()) - weaponStore.add_child(MathTool.randomChoiceFrom(ComponentManager.weapons).instantiate()) + weaponStore.add_child(MathTool.randomChoiceFrom(ComponentManager.weapons.values()).instantiate()) for i in weaponStore.get_children(): i.hide() weapons.append(i)