diff options
| author | Aetias <aetias@outlook.com> | 2024-04-30 18:05:13 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-30 18:05:13 +0200 |
| commit | 4f44cc2f9362f72155f4a8c5dafe4de3dafabe9e (patch) | |
| tree | 03e1eb5a189dbe5a26355d8b94692411698c3914 /src | |
| parent | 458ede60df2dcb919372888e94e4b1fc5d691afb (diff) | |
Decomp `ItemManager::UpgradeQuiver`
Diffstat (limited to 'src')
| -rw-r--r-- | src/00_Core/Item/ItemManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/00_Core/Item/ItemManager.cpp b/src/00_Core/Item/ItemManager.cpp index d5c88bb3..d98baa4a 100644 --- a/src/00_Core/Item/ItemManager.cpp +++ b/src/00_Core/Item/ItemManager.cpp @@ -827,3 +827,8 @@ ARM void ItemManager::UpdateSwordShieldInUse() { this->GetEquipItem(ItemFlag_OshusSword)->UpdateInUse(1);
this->GetEquipItem(ItemFlag_WoodenShield)->UpdateInUse(1);
}
+
+THUMB void ItemManager::UpgradeQuiver() {
+ if (mQuiverSize < MAX_AMMO_UPGRADE) mQuiverSize += 1;
+ (*mAmmo)[ItemFlag_Bow] = this->GetMaxAmmo(ItemFlag_Bow);
+}
|
