fixing random_npc when overriding ancestries
This commit is contained in:
+2
-2
@@ -30,5 +30,5 @@ def load_ancestry_pack(module_name: str = "") -> ModuleType:
|
||||
|
||||
def random_npc(ancestries: list = []) -> NPC:
|
||||
if not ancestries:
|
||||
_, ancestries = load_ancestry_pack()
|
||||
return random.choice(list(ancestries.values())).NPC()
|
||||
ancestries = list(load_ancestry_pack()[1].values())
|
||||
return random.choice(ancestries).NPC()
|
||||
|
||||
Reference in New Issue
Block a user