//
// RewardUnlockLayer::readyToCollect from 0x4e7830 to 0x4e7844 (20 bytes)
//
// 1 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0x4e9cdc
//
// 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
//
bool RewardUnlockLayer::readyToCollect(RewardUnlockLayer *a1, GJRewardItem *a2)
{
if ( a2 )
return LOBYTE(a2->m_rewardType)
- LOBYTE(a1->m_chestType)
+ (a2->m_rewardType == a1->m_chestType)
+ LOBYTE(a1->m_chestType)
- LOBYTE(a2->m_rewardType);
else
return 0;
}