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

Method SomethingWonderful

src/SB/Game/zNPCTypeCommon.cpp:2957–2998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2955}
2956
2957S32 zNPCCommon::SomethingWonderful()
2958{
2959 S32 flg_wonder = g_flg_wonder;
2960
2961 if (globals.player.Health < 1)
2962 {
2963 // Idk why they wouldn't do flg_wonder |= x here, but this is needed to match
2964 flg_wonder = g_flg_wonder | 0b00000010;
2965 }
2966
2967 if (globals.player.ControlOff & 0xffffbeff)
2968 {
2969 flg_wonder |= 0b00000100;
2970 }
2971
2972 if (cruise_bubble::active() && (this->SelfType() & 0xffffff00) == 'NTF\0')
2973 {
2974 flg_wonder |= 0b01000000;
2975 }
2976
2977 if (globals.cmgr && globals.cmgr->csn)
2978 {
2979 flg_wonder |= 0b00000001;
2980 }
2981
2982 if (g_isConversation)
2983 {
2984 flg_wonder |= 0b00001000;
2985 }
2986
2987 if (!NPCC_LampStatus())
2988 {
2989 flg_wonder |= 0b00100000;
2990 }
2991
2992 if (zEntTeleportBox_playerIn())
2993 {
2994 flg_wonder |= 0b10000000;
2995 }
2996
2997 return flg_wonder;
2998}
2999
3000S32 zNPCCommon::SndPlayFromAFX(zAnimFxSound* afxsnd, U32* sid_played)
3001{

Callers 6

ProcessMethod · 0.80
ChkPrelimTranMethod · 0.80
FOLK_grul_goAlertFunction · 0.80
MERC_grul_goAlertFunction · 0.80
ProcessMethod · 0.80
ProcessMethod · 0.80

Calls 3

NPCC_LampStatusFunction · 0.85
zEntTeleportBox_playerInFunction · 0.85
SelfTypeMethod · 0.80

Tested by

no test coverage detected