fix bug in random_npc
This commit is contained in:
parent
f4a745aa75
commit
eecdd771d0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user