diff options
| author | Aetias <aetias@outlook.com> | 2024-04-18 19:54:58 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-18 19:54:58 +0200 |
| commit | b60ce0d48d9a39ce4cc5b51ef1af4b4736a2feff (patch) | |
| tree | 45c6f00970c03435ef3cef5e861ab4fa4e0eedea /src/00_Core/Item/ItemManager.cpp | |
| parent | 711cfc7da247d49511e49beba40972baccc0b300 (diff) | |
Decomp `ItemManager::UnequipPotion`
Diffstat (limited to 'src/00_Core/Item/ItemManager.cpp')
| -rw-r--r-- | src/00_Core/Item/ItemManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/00_Core/Item/ItemManager.cpp b/src/00_Core/Item/ItemManager.cpp index 93a6f25a..6228e437 100644 --- a/src/00_Core/Item/ItemManager.cpp +++ b/src/00_Core/Item/ItemManager.cpp @@ -747,3 +747,12 @@ THUMB void ItemManager::GiveEquipItem(ItemFlag item, u16 ammo) { this->mEquipLoadTimer = 1;
}
}
+
+THUMB void ItemManager::UnequipPotion() {
+ switch (mEquippedItem) {
+ case ItemFlag_PotionA:
+ case ItemFlag_PotionB: {
+ this->EquipPreviousItem();
+ } break;
+ }
+}
|
