fix perk pool losing sync with available_perks after archetype pick
parent
882d44264a
commit
960a8612b4
|
|
@ -62,7 +62,8 @@ func select_perk(perk):
|
|||
_spawn_level_up_particles(get_node("/root/Game/World/Player").global_position)
|
||||
perks.erase(perk)
|
||||
if perk.archetype_slot != "":
|
||||
perks = perks.filter(func(p): return p.archetype_slot != perk.archetype_slot)
|
||||
for p in perks.filter(func(p): return p.archetype_slot == perk.archetype_slot):
|
||||
perks.erase(p)
|
||||
for child in $HBoxContainer.get_children():
|
||||
child.animate_out()
|
||||
var tween = create_tween()
|
||||
|
|
|
|||
Loading…
Reference in New Issue