mirror of https://github.com/zeldaret/botw.git
uking/ui: Remove setValue() for consistency
This commit is contained in:
parent
268f7f2d8a
commit
36fa2b36c2
|
@ -353,7 +353,7 @@ void PauseMenuDataMgr::doLoadFromGameData() {
|
|||
gdt::getFlag_MasterSwordRecoverTime() <= std::numeric_limits<f32>::epsilon() &&
|
||||
mItem_44488->getValue() <= 0) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -919,7 +919,7 @@ void PauseMenuDataMgr::setWeaponItemValue(s32 value, PouchItemType type) {
|
|||
continue;
|
||||
}
|
||||
|
||||
item.setValue(value);
|
||||
item.mValue = value;
|
||||
if (idx >= 0 && !mIsPouchForQuest)
|
||||
ksys::gdt::setFlag_PorchItem_Value1(value, idx);
|
||||
|
||||
|
|
|
@ -142,7 +142,6 @@ public:
|
|||
s32 getCount() const { return getValue(); }
|
||||
|
||||
s32 getValue() const { return mValue; }
|
||||
void setValue(s32 value) { mValue = value; }
|
||||
|
||||
// Only valid if this is not a weapon.
|
||||
CookData& getCookData() { return mData.cook; }
|
||||
|
|
Loading…
Reference in New Issue