fixed values

This commit is contained in:
Marc Andre Herpers 2019-01-26 16:43:22 +01:00
parent 315af71ed9
commit 7aa20d9768

View File

@ -102,12 +102,14 @@ class piano:
multiplier = 1.1 multiplier = 1.1
if scoreMods & mods.NOFAIL != 0: if scoreMods & mods.NOFAIL != 0:
multiplier *= 0.90 multiplier *= 0.90
if scoreMods & mods.DOUBLETIME != 0:
multiplier *= 1.75
if scoreMods & mods.SPUNOUT != 0: if scoreMods & mods.SPUNOUT != 0:
multiplier *= 0.95 multiplier *= 0.95
if scoreMods & mods.EASY != 0: if scoreMods & mods.EASY != 0:
multiplier *= 0.50 multiplier *= 0.50
if scoreMods & mods.DOUBLETIME != 0:
multiplier *= 2.45
if scoreMods & mods.HALFTIME != 0:
multiplier *= 0.50
pp = pow(pow(strainPP, 1.1) + pow(accPP, 1.1), 1.0 / 1.1) * multiplier pp = pow(pow(strainPP, 1.1) + pow(accPP, 1.1), 1.0 / 1.1) * multiplier
log.debug("[WIFIPIANO2] Calculated PP: {}".format(pp)) log.debug("[WIFIPIANO2] Calculated PP: {}".format(pp))