summaryrefslogtreecommitdiff
path: root/src/code/z_parameter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_parameter.c')
-rw-r--r--src/code/z_parameter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c
index d2bf94e12..6fbcc351e 100644
--- a/src/code/z_parameter.c
+++ b/src/code/z_parameter.c
@@ -1701,7 +1701,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
return item;
} else if ((item >= ITEM_RUPEE_GREEN) && (item <= ITEM_RUPEE_HUGE)) {
- func_801159EC(sAmmoRefillCounts[item - ITEM_RUPEE_GREEN + 10]);
+ Rupees_ChangeBy(sAmmoRefillCounts[item - ITEM_RUPEE_GREEN + 10]);
return ITEM_NONE;
} else if (item == ITEM_LONGSHOT) {
@@ -2060,8 +2060,9 @@ void Interface_SetDoAction(GlobalContext* globalCtx, u16 action) {
#pragma GLOBAL_ASM("asm/non_matchings/code/z_parameter/func_801159c0.s")
-// Rupees_ChangeBy
-#pragma GLOBAL_ASM("asm/non_matchings/code/z_parameter/func_801159EC.s")
+void Rupees_ChangeBy(s16 rupeeChange) {
+ gSaveContext.rupeeAccumulator += rupeeChange;
+}
#pragma GLOBAL_ASM("asm/non_matchings/code/z_parameter/func_80115A14.s")