summaryrefslogtreecommitdiff
path: root/src/00_Core/Item/ItemManager.cpp
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-04-30 18:15:26 +0200
committerAetias <aetias@outlook.com>2024-04-30 18:15:26 +0200
commit81c5e92ebc5d43c30ac81b52a2c81c1b4b8f5d69 (patch)
treea1d57e1fe26112be714cfa54ab91ad30157d1c61 /src/00_Core/Item/ItemManager.cpp
parent7ab07cf116502d2c722a24cde6e42420abbcac37 (diff)
Decomp `ItemManager::func_ov00_020ae4dc`
Diffstat (limited to 'src/00_Core/Item/ItemManager.cpp')
-rw-r--r--src/00_Core/Item/ItemManager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/00_Core/Item/ItemManager.cpp b/src/00_Core/Item/ItemManager.cpp
index 7b7db21f..617ec311 100644
--- a/src/00_Core/Item/ItemManager.cpp
+++ b/src/00_Core/Item/ItemManager.cpp
@@ -842,3 +842,14 @@ THUMB void ItemManager::UpgradeBombchuBag() {
if (mBombchuBagSize < MAX_AMMO_UPGRADE) mBombchuBagSize += 1;
(*mAmmo)[ItemFlag_BombchuBag] = this->GetMaxAmmo(ItemFlag_BombchuBag);
}
+
+ARM void ItemManager::func_ov00_020ae4dc(s32 param1) {
+ s32 newValue = mUnk_0ba + param1;
+ if (newValue > MAX_UNK_0BA) {
+ mUnk_0ba = MAX_UNK_0BA;
+ } else if (mUnk_0ba < -param1) {
+ mUnk_0ba = 0;
+ } else {
+ mUnk_0ba = newValue;
+ }
+}