Skip to content

Commit

Permalink
just testing to see if this compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl authored Apr 6, 2024
1 parent 22b33ae commit 6a79002
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <Geode/cocos/include/ccTypes.h>
#include <Geode/loader/Mod.hpp>
#include <Geode/modify/CCMotionStreak.hpp>
#include <Geode/loader/Loader.hpp>

using namespace geode::prelude;

Expand Down Expand Up @@ -79,30 +80,30 @@ class $modify(PlayerObject) {
class $modify(PlayLayer) {
void postUpdate(float p0) {
float speed = Mod::get()->getSettingValue<double>("speed");
float saturation = Mod::get() -> getSettingValue<double>("saturation");

float saturation = Mod::get() -> getSettingValue<double>("saturation");
if (g >= 360) {
g = 0;
} else {
} else {
g += speed / 10;
}
}

auto rainbowColor = getRainbow(0, saturation);
auto rainbowColor2 = getRainbow(180, saturation);
auto rainbowColor3 = getRainbow(90, saturation);

bool enable = Mod::get()->getSettingValue<bool>("enable");

if (enable == true) {
if (m_player1->m_waveTrail) {
m_player1->m_waveTrail->setColor(rainbowColor);
auto rainbowColor2 = getRainbow(180, saturation);
auto rainbowColor3 = getRainbow(90, saturation);
bool enable = Mod::get()->getSettingValue<bool>("enable");
bool isQolmodLoaded = Loader::isModLoaded("TheSillyDoggo.Cheats");

if (enable == true) {
if (m_player1->m_waveTrail) {
m_player1->m_waveTrail->setColor(rainbowColor);
}

if (m_player2->m_waveTrail) {
if (m_player2->m_waveTrail) {
m_player2->m_waveTrail->setColor(rainbowColor2);
}
}
}

PlayLayer::postUpdate(p0);
PlayLayer::postUpdate(p0);
}
};

0 comments on commit 6a79002

Please sign in to comment.