From eecdd771d0df0d17460cb2124f9181a54ecf2c44 Mon Sep 17 00:00:00 2001 From: evilchili Date: Fri, 19 Jan 2024 14:26:12 -0800 Subject: [PATCH] fix bug in random_npc --- npc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/__init__.py b/npc/__init__.py index d7117a2..3332bda 100644 --- a/npc/__init__.py +++ b/npc/__init__.py @@ -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()