Skip to content

Commit

Permalink
v1.1.9-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jun 12, 2024
1 parent 8632d97 commit 3ece38d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Fake Rate Changelog
## v1.1.9-beta.3 (2024-06-12)
- Fixed a slight alignment issue in the fake rate popup

## v1.1.9-beta.2 (2024-06-11)
- Fixed incompatibility with the mod "More Difficulties" by uproxide (Again like seriously how many times do I have to fix this)
- Fixed estimated time label not positioning correctly
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"win": "2.206",
"mac": "2.206"
},
"version": "v1.1.9-beta.2",
"version": "v1.1.9-beta.3",
"id": "hiimjustin000.fake_rate",
"name": "Fake Rate",
"developer": "hiimjustin000",
Expand Down
10 changes: 1 addition & 9 deletions src/FREditPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ bool FREditPopup::setup(FRLevelInfoLayer* delegate, GJGameLevel* level, int star

if (Loader::get()->isModLoaded("uproxide.more_difficulties")) {
auto legacy = Loader::get()->getLoadedMod("uproxide.more_difficulties")->getSettingValue<bool>("legacy-difficulties");
auto pos = CCPoint { legacy ? 100.0f, 85.0f : 100.25f, 84.9f };
auto pos = legacy ? CCPoint { 100.0f, 85.0f } : CCPoint { 100.25f, 84.9f };

m_casualSprite = CCSprite::createWithSpriteFrameName(fmt::format("uproxide.more_difficulties/MD_Difficulty04{}.png", legacy ? "_Legacy" : "").c_str());
m_casualSprite->setPosition(pos);
Expand Down Expand Up @@ -381,14 +381,6 @@ bool FREditPopup::setup(FRLevelInfoLayer* delegate, GJGameLevel* level, int star
return item.id == m_level->m_levelID;
}), vec.end());
Mod::get()->setSavedValue("fake-rate", vec);
auto difficulty = m_level->getAverageDifficulty();
if (m_level->m_demon > 0) switch (m_level->m_demonDifficulty) {
case 3: difficulty = 7; break;
case 4: difficulty = 8; break;
case 5: difficulty = 9; break;
case 6: difficulty = 10; break;
default: difficulty = 6; break;
}
m_delegate->updateFakeRate(m_level->m_stars, m_level->m_featured > 1 ? m_level->m_isEpic + 1 : 0, FakeRate::getDifficultyFromLevel(m_level), true, false);
onClose(nullptr);
});
Expand Down

0 comments on commit 3ece38d

Please sign in to comment.