def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax difIndex = int( math.floor(percent * (len(self.config.difficultyLevels) - 1))) self.currentGridDimensionAndLineCount = self.config.difficultyLevels[ difIndex]
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.barnacleCountRange[1] - self.config.barnacleCountRange[0] self.barnacleCount = int(math.floor(self.config.barnacleCountRange[0] + dif * percent)) dif = self.config.barnacleHPScaleRange[1] - self.config.barnacleHPScaleRange[0] self.barnacleHPScale = self.config.barnacleHPScaleRange[0] + dif * percent
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.barnacleCountRange[1] - self.config.barnacleCountRange[0] self.barnacleCount = int(math.floor(self.config.barnacleCountRange[0] + dif * percent)) dif = self.config.barnacleHPScaleRange[1] - self.config.barnacleHPScaleRange[0] self.barnacleHPScale = self.config.barnacleHPScaleRange[0] + dif * percent
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.pumpPowerRange[0] - self.config.pumpPowerRange[1] self.pumpRate = self.config.pumpPowerRange[0] - dif * percent dif = self.config.barStartRange[0] - self.config.barStartRange[1] self.currentBarRate = self.config.barStartRange[0] - dif * percent dif = self.config.hitRange[0] - self.config.hitRange[1] self.hitRange = self.config.hitRange[0] - dif * percent self.goalBox.setSz((self.hitRange / 0.17999999999999999) * self.goalBoxStartScale)
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.pumpPowerRange[0] - self.config.pumpPowerRange[1] self.pumpRate = self.config.pumpPowerRange[0] - dif * percent dif = self.config.barStartRange[0] - self.config.barStartRange[1] self.currentBarRate = self.config.barStartRange[0] - dif * percent dif = self.config.hitRange[0] - self.config.hitRange[1] self.hitRange = self.config.hitRange[0] - dif * percent self.goalBox.setSz((self.hitRange / 0.17999999999999999) * self.goalBoxStartScale)
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.leakCountRange[1] - self.config.leakCountRange[0] self.leakCount = int(math.floor(self.config.leakCountRange[0] + dif * percent)) dif = self.config.maxLeaksRange[1] - self.config.maxLeaksRange[0] self.maxLeaks = int(math.floor(self.config.maxLeaksRange[0] + dif * percent)) dif = self.config.spawnDelayRange[1] - self.config.spawnDelayRange[0] self.minSpawnTime = self.config.spawnDelayRange[0] + dif * percent dif = self.config.spawnDelayRange[3] - self.config.spawnDelayRange[2] self.maxSpawnTime = self.config.spawnDelayRange[2] + dif * percent
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.leakCountRange[1] - self.config.leakCountRange[0] self.leakCount = int(math.floor(self.config.leakCountRange[0] + dif * percent)) dif = self.config.maxLeaksRange[1] - self.config.maxLeaksRange[0] self.maxLeaks = int(math.floor(self.config.maxLeaksRange[0] + dif * percent)) dif = self.config.spawnDelayRange[1] - self.config.spawnDelayRange[0] self.minSpawnTime = self.config.spawnDelayRange[0] + dif * percent dif = self.config.spawnDelayRange[3] - self.config.spawnDelayRange[2] self.maxSpawnTime = self.config.spawnDelayRange[2] + dif * percent
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax difIndex = int( math.floor(percent * (len(self.config.difficultySets) - 1))) self.currentDifficultySet = self.config.difficultySets[difIndex]
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax difIndex = int(math.floor(percent * (len(self.config.difficultyLevels) - 1))) self.currentGridDimensionAndLineCount = self.config.difficultyLevels[difIndex]
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax dif = self.config.nailCountRange[1] - self.config.nailCountRange[0] self.nailCount = int(math.floor(self.config.nailCountRange[0] + dif * percent))
def setDifficulty(self, difficulty): RepairMincroGame.setDifficulty(self, difficulty) percent = difficulty / self.repairGame.difficultyMax difIndex = int(math.floor(percent * (len(self.config.difficultySets) - 1))) self.currentDifficultySet = self.config.difficultySets[difIndex]