diff options
| author | Tom Overton <tom-overton@users.noreply.github.com> | 2022-09-24 11:28:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-24 15:28:49 -0300 |
| commit | 4088aea3f7db074908d35e24b8382fb1244ae00a (patch) | |
| tree | 29c24e12e595f36c0491fb0cfbe4433830f17851 | |
| parent | 62502ac22f063557fd025aaf94b93d5126f2a3a9 (diff) | |
Document object_lotus (lily pad) (#1067)
| -rw-r--r-- | assets/xml/objects/object_lotus.xml | 9 | ||||
| -rw-r--r-- | src/overlays/actors/ovl_Bg_Lotus/z_bg_lotus.c | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/assets/xml/objects/object_lotus.xml b/assets/xml/objects/object_lotus.xml index a9835b81b..b9f40033c 100644 --- a/assets/xml/objects/object_lotus.xml +++ b/assets/xml/objects/object_lotus.xml @@ -1,8 +1,9 @@ <Root> + <!-- Assets for Lily Pads --> <File Name="object_lotus" Segment="6"> - <DList Name="object_lotus_DL_000040" Offset="0x40" /> - <Texture Name="object_lotus_TLUT_000100" OutName="tlut_000100" Format="rgba16" Width="4" Height="4" Offset="0x100" /> - <Texture Name="object_lotus_Tex_000120" OutName="tex_000120" Format="ci4" Width="64" Height="64" Offset="0x120" /> - <Collision Name="object_lotus_Colheader_000A20" Offset="0xA20" /> + <DList Name="gLilyPadDL" Offset="0x40" /> <!-- Original name is "z2_hasu_model" ("lotus") --> + <Texture Name="gLilyPadTLUT" OutName="lily_pad_tlut" Format="rgba16" Width="4" Height="4" Offset="0x100" /> + <Texture Name="gLilyPadTex" OutName="lily_pad" Format="ci4" Width="64" Height="64" Offset="0x120" /> + <Collision Name="gLilyPadCol" Offset="0xA20" /> </File> </Root> diff --git a/src/overlays/actors/ovl_Bg_Lotus/z_bg_lotus.c b/src/overlays/actors/ovl_Bg_Lotus/z_bg_lotus.c index 6ac4ac866..72a38b21b 100644 --- a/src/overlays/actors/ovl_Bg_Lotus/z_bg_lotus.c +++ b/src/overlays/actors/ovl_Bg_Lotus/z_bg_lotus.c @@ -43,7 +43,7 @@ void BgLotus_Init(Actor* thisx, PlayState* play) { Actor_ProcessInitChain(&this->dyna.actor, sInitChain); DynaPolyActor_Init(&this->dyna, 1); - DynaPolyActor_LoadMesh(play, &this->dyna, &object_lotus_Colheader_000A20); + DynaPolyActor_LoadMesh(play, &this->dyna, &gLilyPadCol); this->dyna.actor.floorHeight = BgCheck_EntityRaycastFloor5(&play->colCtx, &thisx->floorPoly, &bgId, &this->dyna.actor, &this->dyna.actor.world.pos); this->timer2 = 96; @@ -171,5 +171,5 @@ void BgLotus_Update(Actor* thisx, PlayState* play) { } void BgLotus_Draw(Actor* thisx, PlayState* play) { - Gfx_DrawDListOpa(play, object_lotus_DL_000040); + Gfx_DrawDListOpa(play, gLilyPadDL); } |
