// // GJItemIcon::darkenStoreItem_1 from 0x14027b2c0 to 0x14027b33e (126 bytes) // // 2 xrefs: // > GJShopLayer::didPurchaseItem @ 0x1402ac77b // > @ 0x1406d1118 // // 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 // void GJItemIcon::darkenStoreItem_1(GJItemIcon *a1, ShopType a2) { __int32 v3; // edx __int32 v4; // edx __int32 v5; // edx __int32 v6; // edx GLubyte v7; // cl __int16 v8; // [rsp+38h] [rbp+10h] cocos2d::ccColor3B v9; // [rsp+40h] [rbp+18h] BYREF v3 = a2 - 1; if ( !v3 ) { v8 = 7690; goto LABEL_12; } v4 = v3 - 1; if ( v4 ) { v5 = v4 - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 != 1 ) { v8 = 7740; LABEL_12: v7 = 20; goto LABEL_13; } v8 = 12850; v7 = 50; } else { v8 = 7700; v7 = 50; } } else { v8 = 5140; v7 = 40; } } else { v8 = 5665; v7 = 66; } LABEL_13: v9.b = v7; *(_WORD *)&v9.r = v8; GJItemIcon::darkenStoreItem(a1, &v9); }