Skip to content

Commit

Permalink
beta 19
Browse files Browse the repository at this point in the history
  • Loading branch information
Minemaker0430 committed Apr 26, 2024
1 parent bba6efb commit 4ed5f85
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v1.0.0-beta.19

* Fixed save bugs
* Main packs no longer get rid of ranks if the pack is completed
* Monthly packs no longer are completed at 0/6
* Fixed Legacy Lock Label

# v1.0.0-beta.18

* Completely Overhauled the save system
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"win": "2.204",
"android": "2.205"
},
"version": "v1.0.0-beta.18",
"version": "v1.0.0-beta.19",
"id": "minemaker0430.gddp_integration",
"name": "GDDP Integration",
"developer": "Minemaker0430",
Expand Down
10 changes: 8 additions & 2 deletions src/LevelListLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,19 @@ class $modify(LevelListLayer) {
auto hasRank = false;

auto progress = packProgress;
if ((packProgress >= reqLevels) && (!listSave.hasRank) && (type == "main")) {
if ((packProgress >= reqLevels) && (type == "main")) {
hasRank = true;
}

auto completed = false;

if (packProgress == totalLevels) {
if ((packProgress == totalLevels) && type != "monthly") {
completed = true;
if (type == "main") {
hasRank = true;
}
}
else if ((type == "monthly") && (packProgress > 5)) {
completed = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ void DPLayer::reloadList(int type) {
if (mainPack > 0) {

//get previous main pack
auto prevListID = m_data[dataIdx][mainPack - 1]["listID"].as_int();
auto prevListID = m_data["main"][mainPack - 1]["listID"].as_int();
rankCheck = Mod::get()->getSavedValue<ListSaveFormat>(std::to_string(prevListID)).hasRank;

if (rankCheck) {
Expand Down

0 comments on commit 4ed5f85

Please sign in to comment.