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
commit 45106ac18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))