summaryrefslogtreecommitdiff
path: root/src/battle_util2.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-18 17:50:55 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-18 17:50:55 -0400
commit014596dea5e5c0c3e76aa0731d914573597144ef (patch)
tree9426358737279dbf8976407078040463d8156d2e /src/battle_util2.c
parented16a7409ae9c808a110975dec1930f9f949a6d6 (diff)
Document and refactor AdjustFriendship
Diffstat (limited to 'src/battle_util2.c')
-rw-r--r--src/battle_util2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_util2.c b/src/battle_util2.c
index b1036ef0b..e3fa1a6a7 100644
--- a/src/battle_util2.c
+++ b/src/battle_util2.c
@@ -85,12 +85,12 @@ void AdjustFriendshipOnBattleFaint(u8 battlerId)
if (gBattleMons[opposingBattlerId].level > gBattleMons[battlerId].level)
{
if (gBattleMons[opposingBattlerId].level - gBattleMons[battlerId].level > 29)
- AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], 9);
+ AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], FRIENDSHIP_EVENT_FAINT_LARGE);
else
- AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], 7);
+ AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], FRIENDSHIP_EVENT_FAINT_SMALL);
}
else
{
- AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], 7);
+ AdjustFriendship(&gPlayerParty[gBattlerPartyIndexes[battlerId]], FRIENDSHIP_EVENT_FAINT_SMALL);
}
}