From 320eff669fafffb04d2d546ce89c8124854c7bd0 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Thu, 2 Nov 2023 21:32:26 -0600 Subject: [PATCH] Match func_80C0D27C --- src/overlays/actors/ovl_En_Bsb/z_en_bsb.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/overlays/actors/ovl_En_Bsb/z_en_bsb.c b/src/overlays/actors/ovl_En_Bsb/z_en_bsb.c index d15c0004b..7ced19dd1 100644 --- a/src/overlays/actors/ovl_En_Bsb/z_en_bsb.c +++ b/src/overlays/actors/ovl_En_Bsb/z_en_bsb.c @@ -513,7 +513,21 @@ void func_80C0D214(EnBsb* this) { this->actionFunc = func_80C0D27C; } -#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_En_Bsb/func_80C0D27C.s") +void func_80C0D27C(EnBsb *this, PlayState *play) { + if (this->unk_324 == 0xB) { + if ((this->unk_322 != 0) && (this->unk_322 < 0x3C)) { + this->unk_324 = 0xA; + } + } + if (((this->unk_324 == 0xB) || (this->unk_324 == 0xA)) && (this->unk_322 != 0)) { + Actor_SpawnIceEffects(play, &this->actor, &this->unk_330, 0x11, 2, this->unk_32C, 0.4f); + this->unk_322 = 0; + this->unk_324 = 0; + } + if (this->unk294 == 0) { + func_80C0C86C(this); + } +} void func_80C0D334(EnBsb* this) { this->actor.speed = 0.0f;