// // GameStatsManager::keyCostForSecretChest from 0x10003cf80 to 0x10003cfd9 (89 bytes) // // 1 xrefs: // > SecretRewardsLayer::onSelectItem @ 0x1007114ad // // This function is hookable on this platform (idp: pc, 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 12:19:34 +0000 // __int64 __fastcall GameStatsManager::keyCostForSecretChest(__int64 a1, int a2) { __int64 result; // rax result = 1; if ( a2 <= 6000 ) { result = 100; if ( a2 <= 5000 ) { result = 50; if ( a2 <= 4000 ) { result = 25; if ( a2 <= 3000 ) { result = 10; if ( a2 <= 2000 ) return 4 * (unsigned int)(a2 >= 1001) + 1; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source