Skip to content

Commit

Permalink
That could have been bad
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 authored Aug 16, 2024
1 parent 003f6ac commit b6b4753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) {

auto bgNum = 0;
if (isSpriteName(child, "itzkiba.grandpa_demon/GrD_demon4_bg.png") &&
child->getID().find("hiimjustin000.fake_rate/grandpa-background") != std::string::npos) {
child->getID().find("hiimjustin000.fake_rate/grandpa-background") == std::string::npos) {
if (child->getID() == "") child->setID(fmt::format("grd-bg-{}", ++bgNum));
if (child->getID() == "grd-bg-1") child->setVisible(remove);
else if (child->getID() == "grd-bg-2") child->setVisible(remove);
Expand All @@ -143,7 +143,7 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) {

auto particleNum = 0;
if (typeinfo_cast<CCParticleSystemQuad*>(child) && child->getPositionY() == winSize.height / 2 + 76.0f &&
child->getID().find("hiimjustin000.fake_rate/grandpa-particles") != std::string::npos) {
child->getID().find("hiimjustin000.fake_rate/grandpa-particles") == std::string::npos) {
if (child->getID() == "") child->setID(fmt::format("grd-particles-{}", ++particleNum));
if (child->getID() == "grd-particles-1") child->setVisible(remove);
else if (child->getID() == "grd-particles-2") child->setVisible(remove);
Expand Down

0 comments on commit b6b4753

Please sign in to comment.