Skip to content

Commit

Permalink
add function names
Browse files Browse the repository at this point in the history
  • Loading branch information
ecopsychologer committed Nov 17, 2023
1 parent 7941c4e commit 717ac50
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 67 deletions.
8 changes: 4 additions & 4 deletions include/unk_02096420.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"

u8 sub_02096420(Pokemon * param0, u16 param1, u16 param2, u32 param3);
u8 sub_0209693C(Party * param0, u16 param1, u8 param2, u8 param3, u32 param4);
u8 sub_02096954(Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4);
u8 CheckItemEffectsOnPokemon(Pokemon * param0, u16 param1, u16 param2, u32 param3);
u8 CheckItemEffectsOnPartyMember(Party * param0, u16 param1, u8 param2, u8 param3, u32 param4);
u8 ApplyItemEffectsToPokemon(Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4);
u8 sub_02096F14(Party * param0, u16 param1, u8 param2, u8 param3, u16 param4, u32 param5);
void HealParty(Party * party);
void HealAllPokemonInParty(Party * party);

#endif // POKEPLATINUM_UNK_02096420_H
2 changes: 1 addition & 1 deletion src/overlay104/ov104_0222FBE4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ static BOOL ov104_02231050 (UnkStruct_ov104_0222E930 * param0)

v0 = sub_0209B970(param0->unk_00->unk_00);

HealParty(Party_GetFromSavedata(v0->unk_08));
HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_08));
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/overlay104/ov104_022395F0.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ BOOL ov104_02239B14 (UnkStruct_ov104_0222E930 * param0)
sub_0204A4C8(v1, v2->unk_08);
}

HealParty(Party_GetFromSavedata(v2->unk_08));
HealAllPokemonInParty(Party_GetFromSavedata(v2->unk_08));
sub_0209BA80(v1);

v1->unk_8D4 = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/overlay104/ov104_0223A7F4.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ BattleParams * ov104_0223ABA0 (UnkStruct_ov104_0223ADA0 * param0, UnkStruct_ov10
v2 = ov104_0223AA50(param0->unk_04);
v3 = ov104_0223AA74(param0->unk_04, 0);

HealParty(param0->unk_4D4);
HealParty(param0->unk_4D8);
HealAllPokemonInParty(param0->unk_4D4);
HealAllPokemonInParty(param0->unk_4D8);

v4 = sub_02051D8C(11, ov104_0223AD74(param0->unk_04));
sub_020521B8(v4, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);
Expand Down
2 changes: 1 addition & 1 deletion src/overlay104/ov104_0223AF58.c
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ BattleParams * ov104_0223B250 (UnkStruct_ov104_0223B5C0 * param0, UnkStruct_ov10
v5 = ov104_0223B50C(param0->unk_04);
v13 = Party_GetFromSavedata(param0->unk_6FC);

HealParty(v13);
HealAllPokemonInParty(v13);

v8 = sub_02051D8C(11, ov104_0223B4D4(param0->unk_04));
sub_020521B8(v8, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);
Expand Down
2 changes: 1 addition & 1 deletion src/overlay104/ov104_0223B6F4.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ BattleParams * ov104_0223B810 (UnkStruct_ov104_0223BA10 * param0, UnkStruct_ov10
v2 = ov104_0223B7A8(param0->unk_10, 0);
v3 = ov104_0223B7DC(param0->unk_10, 0);

HealParty(param0->unk_2C);
HealAllPokemonInParty(param0->unk_2C);
v5 = sub_02051D8C(11, ov104_0223B9E4(param0->unk_10));
sub_020521B8(v5, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);

Expand Down
4 changes: 2 additions & 2 deletions src/overlay104/ov104_0223BCBC.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ BattleParams * ov104_0223BDD8 (UnkStruct_ov104_0223BFFC * param0, UnkStruct_ov10
break;
}

HealParty(param0->unk_70);
HealParty(param0->unk_74);
HealAllPokemonInParty(param0->unk_70);
HealAllPokemonInParty(param0->unk_74);

return v5;
}
Expand Down
2 changes: 1 addition & 1 deletion src/overlay107/ov107_02241AE0.c
Original file line number Diff line number Diff line change
Expand Up @@ -3564,7 +3564,7 @@ void ov107_02245438 (int param0, int param1, void * param2, void * param3)

static void ov107_02245454 (Pokemon * param0, u16 param1)
{
sub_02096954(param0, param1, 0, 0, 100);
ApplyItemEffectsToPokemon(param0, param1, 0, 0, 100);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/unk_0203F6C4.c
Original file line number Diff line number Diff line change
Expand Up @@ -5681,7 +5681,7 @@ static BOOL sub_02043C3C (UnkStruct_0203E724 * param0)
{
UnkStruct_0203CDB0 * v0 = sub_02050A60(param0->unk_28);

HealParty(Party_GetFromSavedata(v0->unk_0C));
HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions src/unk_02050A74.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static BOOL sub_02050B30 (UnkStruct_020508D4 * param0)
}

if (sub_0206A984(sub_020507E4(v0->unk_0C))) {
HealParty(Party_GetFromSavedata(v0->unk_0C));
HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
}

sub_020518B0(v0, v1->unk_10);
Expand Down Expand Up @@ -405,7 +405,7 @@ static BOOL sub_02050EE0 (UnkStruct_020508D4 * param0)
}

if (sub_0206A984(sub_020507E4(v0->unk_0C))) {
HealParty(Party_GetFromSavedata(v0->unk_0C));
HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
}

sub_020518B0(v0, v1->unk_10);
Expand Down
2 changes: 1 addition & 1 deletion src/unk_02052C6C.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static BOOL sub_02052CBC (UnkStruct_020508D4 * param0)
{
int v6;

HealParty(Party_GetFromSavedata(v2->unk_0C));
HealAllPokemonInParty(Party_GetFromSavedata(v2->unk_0C));
sub_02024804();
v6 = sub_020246E0(v2->unk_0C);
sub_02052C6C(v2, v3->unk_00);
Expand Down
2 changes: 1 addition & 1 deletion src/unk_0207E0B8.c
Original file line number Diff line number Diff line change
Expand Up @@ -2603,7 +2603,7 @@ static int sub_0208107C (UnkStruct_0207F248 * param0)
return 6;
}

if (sub_0209693C(param0->unk_5A4->unk_00, param0->unk_5A4->unk_24, param0->unk_B11, 0, 12) == 1) {
if (CheckItemEffectsOnPartyMember(param0->unk_5A4->unk_00, param0->unk_5A4->unk_24, param0->unk_B11, 0, 12) == 1) {
Bag_SubtractItem(param0->unk_5A4->unk_04, param0->unk_5A4->unk_24, 1, 12);

if (Item_Get(v0, 26) != 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/unk_02084B70.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ int sub_02085804 (UnkStruct_0207F248 * param0)
case 1:

v0 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11);
sub_02096954(v0, param0->unk_5A4->unk_24, 0, sub_02086930(param0), 12);
ApplyItemEffectsToPokemon(v0, param0->unk_5A4->unk_24, 0, sub_02086930(param0), 12);

v2 = Pokemon_GetValue(v0, MON_DATA_CURRENT_HP, NULL);
v1 = MessageLoader_GetNewStrbuf(param0->unk_69C, 70);
Expand Down
Loading

0 comments on commit 717ac50

Please sign in to comment.