Ejemplo n.º 1
0
 def getValueByVarName(self, varName, who):
     if varName == "R":
         if who:
             ring = who.taskCtn.fetch("schoolRing") % 10
             return 10 if ring == 0 else ring
         return 0
     return customTask.getValueByVarName(self, varName, who)
Ejemplo n.º 2
0
 def getValueByVarName(self, varName, who):
     if varName == "F":
         if who:
             res = 1 - self.fetch("warFail") * 0.1
             return max(0, res)
         return 1
     return customTask.getValueByVarName(self, varName, who)
Ejemplo n.º 3
0
 def getValueByVarName(self, varName, who):
     if varName == "R":
         if who:
             ring = who.taskCtn.fetch("guildRing") % 10
             return ring if ring else 10
         return 0
     return customTask.getValueByVarName(self, varName, who)
Ejemplo n.º 4
0
 def getValueByVarName(self, varName, who):
     if varName == "R":
         return who.day.fetch("mapRing") + 1
     return customTask.getValueByVarName(self, varName, who)