Advertisement
fggkyle

Untitled

Aug 17th, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. u8 func_80B3149C(EnWeatherTag *this, GlobalContext *globalCtx, u8 arg2, u8 arg3, u8 arg4, u8 arg5, u16 arg6, u8 arg7) {
  2. u32 sp23;
  3. u8 phi_t0 = 0;
  4.  
  5. Player* player = PLAYER;
  6.  
  7. if (!(((( this->actor.params >> 8) * 100.0f) + 100.0f) < func_8002DB8C(&player->actor, &this->actor))) {
  8. goto block_12;
  9. }
  10. if (globalCtx->envCtx.unk_1E != 0 || D_8011FB3C == 0) {
  11. goto block_5;
  12. }
  13. if (globalCtx->skyboxId == 1 || (globalCtx->envCtx.unk_1F != globalCtx->envCtx.unk_20)) {
  14. goto block_10;
  15. }
  16. block_5:
  17. D_8011FB38 = 1;
  18. if (globalCtx->envCtx.gloomySkyEvent != 0) {
  19. goto block_12;
  20. }
  21. if (globalCtx->envCtx.unk_1E != 0) {
  22. goto block_9;
  23. }
  24. if (globalCtx->envCtx.unk_1F == 1 || (globalCtx->envCtx.unk_21 != 0)) {
  25. goto block_12;
  26. }
  27. block_9:
  28. D_8011FB38 = 0;
  29. D_8011FB30 = 0;
  30. globalCtx->envCtx.unk_19 = 1;
  31. globalCtx->envCtx.gloomySky = arg2;
  32. globalCtx->envCtx.unk_18 = arg3;
  33. globalCtx->envCtx.unk_1A = arg6;
  34. globalCtx->envCtx.unk_21 = 1;
  35. globalCtx->envCtx.unk_1F = arg4;
  36. globalCtx->envCtx.unk_20 = arg5;
  37. D_8011FB34 = arg5;
  38. globalCtx->envCtx.unk_24 = arg6;
  39. globalCtx->envCtx.unk_22 = globalCtx->envCtx.unk_24;
  40. phi_t0 = 1 & 0xFF;
  41. goto block_12;
  42. block_10:
  43. if (D_8011FB40 != 0) {
  44. gSaveContext.dayTime += 0x141;
  45. }
  46. block_12:
  47. return phi_t0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement