fix bug in random_npc

This commit is contained in:
evilchili 2024-01-19 14:26:12 -08:00
parent f4a745aa75
commit eecdd771d0

View File

@ -30,5 +30,5 @@ def load_ancestry_pack(module_name: str = "") -> ModuleType:
def random_npc(ancestries: list = []) -> NPC:
if not ancestries:
ancestries = list(load_ancestry_pack()[0].values())
ancestries = list(load_ancestry_pack()[1].values())
return random.choice(ancestries).NPC()