rename some stat effect functions

This commit is contained in:
DizzyEggg
2025-10-31 16:32:10 +01:00
parent a90c95dd8a
commit 6911fef122
3 changed files with 12 additions and 12 deletions

View File

@@ -94,10 +94,10 @@ void sub_8041EE8(Entity *pokemon);
void sub_8041EF8(Entity *pokemon);
void sub_8041F08(Entity *pokemon);
void nullsub_90(Entity *pokemon);
void sub_8041F28(Entity *pokemon, struct StatIndex stat);
void sub_8041F4C(Entity *pokemon, struct StatIndex stat);
void sub_8041F70(Entity *pokemon, struct StatIndex stat);
void sub_8041F94(Entity *pokemon, struct StatIndex stat);
void PlayOffensiveStatDownEffect(Entity *pokemon, struct StatIndex stat);
void PlayDefensiveStatDownEffect(Entity *pokemon, struct StatIndex stat);
void PlayOffensiveStatUpEffect(Entity *pokemon, struct StatIndex stat);
void PlayDefensiveStatUpEffect(Entity *pokemon, struct StatIndex stat);
void sub_8041FB4(Entity *pokemon, struct StatIndex stat);
void sub_8041FD8(Entity *pokemon, struct StatIndex stat);
void sub_8041FFC(Entity *pokemon, struct StatIndex stat);

View File

@@ -840,7 +840,7 @@ void nullsub_90(Entity *pokemon)
{
}
void sub_8041F28(Entity *pokemon, struct StatIndex stat)
void PlayOffensiveStatDownEffect(Entity *pokemon, struct StatIndex stat)
{
if (stat.id == STAT_INDEX_PHYSICAL)
{
@@ -852,7 +852,7 @@ void sub_8041F28(Entity *pokemon, struct StatIndex stat)
}
}
void sub_8041F4C(Entity *pokemon, struct StatIndex stat)
void PlayDefensiveStatDownEffect(Entity *pokemon, struct StatIndex stat)
{
if(stat.id == STAT_INDEX_PHYSICAL)
{
@@ -864,7 +864,7 @@ void sub_8041F4C(Entity *pokemon, struct StatIndex stat)
}
}
void sub_8041F70(Entity *pokemon, struct StatIndex stat)
void PlayOffensiveStatUpEffect(Entity *pokemon, struct StatIndex stat)
{
if(stat.id == STAT_INDEX_PHYSICAL)
{
@@ -876,7 +876,7 @@ void sub_8041F70(Entity *pokemon, struct StatIndex stat)
}
}
void sub_8041F94(Entity *pokemon, struct StatIndex stat)
void PlayDefensiveStatUpEffect(Entity *pokemon, struct StatIndex stat)
{
if(stat.id == STAT_INDEX_PHYSICAL)
{

View File

@@ -885,7 +885,7 @@ void LowerOffensiveStat(Entity * user, Entity * target, struct StatIndex stat, s
entityInfo = GetEntInfo(target);
SubstitutePlaceholderStringTags(gFormatBuffer_Monsters[0],target,0);
sub_8041F28(target,stat);
PlayOffensiveStatDownEffect(target,stat);
if (nStages == 1) {
strcpy(gFormatBuffer_Items[1], gUnknown_80FC0E4);
}
@@ -932,7 +932,7 @@ void LowerDefensiveStat(Entity * user, Entity * target, struct StatIndex stat, s
entityInfo = GetEntInfo(target);
SubstitutePlaceholderStringTags(gFormatBuffer_Monsters[0],target,0);
sub_8041F4C(target,stat);
PlayDefensiveStatDownEffect(target,stat);
if (nStages == 1) {
strcpy(gFormatBuffer_Items[1],gUnknown_80FC0E4);
}
@@ -967,7 +967,7 @@ void BoostOffensiveStat(Entity * user, Entity * target, struct StatIndex stat, s
entityInfo = GetEntInfo(target);
SubstitutePlaceholderStringTags(gFormatBuffer_Monsters[0],target,0);
sub_8041F70(target,stat);
PlayOffensiveStatUpEffect(target,stat);
if (stat.id != STAT_INDEX_PHYSICAL) {
strcpy(gFormatBuffer_Items[0],gUnknown_80FC0C8);
}
@@ -1008,7 +1008,7 @@ void BoostDefensiveStat(Entity * user, Entity * target, struct StatIndex stat, s
entityInfo = GetEntInfo(target);
SubstitutePlaceholderStringTags(gFormatBuffer_Monsters[0],target,0);
sub_8041F94(target,stat);
PlayDefensiveStatUpEffect(target,stat);
if (stat.id != STAT_INDEX_PHYSICAL) {
strcpy(gFormatBuffer_Items[0],gUnknown_80FC0AC);
}