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)
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)
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)
def getValueByVarName(self, varName, who): if varName == "R": return who.day.fetch("mapRing") + 1 return customTask.getValueByVarName(self, varName, who)