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

Method ChkRewardCheat

src/SB/Game/zNPCGoalVillager.cpp:804–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void zNPCGoalHurt::ChkRewardCheat()
805{
806 static const U32 shinies[] = { 4, 2, 1 };
807
808 if (zGameExtras_CheatFlags() & (1 << 20))
809 {
810 zNPCVillager* npc = (zNPCVillager*)psyche->clt_owner;
811 zEntPickup_SpawnNRewards((U32*)shinies, 3, npc->Center());
812 }
813}
814
815S32 zNPCGoalBalloon::Enter(F32 dt, void* updCtxt)
816{

Callers

nothing calls this directly

Calls 3

zGameExtras_CheatFlagsFunction · 0.85
CenterMethod · 0.80
zEntPickup_SpawnNRewardsFunction · 0.70

Tested by

no test coverage detected