瀏覽代碼

another dumb mistake

master
Noëlle 3 年之前
父節點
當前提交
215d88bd30
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      koboldgen.py

+ 1
- 1
koboldgen.py 查看文件

@@ -130,7 +130,7 @@ class Plot:
self.oops = int(oops) if oops != None else r.randint(1,12)
if self.oops != 1:
self.oops = 0
self.mission = Plot.miss[missIndex]
self.mission = Plot.miss[self.missIndex]
self.probIndex = probIndex if probIndex != None else r.randint(0, len(Plot.prob)-1)
self.problem = Plot.prob[self.probIndex]
self.secProblem = [x for x in Plot.prob if x["id"] == secProblem][0] if (secProblem != None and secProblem in list(filter(lambda x:x["id"], Plot.prob))) else None

Loading…
取消
儲存