diff options
| author | Aetias <aetias@outlook.com> | 2024-04-30 18:17:31 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-30 18:17:31 +0200 |
| commit | a41ce23938423313ed0d5859dea6730a4e2915f1 (patch) | |
| tree | 7f1e6fdeeeda450a4e69d60c107d315ef1ff78d0 /src/00_Core | |
| parent | 81c5e92ebc5d43c30ac81b52a2c81c1b4b8f5d69 (diff) | |
Decomp `ItemManager::SetPotion`
Diffstat (limited to 'src/00_Core')
| -rw-r--r-- | src/00_Core/Item/ItemManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/00_Core/Item/ItemManager.cpp b/src/00_Core/Item/ItemManager.cpp index 617ec311..877d43de 100644 --- a/src/00_Core/Item/ItemManager.cpp +++ b/src/00_Core/Item/ItemManager.cpp @@ -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);
+ }
+}
|
