Skip to content

Commit 008d460

Browse files
Zilkohiimjasmine00
andauthored
GJDifficultySprite (geode-sdk#993)
* GJDifficultySprite * Update GeometryDash.bro --------- Co-authored-by: Jasmine <52604018+hiimjasmine00@users.noreply.github.com>
1 parent 9c66a00 commit 008d460

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

bindings/2.2074/GeometryDash.bro

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10047,7 +10047,25 @@ class GJDifficultySprite : cocos2d::CCSprite {
1004710047
bool init(int, GJDifficultyName) = imac 0x2a3610, m1 0x24a3cc;
1004810048
void updateDifficultyFrame(int, GJDifficultyName) = ios 0x2e5534, win 0x29da90, imac 0x2a37c0, m1 0x24a5b0;
1004910049
void updateFeatureState(GJFeatureState) = ios 0x2e56ac, win 0x29dbb0, imac 0x2a3940, m1 0x24a728;
10050-
void updateFeatureStateFromLevel(GJGameLevel*) = ios 0x2e5674, m1 0x24a6f0;
10050+
void updateFeatureStateFromLevel(GJGameLevel* level) = win inline, ios 0x2e5674, m1 0x24a6f0 {
10051+
if (!level) return;
10052+
10053+
GJFeatureState featureState;
10054+
10055+
if (level->m_isEpic >= 3) {
10056+
featureState = GJFeatureState::Mythic;
10057+
} else if (level->m_isEpic == 2) {
10058+
featureState = GJFeatureState::Legendary;
10059+
} else if (level->m_isEpic == 1) {
10060+
featureState = GJFeatureState::Epic;
10061+
} else if (level->m_featured >= 1) {
10062+
featureState = GJFeatureState::Featured;
10063+
} else {
10064+
featureState = GJFeatureState::None;
10065+
}
10066+
10067+
this->updateFeatureState(featureState);
10068+
}
1005110069

1005210070
GJFeatureState m_featureState;
1005310071
}

0 commit comments

Comments
 (0)