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

Commit 4fb8b97

Browse files
committed
Revert "Merge pull request #175 from smoogipoo/vunyunt-stamina-available-fingers"
This reverts commit 3d40335, reversing changes made to b089a57.
1 parent 8d10ac6 commit 4fb8b97

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

include/pp/performance/Beatmap.h

-7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class Beatmap
5252
s32 NumSliders() const { return _numSliders; }
5353
s32 NumSpinners() const { return _numSpinners; }
5454
f32 DifficultyAttribute(EMods mods, EDifficultyAttributeType type) const;
55-
EGamemode PlayMode() const { return _playmode; }
5655

5756
void SetRankedStatus(ERankedStatus rankedStatus) { _rankedStatus = rankedStatus; }
5857
void SetScoreVersion(EScoreVersion scoreVersion) { _scoreVersion = scoreVersion; }
@@ -61,7 +60,6 @@ class Beatmap
6160
void SetNumSpinners(s32 numSpinners) { _numSpinners = numSpinners; }
6261
void SetDifficultyAttribute(EMods mods, EDifficultyAttributeType type, f32 value);
6362
void SetMode(EGamemode mode) { _mode = mode; }
64-
void SetPlayMode(EGamemode mode) { _playmode = mode; }
6563

6664
static bool ContainsAttribute(const std::string &difficultyAttributeName)
6765
{
@@ -78,13 +76,8 @@ class Beatmap
7876

7977
// General information
8078
s32 _id;
81-
82-
// The mode being processed. NOT the beatmap's playmode!
8379
EGamemode _mode = EGamemode::Osu;
8480

85-
// The beatmap's playmode. This may differ from the mode currently being processed in the case of converted beatmaps.
86-
EGamemode _playmode = EGamemode::Osu;
87-
8881
// Calculated difficulty
8982
using difficulty_t = std::unordered_map<
9083
std::underlying_type_t<EMods>,

src/performance/Processor.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ void Processor::queryAllBeatmapDifficulties(u32 numThreads)
622622
bool Processor::queryBeatmapDifficulty(DatabaseConnection& dbSlave, s32 startId, s32 endId)
623623
{
624624
std::string query = StrFormat(
625-
"SELECT `osu_beatmaps`.`beatmap_id`,`countNormal`,`mods`,`attrib_id`,`value`,`approved`,`score_version`, `countSpinner`, `countSlider`,`playmode` "
625+
"SELECT `osu_beatmaps`.`beatmap_id`,`countNormal`,`mods`,`attrib_id`,`value`,`approved`,`score_version`, `countSpinner`, `countSlider` "
626626
"FROM `osu_beatmaps` "
627627
"JOIN `osu_beatmap_difficulty_attribs` ON `osu_beatmaps`.`beatmap_id` = `osu_beatmap_difficulty_attribs`.`beatmap_id` "
628628
"WHERE (`osu_beatmaps`.`playmode`=0 OR `osu_beatmaps`.`playmode`={0}) AND `osu_beatmap_difficulty_attribs`.`mode`={0} AND `approved` BETWEEN {1} AND {2}",
@@ -660,7 +660,6 @@ bool Processor::queryBeatmapDifficulty(DatabaseConnection& dbSlave, s32 startId,
660660
beatmap.SetDifficultyAttribute(res[2], _difficultyAttributes[attribId], res[4]);
661661

662662
beatmap.SetMode(_gamemode);
663-
beatmap.SetPlayMode(res[9]);
664663
}
665664

666665
if (endId != 0) {

src/performance/taiko/TaikoScore.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void TaikoScore::computeDifficultyValue(const Beatmap &beatmap)
7373
if ((_mods & EMods::Easy) > 0)
7474
_difficultyValue *= 0.985f;
7575

76-
if ((_mods & EMods::Hidden) > 0 && beatmap.PlayMode() == EGamemode::Taiko)
76+
if ((_mods & EMods::Hidden) > 0)
7777
_difficultyValue *= 1.025f;
7878

7979
if ((_mods & EMods::HardRock) > 0)
@@ -99,9 +99,9 @@ void TaikoScore::computeAccuracyValue(const Beatmap &beatmap)
9999
f32 lengthBonus = std::min(1.15f, std::pow(static_cast<f32>(TotalHits()) / 1500.0f, 0.3f));
100100
_accuracyValue *= lengthBonus;
101101

102-
// Slight HDFL Bonus for accuracy. A clamp is used to prevent against negative values.
103-
if ((_mods & (EMods::Hidden | EMods::Flashlight)) == (EMods::Hidden | EMods::Flashlight) && beatmap.PlayMode() == EGamemode::Taiko)
104-
_accuracyValue *= std::max(1.0f, 1.1f * lengthBonus);
102+
// Slight HDFL Bonus for accuracy. A clamp is used to prevent against negative values
103+
if ((_mods & (EMods::Hidden | EMods::Flashlight)) == (EMods::Hidden | EMods::Flashlight))
104+
_accuracyValue *= std::max(1.050f, 1.075f * lengthBonus);
105105
}
106106

107107
f32 TaikoScore::Accuracy() const

0 commit comments

Comments
 (0)