//
// GJMapObject::touchMonster from 0x100251aa0 to 0x100251b40 (160 bytes)
//
// 1 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x1002533c6
//
// 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:27:24 +0000
//
__int64 __fastcall GJMapObject::touchMonster(__int64 a1)
{
__int64 result; // rax
int v2; // ebx
int v3; // eax
int v4; // ecx
int v5; // r8d
int v6; // r9d
__int64 v7; // rbx
result = *(unsigned int *)(a1 + 368);
*(_DWORD *)(a1 + 368) = result + 1;
if ( (int)result <= 8 )
{
cocos2d::CCNode::stopActionByTag(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 1464LL), 2);
v2 = cocos2d::CCTintTo::create(255, 0, 0, 0.050000001);
v3 = cocos2d::CCTintTo::create(0, 0, 0, 0.5);
v7 = sub_10039EB60(v2, v3, 0, v4, v5, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 72LL))(v7, 2);
return cocos2d::CCNode::runAction(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 1464LL), v7);
}
return result;
}