MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SysEvent

Method SysEvent

src/SB/Game/zNPCTypeKingJelly.cpp:1322–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1320}
1321
1322S32 zNPCKingJelly::SysEvent(xBase* from, xBase* to, U32 toEvent, const F32* toParam,
1323 xBase* toParamWidget, S32* handled)
1324{
1325 U32 ret;
1326
1327 if (toEvent == 0x1b9)
1328 {
1329 ret = 1;
1330 }
1331 else
1332 {
1333 if (toEvent < 0x1b9)
1334 {
1335 if (toEvent == 0x1b5)
1336 {
1337 start_fight();
1338 return 1;
1339 }
1340 }
1341 else if (toEvent == 0x1d9)
1342 {
1343 xPsyche* psy = this->psy_instinct;
1344 psy->GoalSet(0x4e474d37, 1);
1345 return 1;
1346 }
1347 handled = 0;
1348 ret = zNPCCommon::SysEvent(from, to, toEvent, toParam, toParamWidget, handled);
1349 }
1350 return ret;
1351}
1352
1353void zNPCKingJelly::RenderExtra()
1354{

Callers

nothing calls this directly

Calls 2

GoalSetMethod · 0.80
SysEventFunction · 0.50

Tested by

no test coverage detected