From 2cb423d9ec62072f9ba2d360a3efddbab85d0f16 Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Fri, 21 Oct 2022 16:57:49 -0700 Subject: [PATCH] Document object_os (#1414) --- assets/xml/objects/object_os.xml | 71 ++++++++++--------- src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c | 4 +- src/overlays/actors/ovl_En_Ossan/z_en_ossan.c | 18 +++-- 3 files changed, 53 insertions(+), 40 deletions(-) diff --git a/assets/xml/objects/object_os.xml b/assets/xml/objects/object_os.xml index 7c3029443c..d98b3a0f52 100644 --- a/assets/xml/objects/object_os.xml +++ b/assets/xml/objects/object_os.xml @@ -1,36 +1,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c b/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c index aedb325c26..4be5ea5242 100644 --- a/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c +++ b/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c @@ -1038,7 +1038,7 @@ void DemoEc_DrawPotionShopOwner(DemoEc* this, PlayState* play) { void DemoEc_InitMaskShopOwner(DemoEc* this, PlayState* play) { DemoEc_UseDrawObject(this, play); - DemoEc_InitSkelAnime(this, play, &object_os_Skel_004658); + DemoEc_InitSkelAnime(this, play, &gHappyMaskSalesmanSkel); DemoEc_UseAnimationObject(this, play); DemoEc_ChangeAnimation(this, &gDemoEcPotionShopOwnerAnim, 0, 0.0f, false); func_8096D5D4(this, play); @@ -1054,7 +1054,7 @@ void DemoEc_UpdateMaskShopOwner(DemoEc* this, PlayState* play) { } void DemoEc_DrawMaskShopOwner(DemoEc* this, PlayState* play) { - DemoEc_DrawSkeleton(this, play, gOsEyeClosedTex, NULL, NULL, NULL); + DemoEc_DrawSkeleton(this, play, gHappyMaskSalesmanEyeClosedTex, NULL, NULL, NULL); } void DemoEc_InitFishingOwner(DemoEc* this, PlayState* play) { diff --git a/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c b/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c index 1177489436..eb1c8ef358 100644 --- a/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c +++ b/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c @@ -2023,7 +2023,7 @@ void EnOssan_InitPotionShopkeeper(EnOssan* this, PlayState* play) { } void EnOssan_InitHappyMaskShopkeeper(EnOssan* this, PlayState* play) { - SkelAnime_InitFlex(play, &this->skelAnime, &object_os_Skel_004658, &object_os_Anim_0002E4, NULL, NULL, 0); + SkelAnime_InitFlex(play, &this->skelAnime, &gHappyMaskSalesmanSkel, &gHappyMaskSalesmanIdleAnim, NULL, NULL, 0); this->actor.draw = EnOssan_DrawHappyMaskShopkeeper; this->obj3ToSeg6Func = NULL; } @@ -2454,8 +2454,11 @@ void EnOssan_DrawZoraShopkeeper(Actor* thisx, PlayState* play) { } void EnOssan_DrawPotionShopkeeper(Actor* thisx, PlayState* play) { - static void* sPotionShopkeeperEyeTextures[] = { gPotionShopkeeperEyeOpenTex, gPotionShopkeeperEyeHalfTex, - gPotionShopkeeperEyeClosedTex }; + static void* sPotionShopkeeperEyeTextures[] = { + gPotionShopkeeperEyeOpenTex, + gPotionShopkeeperEyeHalfTex, + gPotionShopkeeperEyeClosedTex, + }; EnOssan* this = (EnOssan*)thisx; s32 pad; @@ -2472,7 +2475,7 @@ void EnOssan_DrawPotionShopkeeper(Actor* thisx, PlayState* play) { } void EnOssan_DrawHappyMaskShopkeeper(Actor* thisx, PlayState* play) { - static void* sHappyMaskShopkeeperEyeTextures[] = { gOsEyeClosedTex, gOsEyeOpenTex }; + static void* sHappyMaskShopkeeperEyeTextures[] = { gHappyMaskSalesmanEyeClosedTex, gHappyMaskSalesmanEyeOpenTex }; EnOssan* this = (EnOssan*)thisx; s32 pad; @@ -2491,8 +2494,11 @@ void EnOssan_DrawHappyMaskShopkeeper(Actor* thisx, PlayState* play) { } void EnOssan_DrawBombchuShopkeeper(Actor* thisx, PlayState* play) { - static void* sBombchuShopkeeperEyeTextures[] = { gBombchuShopkeeperEyeOpenTex, gBombchuShopkeeperEyeHalfTex, - gBombchuShopkeeperEyeClosedTex }; + static void* sBombchuShopkeeperEyeTextures[] = { + gBombchuShopkeeperEyeOpenTex, + gBombchuShopkeeperEyeHalfTex, + gBombchuShopkeeperEyeClosedTex, + }; EnOssan* this = (EnOssan*)thisx; s32 pad;