diff options
| author | mike8699 <mikebuntu68@gmail.com> | 2024-12-31 16:10:05 -0500 |
|---|---|---|
| committer | mike8699 <mikebuntu68@gmail.com> | 2025-01-05 19:06:26 -0500 |
| commit | 12877211edf856fc4226cab9404c615dfa4d15ae (patch) | |
| tree | 8afd06fa2aeb429cb9ff8bf972cc4dde79ad61be /src | |
| parent | dc09e23c6068913ec96708e0e49597252043cdb6 (diff) | |
[wip] decomp `LinkStateItem::OnStateLeave`
Diffstat (limited to 'src')
| -rw-r--r-- | src/00_Core/Player/LinkStateItem.cpp | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/src/00_Core/Player/LinkStateItem.cpp b/src/00_Core/Player/LinkStateItem.cpp index ade648fc..646afc5d 100644 --- a/src/00_Core/Player/LinkStateItem.cpp +++ b/src/00_Core/Player/LinkStateItem.cpp @@ -1,4 +1,8 @@ #include "Item/ItemManager.hpp" +#include "Player/EquipBomb.hpp" +#include "Player/EquipHammer.hpp" +#include "Player/EquipItem.hpp" +#include "Player/EquipScoop.hpp" #include "Player/LinkStateItem.hpp" #include "Save/AdventureFlags.hpp" @@ -17,7 +21,46 @@ s32 LinkStateItem::IsHammerEquipped() { } } -void LinkStateItem::OnStateLeave(s32 param1) {} +void LinkStateItem::OnStateLeave(s32 param1) { + EquipItem *pEVar1; + LinkStateMove *pLVar2; + s32 iVar3; + unk32 *puVar4; + + LinkStateBase::OnStateLeave(param1); + + switch(this->mEquipId) { + case 0: + break; + case 1: + break; + case 2: + break; + case 3: + EquipScoop::StopUsing(this); + break; + case 4: + EquipBomb::StopUsing(this); + break; + case 5: + break; + case 6: + EquipRope::StopUsing(this); + break; + case 7: + // TODO + break; + case 8: + EquipHammer::StopUsing(this); + break; + case 9: + case 10: + // TODO + break; + } + + this->mNextEquip = 0xffffffff; +} EquipBombchu *LinkStateItem::GetEquipBombchu() { return (EquipBombchu *)ItemManager::GetEquipItemUnchecked(7); |
