dnd-name-generator/language/languages/lizardfolk/names.py
2023-11-24 08:48:03 -05:00

20 lines
483 B
Python

from language import types
from language.languages.lizardfolk import Language
class LizardfolkNameGenerator(types.NameGenerator):
def __init__(self):
super().__init__(
language=Language,
templates=types.NameSet(
(types.NameTemplate("surname,name,name"), 1.0),
),
)
def get_surname(self) -> str:
return self.language.consonants.random().title()
Name = LizardfolkNameGenerator()
NobleName = Name