// // GameStatsManager::keyCostForSecretChest from 0x100335d48 to 0x100335d9c (84 bytes) // // 1 xrefs: // > SecretRewardsLayer::onSelectItem @ 0x1002eb4a4 // // 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 __fastcall GameStatsManager::keyCostForSecretChest(GameStatsManager *a1, int a2) { int v2; // w15 int v3; // w14 int v4; // w13 int v5; // w12 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