Advertisement
fggkyle

Untitled

Aug 15th, 2020 (edited)
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.33 KB | None | 0 0
  1. u8 func_80B312C8(EnWeatherTag *this, GlobalContext *globalCtx, u8 arg2, u8 arg3, u8 arg4, u8 arg5, u16 arg6, u8 arg7) {
  2.     u8 sp23;
  3.     u8 phi_v1;
  4.  
  5.     sp23 = (u8)0U;
  6.     phi_v1 = sp23;
  7.     if (func_8002DB8C(globalCtx->actorCtx.actorList[ACTORTYPE_PLAYER].first, &this->actor) < ((f32) ((s32) this->actor.params >> 8) * 100.0f)) {
  8.         if (((globalCtx->envCtx.unk_1E == 0) && (D_8011FB3C != 0)) && (globalCtx->skyboxId != 1)) {
  9.             if ((globalCtx->envCtx.unk_20 == globalCtx->envCtx.unk_1F) && (D_8011FB38 = (u8)1U, phi_v1 = sp23, (globalCtx->envCtx.gloomySkyEvent == 0))) {
  10. block_6:
  11.                 if ((globalCtx->envCtx.unk_1E == 0) && (phi_v1 = sp23, (globalCtx->envCtx.unk_1F != 1))) {
  12.                     phi_v1 = sp23;
  13.                     if (globalCtx->envCtx.unk_21 == 0) {
  14. block_9:
  15.                         D_8011FB38 = (u8)0U;
  16.                         if (arg7 != D_8011FB30) {
  17.                             D_8011FB30 = arg7;
  18.                             if (globalCtx->envCtx.gloomySkyEvent == 0) {
  19.                                 globalCtx->envCtx.unk_19 = (u8)1U;
  20.                                 globalCtx->envCtx.gloomySky = arg2;
  21.                                 globalCtx->envCtx.unk_18 = arg3;
  22.                                 globalCtx->envCtx.unk_1A = arg6;
  23.                                 globalCtx->envCtx.unk_21 = (u8)1U;
  24.                                 globalCtx->envCtx.unk_1F = arg4;
  25.                                 globalCtx->envCtx.unk_20 = arg5;
  26.                                 D_8011FB34 = arg5;
  27.                                 globalCtx->envCtx.unk_24 = arg6;
  28.                                 globalCtx->envCtx.unk_22 = (u16) globalCtx->envCtx.unk_24;
  29.                             }
  30.                         }
  31.                         phi_v1 = (u8)1U;
  32.                     }
  33.                 } else {
  34.                     goto block_9;
  35.                 }
  36.             } else {
  37.                 phi_v1 = sp23;
  38.                 if (D_8011FB40 != 0) {
  39.                     gSaveContext.dayTime = (u16) (gSaveContext.dayTime + 0x14);
  40.                     phi_v1 = sp23;
  41.                 }
  42.             }
  43.         } else {
  44.             D_8011FB38 = (u8)1U;
  45.             phi_v1 = sp23;
  46.             if (globalCtx->envCtx.gloomySkyEvent == 0) {
  47.                 goto block_6;
  48.             }
  49.         }
  50.     }
  51.     return phi_v1;
  52. }
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement