소스 검색

Let's try something else

master
Noëlle 3 년 전
부모
커밋
e744a796b0
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5
    2
      koboldgen.py

+ 5
- 2
koboldgen.py 파일 보기

@@ -134,8 +134,11 @@ class Plot:
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]
if (secProblem != None and secProblem in list(filter(lambda x:x["id"], Plot.prob))):
self.secProblem = [x for x in Plot.prob if x["id"] == secProblem][0]
if secProblem != None:
try:
self.secProblem = [x for x in Plot.prob if x["id"] == secProblem][0]
except:
self.secProblem = None
else:
self.secProblem = None
self.thirdProblem = [x for x in Plot.prob if x["id"] == thirdProblem][0] if (thirdProblem != None and thirdProblem in list(filter(lambda x:x["id"], Plot.prob))) else None

Loading…
취소
저장