mirror of
https://github.com/zeldaret/ph
synced 2026-05-27 08:07:21 -04:00
Decomp ItemManager::GetFairyLevel
This commit is contained in:
@@ -351,3 +351,9 @@ ARM u32 ItemManager::GetActiveFairyLevel(FairyId id) const {
|
||||
if (id == fairy) return this->GetFairyLevel(id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
ARM u32 ItemManager::GetFairyLevel(FairyId id) const {
|
||||
if (this->HasItem(ItemFlag_FAIRY_LV2 + id)) return 2;
|
||||
if (this->HasItem(ItemFlag_FAIRY_LV1 + id)) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user