瀏覽代碼

Whoops

master
Noëlle 4 年之前
父節點
當前提交
b7060bec1f
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. 4
    2
      koboldgen.py

+ 4
- 2
koboldgen.py 查看文件

@@ -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…
取消
儲存