fixed a bug with random npc generation in the console

This commit is contained in:
evilchili 2024-01-16 19:21:54 -08:00
parent c5dd24871d
commit 295af677c8

View File

@ -213,7 +213,7 @@ class DMShell(BasePrompt):
""" """
Generate an NPC commoner 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") self.console.print(char.description + "\n")
if char.personality: if char.personality:
self.console.print(f"Personality: {char.personality}\n") self.console.print(f"Personality: {char.personality}\n")