diff options
| author | Aetias <aetias@outlook.com> | 2024-02-18 12:18:51 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-18 12:18:51 +0100 |
| commit | b252bd2035d3bdc763cbbfe37c72e3a827c4c2ac (patch) | |
| tree | 70ec919426f0c4daea7ef216deb8b75987af1b26 /src/ItemManager.cpp | |
| parent | b990ade652a2208a639db7c1e89f46236c381eea (diff) | |
Decomp `ItemManager::SetUnk_09e`
Diffstat (limited to 'src/ItemManager.cpp')
| -rw-r--r-- | src/ItemManager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ItemManager.cpp b/src/ItemManager.cpp index 32f6dc59..59793b50 100644 --- a/src/ItemManager.cpp +++ b/src/ItemManager.cpp @@ -312,3 +312,13 @@ THUMB s32 ItemManager::GetUnk_09e_Divided(u32 index) const { if (result < 1) result = 1;
return result;
}
+
+THUMB void ItemManager::SetUnk_09e(u32 index, u16 value) {
+ u8 count = this->mUnk_098[index] + 1;
+ if (count > 99) count = 99;
+ this->mUnk_098[index] = count;
+ if (value > this->mUnk_09e[index]) {
+ if (value > 9999) value = 9999;
+ this->mUnk_09e[index] = value;
+ }
+}
|
