diff options
| author | Aetias <aetias@outlook.com> | 2024-02-18 13:24:49 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-18 13:24:49 +0100 |
| commit | f3d0b29b42954abe62eaf0a13259f3ebc6d8aa9c (patch) | |
| tree | 6b1ac43180753699355c3e88418734098f0383fe /src/ItemManager.cpp | |
| parent | 8f674d7f875e69e47d19623334881da80d399b46 (diff) | |
Decomp `ItemManager::RemoveItem`
Diffstat (limited to 'src/ItemManager.cpp')
| -rw-r--r-- | src/ItemManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ItemManager.cpp b/src/ItemManager.cpp index 32d4fd0c..1513158e 100644 --- a/src/ItemManager.cpp +++ b/src/ItemManager.cpp @@ -373,3 +373,10 @@ ARM bool ItemManager::IsTreasureSalvaged(u32 index) const { THUMB void ItemManager::SetTreasureSalvaged(u32 index) {
SET_FLAG(&this->mSalvagedTreasureFlags, index);
}
+
+THUMB void ItemManager::RemoveItem(s32 item) {
+ RESET_FLAG(this->mItemFlags.flags, item);
+ if (item >= ItemFlag_EQUIP_START && item <= ItemFlag_EQUIP_END) {
+ (*this->mAmmo)[item] = 0;
+ }
+}
|
