Browse Source

Whoops

master
Noëlle 3 years ago
parent
commit
b7060bec1f
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      koboldgen.py

+ 4
- 2
koboldgen.py View File

@@ -251,10 +251,12 @@ class Character:
self.stats = stats

def gen_career(self):
self.career = r.choice(Character.CAREERS)
cid = r.randint(0,12)
self.career = [x for x in Character.CAREERS if x["id"] == cid][0]

def gen_gadget(self):
self.gadget = r.choice(Character.GADGETS)
gid = r.randint(0,15)
self.gadget = [x for x in Character.GADGETS if x["id"] == gid][0]

def print_name(self, html=False):
if isinstance(self.career, str):

Loading…
Cancel
Save