// // GameStatsManager::keyCostForSecretChest from 0x7a61c4 to 0x7a621c (88 bytes) // // 4 xrefs: // > GameStatsManager::unlockSecretChest @ 0x7bc06c // > GameStatsManager::recountSpecialStats @ 0x7bd8d0 // > SecretRewardsLayer::onSelectItem @ 0xa61e34 // > @ 0x37b90 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int GameStatsManager::keyCostForSecretChest(GameStatsManager *a1, int a2) { int result; // w0 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 ) { if ( a2 <= 1000 ) return 1; else return 5; } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source