Decomp ItemManager::HasPotion

This commit is contained in:
Aetias
2024-04-30 18:21:11 +02:00
parent a41ce23938
commit 74a07a6992
3 changed files with 14 additions and 24 deletions
+13
View File
@@ -862,3 +862,16 @@ ARM void ItemManager::SetPotion(u32 index, Potion potion) {
SET_FLAG(mItemFlags.flags, index + ItemFlag_PotionA);
}
}
ARM bool ItemManager::HasPotion(u32 index) const {
switch (mPotions[index]) {
case Potion_Red:
case Potion_Purple:
case Potion_Yellow:
return true;
case Potion_None:
default:
return false;
}
}