//
// EnhancedGameObject::canAllowMultiActivate from 0x1402a1770 to 0x1402a183d (205 bytes)
//
// 42 xrefs:
// > ??> @ 0x14075ee80
// > ??> @ 0x14081f288
// > ??> @ 0x140820200
// > ??> @ 0x140820958
// > ??> @ 0x140821010
// > ??> @ 0x140821778
// > ??> @ 0x140821e30
// > ??> @ 0x140822510
// > ??> @ 0x140822bc8
// > ??> @ 0x1408234d8
// > ??> @ 0x140823c20
// > ??> @ 0x1408242d8
// > ??> @ 0x140824ad0
// > ??> @ 0x140825188
// > ??> @ 0x140825840
// > ??> @ 0x1408260b0
// > ??> @ 0x1408268a8
// > ??> @ 0x140827050
// > ??> @ 0x140827780
// > ??> @ 0x140827e38
// > ??> @ 0x140828590
// > ??> @ 0x140828dd8
// > ??> @ 0x140829490
// > ??> @ 0x140829c10
// > ??> @ 0x14082a390
// > ??> @ 0x14082aa48
// > ??> @ 0x14082b100
// > ??> @ 0x14082bb10
// > ??> @ 0x14082c240
// > ??> @ 0x14082c8f8
// > ??> @ 0x14082cfb0
// > ??> @ 0x14082d668
// > ??> @ 0x14082de38
// > ??> @ 0x14082e5e0
// > ??> @ 0x14082ec98
// > ??> @ 0x14082f350
// > ??> @ 0x14082fa08
// > ??> @ 0x1408300c0
// > ??> @ 0x140830778
// > ??> @ 0x140830e30
// > ??> @ 0x140831650
// > ??> @ 0x140831dd0
//
// 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 11:29:15 +0000
//
bool __fastcall EnhancedGameObject::canAllowMultiActivate(__int64 a1)
{
int v1; // edx
int v2; // edx
int v3; // edx
int v4; // edx
int v6; // edx
int v7; // edx
int v8; // edx
int v9; // edx
int v10; // edx
int v11; // edx
int v12; // edx
int v13; // edx
int v14; // edx
v1 = *(_DWORD *)(a1 + 1036);
if ( v1 <= 286 )
{
if ( v1 != 286 )
{
switch ( v1 )
{
case 10:
case 11:
case 12:
case 13:
case 35:
case 36:
case 45:
case 46:
case 47:
case 67:
case 84:
case 99:
case 101:
case 111:
case 140:
case 141:
return 1;
default:
return 0;
}
}
return 1;
}
if ( v1 > 1594 )
{
if ( v1 > 2926 )
{
v12 = v1 - 3004;
if ( !v12 )
return 1;
v13 = v12 - 1;
if ( !v13 )
return 1;
v14 = v13 - 22;
if ( !v14 )
return 1;
return v14 == 616;
}
else
{
if ( v1 == 2926 )
return 1;
v9 = v1 - 1704;
if ( !v9 )
return 1;
v10 = v9 - 47;
if ( !v10 )
return 1;
v11 = v10 - 182;
if ( !v11 )
return 1;
return v11 == 969;
}
}
else
{
if ( v1 == 1594 )
return 1;
if ( v1 > 1022 )
{
v6 = v1 - 1330;
if ( !v6 )
return 1;
v7 = v6 - 1;
if ( !v7 )
return 1;
v8 = v7 - 1;
if ( !v8 )
return 1;
return v8 == 1;
}
else
{
if ( v1 == 1022 )
return 1;
v2 = v1 - 287;
if ( !v2 )
return 1;
v3 = v2 - 373;
if ( !v3 )
return 1;
v4 = v3 - 85;
if ( !v4 )
return 1;
return v4 == 2;
}
}
}