Skip to content

Commit

Permalink
add some features for real
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl committed Aug 10, 2024
1 parent 4ae2edf commit eb71e40
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,10 @@ struct MyPlayLayer : Modify<MyPlayLayer, PlayLayer> {
};

/* persist wave trail */
struct MyMotionStreak : Modify<MyMotionStreak, CCMotionStreak> {
struct Fields {
int update = 3;
};

virtual void update(float delta) {
if (Mod::get()->getSettingValue<bool>("persist-wave-trail")) {
if (m_fields->update != 3) {
m_fields->update++;
return;
} else {
m_fields->update = 0;
CCMotionStreak::update(delta);
}
struct MyMotionStreak : Modify<MyMotionStreak, PlayerObject> {
void fadeOutStreak2(float p0) {
if (!Mod::get()->getSettingValue<bool>("persist-wave-trail")) {
PlayerObject::fadeOutStreak2(p0);
}
}
};
Expand Down

0 comments on commit eb71e40

Please sign in to comment.