Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u8 func_80B3149C(EnWeatherTag *this, GlobalContext *globalCtx, u8 arg2, u8 arg3, u8 arg4, u8 arg5, u16 arg6, u8 arg7) {
- u32 sp23;
- u8 phi_t0 = 0;
- Player* player = PLAYER;
- if (!(((( this->actor.params >> 8) * 100.0f) + 100.0f) < func_8002DB8C(&player->actor, &this->actor))) {
- goto block_12;
- }
- if (globalCtx->envCtx.unk_1E != 0 || D_8011FB3C == 0) {
- goto block_5;
- }
- if (globalCtx->skyboxId == 1 || (globalCtx->envCtx.unk_1F != globalCtx->envCtx.unk_20)) {
- goto block_10;
- }
- block_5:
- D_8011FB38 = 1;
- if (globalCtx->envCtx.gloomySkyEvent != 0) {
- goto block_12;
- }
- if (globalCtx->envCtx.unk_1E != 0) {
- goto block_9;
- }
- if (globalCtx->envCtx.unk_1F == 1 || (globalCtx->envCtx.unk_21 != 0)) {
- goto block_12;
- }
- block_9:
- D_8011FB38 = 0;
- D_8011FB30 = 0;
- globalCtx->envCtx.unk_19 = 1;
- globalCtx->envCtx.gloomySky = arg2;
- globalCtx->envCtx.unk_18 = arg3;
- globalCtx->envCtx.unk_1A = arg6;
- globalCtx->envCtx.unk_21 = 1;
- globalCtx->envCtx.unk_1F = arg4;
- globalCtx->envCtx.unk_20 = arg5;
- D_8011FB34 = arg5;
- globalCtx->envCtx.unk_24 = arg6;
- globalCtx->envCtx.unk_22 = globalCtx->envCtx.unk_24;
- phi_t0 = 1 & 0xFF;
- goto block_12;
- block_10:
- if (D_8011FB40 != 0) {
- gSaveContext.dayTime += 0x141;
- }
- block_12:
- return phi_t0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement