Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Implement MBMasher's Touchscreen Accuracy Rebalance #84

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/performance/osu/OsuScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ void OsuScore::computeAccValue(const Beatmap& beatmap)

// Lots of arbitrary values from testing.
// Considering to use derivation from perfect accuracy in a probabilistic manner - assume normal distribution
_accValue =
pow(1.52163f, beatmap.DifficultyAttribute(_mods, Beatmap::OD)) * pow(betterAccuracyPercentage, 24) *
2.83f;


_accValue = pow(1.52163f, beatmap.DifficultyAttribute(_mods, Beatmap::OD)) * pow(betterAccuracyPercentage, 24) * 2.83f;

if ((_mods & EMods::TouchDevice) > 0)// Give a small boost to acc pp with touchscreen
_accValue = pow(1.58f, beatmap.DifficultyAttribute(_mods, Beatmap::OD)) * pow(betterAccuracyPercentage, 12) * 2.83f;

// Bonus for many hitcircles - it's harder to keep good accuracy up for longer
_accValue *= std::min(1.15f, static_cast<f32>(pow(numHitObjectsWithAccuracy / 1000.0f, 0.3f)));

Expand Down