Skip to content

Commit

Permalink
Wow I didn't even test that
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Nov 22, 2024
1 parent c00a5c1 commit fb55556
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 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(DemonsInBetween VERSION 1.4.0)
project(DemonsInBetween VERSION 1.4.1)

add_library(${PROJECT_NAME} SHARED
src/classes/DIBInfoPopup.cpp
Expand Down
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Demons In Between Changelog
## v1.4.1 (2024-11-22)
- Fixed the demon info button in the level info page not working

## v1.4.0 (2024-11-22)
- Added detailed demon breakdown to the demon info popup
- Added detailed demon breakdown to the main menu profile page
- Switched to dynamic loading for the demon difficulties
- Fixed BetterInfo buttons in the quick search menu

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.2074",
"mac": "2.2074"
},
"version": "v1.4.0",
"version": "v1.4.1",
"id": "hiimjustin000.demons_in_between",
"name": "Demons In Between",
"developer": "hiimjustin000",
Expand Down
2 changes: 1 addition & 1 deletion src/DemonsInBetween.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void DemonsInBetween::loadDemonForLevel(EventListener<web::WebTask>&& listenerRe
auto json = res->json().unwrapOr(matjson::Value());
if (json["Rating"].isNull()) return;

auto rating = json["Rating"].asDouble().unwrapOr(0.0);
auto rating = round(json["Rating"].asDouble().unwrapOr(0.0) * 100) / 100;
auto difficulty = DemonsInBetween::DIFFICULTY_INDICES[(int)round(rating)];
auto enjoyment = !json["Enjoyment"].isNull() ? round(json["Enjoyment"].asDouble().unwrapOr(-999.0) * 100) / 100 : -999.0;

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/LevelInfoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class $modify(DIBLevelInfoLayer, LevelInfoLayer) {
demon.enjoyment >= 0.0 ? fmt::format("{}", demon.enjoyment) : "N/A",
difficulty,
originalDifficulty
), "OK");
), "OK")->show();
}

void createUI(LadderDemon const& demon) {
Expand Down

0 comments on commit fb55556

Please sign in to comment.