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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user