diff options
| author | Aetias <aetias@outlook.com> | 2024-04-30 18:24:27 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-30 18:24:27 +0200 |
| commit | 102fc098fa59af662c5b21bac49157cfaa23a0dc (patch) | |
| tree | 9efda16c1c4a6fdd4d8201df6eca80d724afa0f4 /src/00_Core/Item/ItemManager.cpp | |
| parent | 028207d6a8cc7bd88afb51cefd8bdd749993b00d (diff) | |
Decomp `ItemManager::HasPurplePotion`
Diffstat (limited to 'src/00_Core/Item/ItemManager.cpp')
| -rw-r--r-- | src/00_Core/Item/ItemManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/00_Core/Item/ItemManager.cpp b/src/00_Core/Item/ItemManager.cpp index ea9d1f34..03cc2f19 100644 --- a/src/00_Core/Item/ItemManager.cpp +++ b/src/00_Core/Item/ItemManager.cpp @@ -882,3 +882,10 @@ ARM bool ItemManager::HasAllPotions() const { }
return true;
}
+
+ARM bool ItemManager::HasPurplePotion() const {
+ for (s32 i = 0; i < MAX_POTIONS; ++i) {
+ if (mPotions[i] == Potion_Purple) return true;
+ }
+ return false;
+}
|
