Skip to content

Commit

Permalink
match it_802D3D6C. might need more work
Browse files Browse the repository at this point in the history
depending on the usage of an attribute struct
in other functions
  • Loading branch information
wyatt-avilla committed Mar 5, 2024
1 parent 4bb10a3 commit 951fade
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/melee/it/items/itmew.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,11 @@ bool it_802D3D28(Item_GObj* gobj)
return false;
}

void it_802D3D6C(Item_GObj* arg0)
void it_802D3D6C(Item_GObj* gobj)
{
void* temp_r4;

temp_r4 = M2C_FIELD(arg0, void**, 0x2C);
M2C_FIELD(temp_r4, f32*, 0x44) =
M2C_FIELD(temp_r4, f32*, 0x44) +
M2C_FIELD(M2C_FIELD(M2C_FIELD(temp_r4, void**, 0xC4), void**, 4), f32*,
0xC);
Item* ip = GET_ITEM(gobj);
void* attr = ip->xC4_article_data->x4_specialAttributes;
ip->x40_vel.y += M2C_FIELD(attr, f32*, 0xC);
}

bool it_802D3D8C(Item_GObj* gobj)
Expand Down

0 comments on commit 951fade

Please sign in to comment.