// // GameStatsManager::keyCostForSecretChest from 0x1003d4264 to 0x1003d42b8 (84 bytes) // // 1 xrefs: // > SecretRewardsLayer::onSelectItem @ 0x10038662c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:04:12 +0000 // __int64 __fastcall GameStatsManager::keyCostForSecretChest(__int64 a1, int a2) { int v2; // w15 int v3; // w14 int v4; // w13 int v5; // w12 unsigned int v6; // w10 if ( a2 <= 1000 ) v2 = 1; else v2 = 5; if ( a2 <= 2000 ) v3 = v2; else v3 = 10; if ( a2 <= 3000 ) v4 = v3; else v4 = 25; if ( a2 <= 4000 ) v5 = v4; else v5 = 50; if ( a2 <= 5000 ) v6 = v5; else v6 = 100; if ( a2 <= 6000 ) return v6; else return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source