adding malseids
This commit is contained in:
parent
8fc99f0eb2
commit
0e2242e19a
|
@ -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()[1].values())
|
||||
ancestries = list(load_ancestry_pack()[0].values())
|
||||
return random.choice(ancestries).NPC()
|
||||
|
|
29
npc/ancestries/malseid.py
Normal file
29
npc/ancestries/malseid.py
Normal 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
|
Loading…
Reference in New Issue
Block a user