mirror of
https://github.com/zeldaret/ph
synced 2026-09-02 01:42:57 -04:00
Decomp ItemManager::func_ov00_020ae4dc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user