Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u8 func_80B312C8(EnWeatherTag* this, GlobalContext* globalCtx, u8 arg2, u8 arg3, u8 arg4, u8 arg5, u16 arg6, u8 arg7) {
- s32 pad;
- u8 ret = 0;
- Player* player = PLAYER;
- if (func_8002DB8C(&player->actor, &this->actor) < (this->actor.params >> 8) * 100.0f) {
- if ((globalCtx->envCtx.unk_1E != 0) ||
- (!D_8011FB3C || !(globalCtx->skyboxId == 1 || globalCtx->envCtx.unk_1F != globalCtx->envCtx.unk_20))) {
- D_8011FB38 = 1;
- if (globalCtx->envCtx.gloomySkyEvent == 0 &&
- ((globalCtx->envCtx.unk_1E != 0) ||
- (!(globalCtx->envCtx.unk_1F == 1 || globalCtx->envCtx.unk_21 != 0)))) {
- D_8011FB38 = 0;
- if (D_8011FB30 != arg7) {
- D_8011FB30 = arg7;
- if (globalCtx->envCtx.gloomySkyEvent == 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;
- }
- }
- ret = 1;
- }
- } else {
- if (D_8011FB40 != 0) {
- gSaveContext.dayTime += 0x14;
- }
- }
- }
- return ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement