Rewrite!
This is a full rewrite of the npc generator code to use the newly-refactored dnd-name-generator code
This commit is contained in:
parent
1208616ab3
commit
5ec05fc6d2
10
npc/types.py
10
npc/types.py
|
@ -156,6 +156,16 @@ class NPC:
|
|||
def ancestry(self) -> str:
|
||||
return self.__class__.__name__
|
||||
|
||||
@property
|
||||
def names(self):
|
||||
if not self._names:
|
||||
self._names = next(self.name_generator.name(1))
|
||||
return self._names
|
||||
|
||||
@property
|
||||
def full_name(self):
|
||||
return self.names.fullname
|
||||
|
||||
@property
|
||||
def is_noble(self) -> bool:
|
||||
return self._is_noble
|
||||
|
|
|
@ -6,7 +6,6 @@ authors = ["evilchili <evilchili@gmail.com>"]
|
|||
license = "The Unlicense"
|
||||
packages = [
|
||||
{ include = 'npc' },
|
||||
{ include = 'language' },
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
|
@ -48,4 +47,3 @@ remove-unused-variables = true # remove unused variables
|
|||
|
||||
[tool.poetry.scripts]
|
||||
npc = "npc.cli:app"
|
||||
language-tool = "language.cli:app"
|
||||
|
|
Loading…
Reference in New Issue
Block a user