1208616ab3
# This is the 1st commit message: Rewrite! This is a full rewrite of the npc generator code to use the newly-refactored dnd-name-generator code # This is the commit message #2: bugfixen
33 lines
634 B
Python
33 lines
634 B
Python
import random
|
|
|
|
from language.languages import infernal
|
|
from npc import types
|
|
|
|
|
|
class Tiefling(types.NPC):
|
|
language = infernal
|
|
|
|
has_tail = True
|
|
has_horns = True
|
|
has_fangs = True
|
|
|
|
@property
|
|
def skin_color(self):
|
|
if not self._skin_color:
|
|
self._skin_color = random.choice([
|
|
'reddish',
|
|
'white',
|
|
'green',
|
|
'black',
|
|
'blue',
|
|
'brassy',
|
|
'bronze',
|
|
'coppery',
|
|
'silvery',
|
|
'gold',
|
|
])
|
|
return self._skin_color
|
|
|
|
|
|
NPC = Tiefling
|