//
// CountTriggerGameObject::triggerObject from 0x100390888 to 0x100390a04 (380 bytes)
//
// 1 xrefs:
// > ??> @ 0x100802818
//
// 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 __fastcall CountTriggerGameObject::triggerObject(
CountTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
int m_objectID; // w8
GJEffectManager *m_effectManager; // x20
int v8; // w21
int v9; // w22
bool m_multiActivate; // w23
int v11; // w24
bool v12; // w25
int m_itemID; // w21
int m_pickupCount; // w22
int m_targetGroupID; // w23
bool m_activateGroup; // w24
int m_pickupTriggerMode; // w25
std::vector __p; // [xsp+8h] [xbp-58h] BYREF
m_objectID = a1->m_objectID;
switch ( m_objectID )
{
case 1817:
GJBaseGameLayer::addPickupTrigger(a2, a1);
return;
case 1811:
m_itemID = a1->m_itemID;
m_pickupCount = a1->m_pickupCount;
m_targetGroupID = a1->m_targetGroupID;
m_activateGroup = a1->m_activateGroup;
m_pickupTriggerMode = a1->m_pickupTriggerMode;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJBaseGameLayer::testInstantCountTrigger(
a2,
m_itemID,
m_pickupCount,
m_targetGroupID,
m_activateGroup,
m_pickupTriggerMode,
&__p,
a1->m_uniqueID,
a1->m_controlID);
break;
case 1611:
m_effectManager = a2->m_effectManager;
v8 = a1->m_itemID;
v9 = a1->m_pickupCount;
m_multiActivate = a1->m_multiActivate;
v11 = a1->m_targetGroupID;
v12 = a1->m_activateGroup;
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJEffectManager::runCountTrigger(
m_effectManager,
v8,
v9,
m_multiActivate,
v11,
v12,
&__p,
a1->m_uniqueID,
a1->m_controlID);
break;
default:
EffectGameObject::triggerObject(a1, a2, a3, a4);
return;
}
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
}