Skip to content

Commit

Permalink
Merge pull request #858 from AreaZeroArven/work8
Browse files Browse the repository at this point in the history
Unassembler and rename sub_8044804
  • Loading branch information
luckytyphlosion authored Sep 30, 2024
2 parents 5d2b9c7 + eb2d041 commit e898671
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 618 deletions.
2 changes: 1 addition & 1 deletion include/battle_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void nullsub_11();
void UpdateOamPriorityInAllHealthboxes(u8);
void sub_8043F44(u8);
void sub_804454C(void);
u8 sub_8044804(u8, const struct HpAndStatus *, u8, u8);
u8 CreatePartyStatusSummarySprites(u8, const struct HpAndStatus *, u8, u8);
void sub_8044CA0(u8);
void sub_8045A5C(u8, struct Pokemon *, u8);
s32 sub_8045C78(u8, u8, u8, u8);
Expand Down
2 changes: 1 addition & 1 deletion src/battle_controller_link_opponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ void LinkOpponentHandlecmd48(void)
ewram17810[gActiveBattler].unk1_1 = 0;
}
}
gUnknown_02024E68[gActiveBattler] = sub_8044804(
gUnknown_02024E68[gActiveBattler] = CreatePartyStatusSummarySprites(
gActiveBattler,
(struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4],
gBattleBufferA[gActiveBattler][1],
Expand Down
2 changes: 1 addition & 1 deletion src/battle_controller_link_partner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ void LinkPartnerHandlecmd48(void)
}

ewram17810[gActiveBattler].unk0_0 = 1;
gUnknown_02024E68[gActiveBattler] = sub_8044804(
gUnknown_02024E68[gActiveBattler] = CreatePartyStatusSummarySprites(
gActiveBattler,
(struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4],
gBattleBufferA[gActiveBattler][1],
Expand Down
2 changes: 1 addition & 1 deletion src/battle_controller_opponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ void OpponentHandlecmd48(void)
ewram17810[gActiveBattler].unk1_1 = 0;
}
}
gUnknown_02024E68[gActiveBattler] = sub_8044804(
gUnknown_02024E68[gActiveBattler] = CreatePartyStatusSummarySprites(
gActiveBattler,
(struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4],
gBattleBufferA[gActiveBattler][1],
Expand Down
2 changes: 1 addition & 1 deletion src/battle_controller_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,7 @@ void PlayerHandlecmd48(void)
else
{
ewram17810[gActiveBattler].unk0_0 = 1;
gUnknown_02024E68[gActiveBattler] = sub_8044804(gActiveBattler, (struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4], gBattleBufferA[gActiveBattler][1], gBattleBufferA[gActiveBattler][2]);
gUnknown_02024E68[gActiveBattler] = CreatePartyStatusSummarySprites(gActiveBattler, (struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4], gBattleBufferA[gActiveBattler][1], gBattleBufferA[gActiveBattler][2]);
ewram17810[gActiveBattler].unk5 = 0;
if (gBattleBufferA[gActiveBattler][2] != 0)
ewram17810[gActiveBattler].unk5 = 0x5D;
Expand Down
2 changes: 1 addition & 1 deletion src/battle_controller_wally.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ void WallyHandlecmd48(void)
else
{
ewram17810[gActiveBattler].unk0_0 = 1;
gUnknown_02024E68[gActiveBattler] = sub_8044804(gActiveBattler, (struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4], gBattleBufferA[gActiveBattler][1], gBattleBufferA[gActiveBattler][2]);
gUnknown_02024E68[gActiveBattler] = CreatePartyStatusSummarySprites(gActiveBattler, (struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4], gBattleBufferA[gActiveBattler][1], gBattleBufferA[gActiveBattler][2]);
WallyBufferExecCompleted();
}
}
Expand Down
Loading

0 comments on commit e898671

Please sign in to comment.