diff options
| author | Aetias <aetias@outlook.com> | 2024-02-18 12:43:20 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-18 12:43:20 +0100 |
| commit | d414c3dcd13a06a167cca938e5dcd26ccb1cf0db (patch) | |
| tree | 7679f23ee270f6a7f8252028fc55ade315e4350b /src/ItemManager.cpp | |
| parent | 8b7361a30096d49e041f748c470f220693815af2 (diff) | |
Decomp `ItemManager::func_ov00_020ad9e8`
Diffstat (limited to 'src/ItemManager.cpp')
| -rw-r--r-- | src/ItemManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ItemManager.cpp b/src/ItemManager.cpp index f6109c79..d9106486 100644 --- a/src/ItemManager.cpp +++ b/src/ItemManager.cpp @@ -342,3 +342,12 @@ THUMB u8 ItemManager::GetMaxShipPartCount() const { THUMB u8 ItemManager::GetMaxTreasureCount() const {
return 99;
}
+
+ARM unk32 ItemManager::func_ov00_020ad9e8(FairyId id) const {
+ if (this->mEquippedFairy == FairyId_None) return 0;
+ FairyId fairy = this->GetEquippedFairy();
+ if (fairy == FairyId_Courage && this->mUnk_14d != 0) return 0;
+ fairy = this->GetEquippedFairy();
+ if (id == fairy) return this->func_ov00_020ada48(id);
+ return 0;
+}
|
