diff --git a/include/script_api/common.h b/include/script_api/common.h index a2d9bf2569..137c902a6e 100644 --- a/include/script_api/common.h +++ b/include/script_api/common.h @@ -266,6 +266,7 @@ ApiStatus func_802CFE2C(ScriptInstance* script, s32 isInitialCall); ApiStatus func_802CFD30(ScriptInstance* script, s32 isInitialCall); ApiStatus func_800441F0(ScriptInstance* script, s32 isInitialCall); ApiStatus func_802D5830(ScriptInstance* script, s32 isInitialCall); +ApiStatus func_802D3474(ScriptInstance* script, s32 isInitialCall); extern Script EnemyNpcHit; extern Script EnemyNpcDefeat; diff --git a/src/battle/item/coconut.c b/src/battle/item/coconut.c index 078fed1547..16f2cc8236 100644 --- a/src/battle/item/coconut.c +++ b/src/battle/item/coconut.c @@ -207,7 +207,7 @@ Script D_802A1B6C_7304B0 = SCRIPT({ SetAnimation(0, 0, 0x10016); PlaySound(1018); sleep 3; - 0x802D3474(SI_VAR(10), D_802A1B50_7304B0); + func_802D3474(SI_VAR(10), D_802A1B50_7304B0); SI_VAR(0) = 1.0; MultiplyByActorScale(SI_VAR(0)); 0x802D38EC(SI_VAR(10), SI_VAR(0), SI_VAR(0), SI_VAR(0)); diff --git a/tools/symbol_addrs.txt b/tools/symbol_addrs.txt index 65f343539e..0f57146ad7 100644 --- a/tools/symbol_addrs.txt +++ b/tools/symbol_addrs.txt @@ -8870,3 +8870,4 @@ battle_item_snowman_doll_FadeBackgroundToBlack = 0x802A1320; // type:func rom:0x battle_item_thunder_bolt_FadeBackgroundToBlack = 0x802A1388; // type:func rom:0x722EC8 battle_item_stop_watch_FadeBackgroundToBlack = 0x802A123C; // type:func rom:0x72700C battle_item_fright_jar_FadeBackgroundToBlack = 0x802A123C; // type:func rom:0x72BB4C +func_802D3474 = 0x802D3474; // type:func rom:0xF7E24