Decomp ItemManager::SetPotion

This commit is contained in:
Aetias
2024-04-30 18:17:31 +02:00
parent 81c5e92ebc
commit a41ce23938
2 changed files with 9 additions and 28 deletions
+9
View File
@@ -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);
}
}