Merge pull request #2 from MarcPlaying/master

added DT Mania PP
This commit is contained in:
Josh Smith
2019-02-11 05:07:39 -05:00
committed by GitHub

View File

@@ -106,6 +106,10 @@ class piano:
multiplier *= 0.95
if scoreMods & mods.EASY != 0:
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
log.debug("[WIFIPIANO2] Calculated PP: {}".format(pp))