示例#1
0
 def getDifficulty(self):
     if self.difficultyOverride is not None:
         return self.difficultyOverride
     elif hasattr(base, 'cogdoGameDifficulty'):
         return float(base.cogdoGameDifficulty)
     else:
         return CogdoGameConsts.getDifficulty(self.getSafezoneId())
示例#2
0
 def getDifficulty(self):
     if self.difficultyOverride is not None:
         return self.difficultyOverride
     elif hasattr(base, 'cogdoGameDifficulty'):
         return float(base.cogdoGameDifficulty)
     else:
         return CogdoGameConsts.getDifficulty(self.getSafezoneId())
示例#3
0
    def getDifficulty(self):
        if self.difficultyOverride is not None:
            return self.difficultyOverride

        if hasattr(self.air, 'cogdoGameDifficulty'):
            return float(self.air.cogdoGameDifficulty)

        return CogdoGameConsts.getDifficulty(self.getSafezoneId())
 def getDifficulty(self):
     return CogdoGameConsts.getDifficulty(self.getSafezoneId())