adding malseids

This commit is contained in:
evilchili 2023-12-17 14:35:11 -08:00
parent 8fc99f0eb2
commit 0e2242e19a
2 changed files with 30 additions and 1 deletions

View File

@ -30,5 +30,5 @@ def load_ancestry_pack(module_name: str = "") -> ModuleType:
def random_npc(ancestries: list = []) -> NPC: def random_npc(ancestries: list = []) -> NPC:
if not ancestries: if not ancestries:
ancestries = list(load_ancestry_pack()[1].values()) ancestries = list(load_ancestry_pack()[0].values())
return random.choice(ancestries).NPC() return random.choice(ancestries).NPC()

29
npc/ancestries/malseid.py Normal file
View File

@ -0,0 +1,29 @@
import random
from npc import types
from language.languages import druidic
tail_traits = [
'small',
'clipped',
'stubby',
'stiff',
'strong',
'thick',
'thin',
]
class Malseid(types.NPC):
language = druidic
has_tail = True
@property
def tail(self):
if self._tail is None:
self._tail = random.choice(tail_traits)
return self._tail
NPC = Malseid