Skip to content

Commit

Permalink
what the actual fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Aug 10, 2024
1 parent 2c45d6f commit 513d324
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(FakeRate VERSION 1.3.4)
project(FakeRate VERSION 1.3.5)

add_library(${PROJECT_NAME} SHARED
src/FakeRate.cpp
Expand Down
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.3.5 (2024-08-09)
- Fixed a bug where the difficulty face would not display at all if a fake rate was set

## v1.3.4 (2024-08-09)
- Fixed a bug where the game would crash if no More Difficulties difficulties were selected
- Fixed an overlapping issue with more difficulties and other overrides (I didn't fix it in level cells LMFAO)
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.3.4",
"version": "v1.3.5",
"id": "hiimjustin000.fake_rate",
"name": "Fake Rate",
"developer": "hiimjustin000",
Expand Down
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,11 @@ class $modify(FRLevelCell, LevelCell) {
if (!difficultyContainer) difficultyContainer = m_mainLayer->getChildByID("grd-demon-icon-layer");
auto moreDifficultiesSprite = static_cast<CCSprite*>(difficultyContainer->getChildByID("uproxide.more_difficulties/more-difficulties-spr"));
if (moreDifficultiesSprite) moreDifficultiesSprite->setVisible(false);

auto difficultySprite = static_cast<GJDifficultySprite*>(difficultyContainer->getChildByID("difficulty-sprite"));
difficultySprite->setOpacity(0);

difficultySprite->setOpacity(255);
if (mdo != 4 || mdo != 7 || mdo != 9 || gdo > 0 || dbo > 0) return;
difficultySprite->setOpacity(0);

auto legacy = Loader::get()->getLoadedMod("uproxide.more_difficulties")->getSettingValue<bool>("legacy-difficulties");
if (!moreDifficultiesSprite) {
Expand Down

0 comments on commit 513d324

Please sign in to comment.