mirror of
https://github.com/zeldaret/ph
synced 2026-07-11 22:40:17 -04:00
Decomp ItemManager::HasPotion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user