Advertisement
fggkyle

Untitled

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