Skip to content

Commit 4d3bc3f

Browse files
fixing some crap
1 parent 87f55c6 commit 4d3bc3f

2 files changed

Lines changed: 27 additions & 16 deletions

File tree

src/popup/HorribleMenuPopup.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ std::vector<std::tuple<std::string, std::string, std::string, SillyTier, bool>>
3535
{
3636
"mock",
3737
"Mock your 90%+ Fail",
38-
"Shows a screenshot of your 90%-99% fail everywhere.\n<cy>Credit: Wuffin</c>",
38+
"Shows a screenshot of your 90%-99% fail everywhere.\n<cy>Credit: Wuffin</c>\n<cr>Note: This will not work on macOS and iOS</c>",
3939
SillyTier::Medium,
4040
false
4141
},
@@ -56,28 +56,28 @@ std::vector<std::tuple<std::string, std::string, std::string, SillyTier, bool>>
5656
{
5757
"crash-death",
5858
"Crash Chance on Death",
59-
"When your character dies in a level, there's a small chance your game will die too.",
59+
"When your character dies in a level, there's a small chance your game will die too.\n<cy>Credit: DragonixGD</c>",
6060
SillyTier::High,
6161
false
6262
},
6363
{
6464
"no-jump",
6565
"Randomly Don't Jump",
66-
"When making an input in a level, there will be a chance your character does not jump.",
66+
"When making an input in a level, there will be a chance your character does not jump.\n<cy>Credit: GilanyKing12</c>",
6767
SillyTier::Low,
6868
false
6969
},
7070
{
7171
"gravity",
7272
"Randomize Gravity",
73-
"Every time you jump in the level, the gravity will change to a random value.",
73+
"Every time you jump in the level, the gravity will change to a random value.\n<cy>Credit: NJAgain</c>",
7474
SillyTier::Low,
7575
false
7676
},
7777
{
7878
"death",
7979
"Fake Death",
80-
"The player's death effect will play but will not die.",
80+
"The player's death effect will play but will not die.<cy>Credit: DragonixGD</c>",
8181
SillyTier::Medium,
8282
false
8383
},

src/utils/LevelManager.cpp

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,25 @@
66

77
using namespace geode::prelude;
88

9-
namespace LevelManager {
10-
void DownloadGriefLevel() {
9+
namespace LevelManager
10+
{
11+
void DownloadGriefLevel()
12+
{
1113
auto horribleMod = getMod();
1214

13-
if (horribleMod->getSavedValue<bool>("grief", false)) {
15+
if (horribleMod->getSavedValue<bool>("grief", false))
16+
{
1417
auto glm = GameLevelManager::get();
1518
auto mdm = MusicDownloadManager::sharedState();
1619
auto level = glm->getSavedLevel(105001928);
1720

18-
if (glm->hasDownloadedLevel(105001928)) {
21+
if (glm->hasDownloadedLevel(105001928))
22+
{
1923
log::info("Grief already downloaded, skipping download");
20-
return;
21-
} else {
24+
glm->updateLevel(level);
25+
}
26+
else
27+
{
2228
glm->downloadLevel(105001928, false);
2329
mdm->downloadSong(482872);
2430

@@ -27,19 +33,24 @@ namespace LevelManager {
2733
};
2834
};
2935

30-
void DownloadCongregLevel() {
36+
void DownloadCongregLevel()
37+
{
3138
auto horribleMod = getMod();
3239

33-
if (horribleMod->getSavedValue<bool>("congregation", false)) {
40+
if (horribleMod->getSavedValue<bool>("congregation", false))
41+
{
3442
auto glm = GameLevelManager::get();
3543
auto mdm = MusicDownloadManager::sharedState();
3644

3745
auto level = glm->getSavedLevel(93437568);
3846

39-
if (glm->hasDownloadedLevel(93437568)) {
47+
if (glm->hasDownloadedLevel(93437568))
48+
{
4049
log::info("Congregation already downloaded, skipping download");
41-
return;
42-
} else {
50+
glm->updateLevel(level);
51+
}
52+
else
53+
{
4354
glm->downloadLevel(93437568, false);
4455
mdm->downloadSong(895761);
4556

0 commit comments

Comments
 (0)