From c544aed0e308a4b60879e17449d74dcd9a9c9017 Mon Sep 17 00:00:00 2001 From: engineer124 Date: Tue, 19 Apr 2022 19:17:02 +1000 Subject: [PATCH] Small touchup --- src/code/z_parameter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c index 35ee286ea..52cf48744 100644 --- a/src/code/z_parameter.c +++ b/src/code/z_parameter.c @@ -2263,10 +2263,10 @@ void func_80112C0C(GlobalContext* globalCtx, u16 flag) { } } +s16 sAmmoRefillCounts[] = { + 5, 10, 20, 30, 10, 30, 40, 50, 20, 10, 1, 5, 1, 5, 10, 20, 50, 100, 200, 0, +}; u8 Item_Give(GlobalContext* globalCtx, u8 item) { - static s16 sAmmoRefillCounts[] = { - 5, 10, 20, 30, 10, 30, 40, 50, 20, 10, 1, 5, 1, 5, 10, 20, 50, 100, 200, 0, - }; Player* player = GET_PLAYER(globalCtx); u8 i; u8 temp; @@ -3105,7 +3105,6 @@ void func_80115844(GlobalContext* globalCtx, s16 arg1) { } s32 Health_ChangeBy(GlobalContext* globalCtx, s16 healthChange) { - if (healthChange > 0) { play_sound(NA_SE_SY_HP_RECOVER); } else if ((gSaveContext.save.playerData.doubleDefense != 0) && (healthChange < 0)) {