uking/ui: Remove setValue() for consistency

This commit is contained in:
Léo Lam 2021-01-17 23:46:16 +01:00
parent 268f7f2d8a
commit 36fa2b36c2
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 2 additions and 3 deletions

View File

@ -353,7 +353,7 @@ void PauseMenuDataMgr::doLoadFromGameData() {
gdt::getFlag_MasterSwordRecoverTime() <= std::numeric_limits<f32>::epsilon() && gdt::getFlag_MasterSwordRecoverTime() <= std::numeric_limits<f32>::epsilon() &&
mItem_44488->getValue() <= 0) { mItem_44488->getValue() <= 0) {
const s32 new_value = getWeaponInventoryLife(mItem_44488->getName()); const s32 new_value = getWeaponInventoryLife(mItem_44488->getName());
mItem_44488->setValue(new_value); mItem_44488->mValue = new_value;
gdt::setFlag_PorchItem_Value1(new_value, idx); gdt::setFlag_PorchItem_Value1(new_value, idx);
} }
} }
@ -919,7 +919,7 @@ void PauseMenuDataMgr::setWeaponItemValue(s32 value, PouchItemType type) {
continue; continue;
} }
item.setValue(value); item.mValue = value;
if (idx >= 0 && !mIsPouchForQuest) if (idx >= 0 && !mIsPouchForQuest)
ksys::gdt::setFlag_PorchItem_Value1(value, idx); ksys::gdt::setFlag_PorchItem_Value1(value, idx);

View File

@ -142,7 +142,6 @@ public:
s32 getCount() const { return getValue(); } s32 getCount() const { return getValue(); }
s32 getValue() const { return mValue; } s32 getValue() const { return mValue; }
void setValue(s32 value) { mValue = value; }
// Only valid if this is not a weapon. // Only valid if this is not a weapon.
CookData& getCookData() { return mData.cook; } CookData& getCookData() { return mData.cook; }