summaryrefslogtreecommitdiff
path: root/src/berry_powder.c
diff options
context:
space:
mode:
authorultima-soul <akshayjhanji@hotmail.com>2019-10-06 00:48:48 -0700
committerultima-soul <akshayjhanji@hotmail.com>2019-10-06 00:48:48 -0700
commitd84e9bed58db84bbb7db568c366bfa803be87139 (patch)
tree13a924bbf40b3a0ab38d915ef6349f8a4bd60c15 /src/berry_powder.c
parentb4b509f68477068ae111cc5a6094d858d396c4bb (diff)
Decompile/port new_game
Diffstat (limited to 'src/berry_powder.c')
-rw-r--r--src/berry_powder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/berry_powder.c b/src/berry_powder.c
index 9b3bbc17f..ad824b24b 100644
--- a/src/berry_powder.c
+++ b/src/berry_powder.c
@@ -16,7 +16,7 @@ u32 sub_815EE3C(u32 * a0)
return *a0 ^ gSaveBlock2Ptr->encryptionKey;
}
-void sub_815EE54(u32 * a0, u32 a1)
+void SetBerryPowder(u32 * a0, u32 a1)
{
*a0 = gSaveBlock2Ptr->encryptionKey ^ a1;
}
@@ -48,12 +48,12 @@ bool8 sub_815EEE0(u32 a0)
u32 amount = sub_815EE3C(ptr) + a0;
if (amount > 99999)
{
- sub_815EE54(ptr, 99999);
+ SetBerryPowder(ptr, 99999);
return FALSE;
}
else
{
- sub_815EE54(ptr, amount);
+ SetBerryPowder(ptr, amount);
return TRUE;
}
}
@@ -66,7 +66,7 @@ bool8 sub_815EF20(u32 a0)
else
{
u32 amount = sub_815EE3C(ptr);
- sub_815EE54(ptr, amount - a0);
+ SetBerryPowder(ptr, amount - a0);
return TRUE;
}
}
@@ -79,7 +79,7 @@ bool8 sub_815EF5C(void)
else
{
u32 amount = sub_815EE3C(ptr);
- sub_815EE54(ptr, amount - gSpecialVar_0x8004);
+ SetBerryPowder(ptr, amount - gSpecialVar_0x8004);
return TRUE;
}
}