Decomp ItemManager::GetUnk_09e_Divided

This commit is contained in:
Aetias
2024-02-18 12:11:38 +01:00
parent 5387579e20
commit 7749c59b13
108 changed files with 969 additions and 980 deletions
+7
View File
@@ -305,3 +305,10 @@ THUMB u8 ItemManager::GetUnk_098(u32 index) const {
THUMB u16 ItemManager::GetUnk_09e(u32 index) const {
return this->mUnk_09e[index];
}
THUMB s32 ItemManager::GetUnk_09e_Divided(u32 index) const {
q20 quotient = Divide(INT_TO_Q20(this->mUnk_09e[index]), FLOAT_TO_Q20(2.54));
s32 result = ROUND_Q20(quotient);
if (result < 1) result = 1;
return result;
}