| 2955 | } |
| 2956 | |
| 2957 | S32 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 | |
| 3000 | S32 zNPCCommon::SndPlayFromAFX(zAnimFxSound* afxsnd, U32* sid_played) |
| 3001 | { |
no test coverage detected