From 295af677c887b5329813abd06c40383ac4eef038 Mon Sep 17 00:00:00 2001 From: evilchili Date: Tue, 16 Jan 2024 19:21:54 -0800 Subject: [PATCH] fixed a bug with random npc generation in the console --- dmsh/shell/interactive_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmsh/shell/interactive_shell.py b/dmsh/shell/interactive_shell.py index c5ef564..9ed02ab 100644 --- a/dmsh/shell/interactive_shell.py +++ b/dmsh/shell/interactive_shell.py @@ -213,7 +213,7 @@ class DMShell(BasePrompt): """ Generate an NPC commoner """ - char = npc.random_npc([ANCESTRIES[parts[0]]] if parts else []) + char = npc.random_npc([ANCESTRIES[parts[0]]] if parts else list(ANCESTRIES.values())) self.console.print(char.description + "\n") if char.personality: self.console.print(f"Personality: {char.personality}\n")