Noëlle před 3 roky
rodič
revize
b7060bec1f
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4
    2
      koboldgen.py

+ 4
- 2
koboldgen.py Zobrazit soubor

@@ -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):

Načítá se…
Zrušit
Uložit