mirror of
https://github.com/zeldaret/ph
synced 2026-06-02 10:10:10 -04:00
Decomp ItemManager::SetPotion
This commit is contained in:
@@ -853,3 +853,12 @@ ARM void ItemManager::func_ov00_020ae4dc(s32 param1) {
|
||||
mUnk_0ba = newValue;
|
||||
}
|
||||
}
|
||||
|
||||
ARM void ItemManager::SetPotion(u32 index, Potion potion) {
|
||||
mPotions[index] = potion;
|
||||
if (potion == Potion_None) {
|
||||
RESET_FLAG(mItemFlags.flags, index + ItemFlag_PotionA);
|
||||
} else {
|
||||
SET_FLAG(mItemFlags.flags, index + ItemFlag_PotionA);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user