From b60ce0d48d9a39ce4cc5b51ef1af4b4736a2feff Mon Sep 17 00:00:00 2001 From: Aetias Date: Thu, 18 Apr 2024 19:54:58 +0200 Subject: Decomp `ItemManager::UnequipPotion` --- src/00_Core/Item/ItemManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/00_Core') 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; + } +} -- cgit v1.2.3