diff options
| author | Aetias <aetias@outlook.com> | 2024-02-17 00:27:54 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-17 00:27:54 +0100 |
| commit | 89b20bc2da98b82174d3bbc0d6c7421fa48a876d (patch) | |
| tree | 34770b7dd1d74e4adaa0961129adb9f4cb8536b1 /src/ItemManager.cpp | |
| parent | b24f0a3a90314277f03b595e72472e4ebcb3d0c4 (diff) | |
Decomp `ItemManager::EquipItem_vfunc_3c`
Diffstat (limited to 'src/ItemManager.cpp')
| -rw-r--r-- | src/ItemManager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ItemManager.cpp b/src/ItemManager.cpp index d914e729..5356ec77 100644 --- a/src/ItemManager.cpp +++ b/src/ItemManager.cpp @@ -237,3 +237,15 @@ void ItemManager::EquipItem_vfunc_38(unk32 param1) { (*this->mEquipItems)[equip]->vfunc_38(param1);
}
+
+bool ItemManager::EquipItem_vfunc_3c(Vec4p *param1, ItemFlag equipId) {
+ Vec4p result;
+ if ((*this->mEquipItems)[equipId]->vfunc_3c(&result)) {
+ s32 step = (*this->mEquipItems)[equipId]->vfunc_4c();
+ if (step > 0) {
+ Approach_thunk(&result.y, param1->y, step);
+ }
+ return func_01ffec34(param1, &result);
+ }
+ return false;
+}
|
