mirror of
https://github.com/zeldaret/st
synced 2026-08-29 17:02:33 -04:00
Decompile overlay 1 (Part 4) (#97)
* UnkStruct_027e095c_001 OK * UnkStruct_027e095c_001 OK (JP) * SysNew_001 OK * SaveManager_001 98% * UnkStruct_027e09bc_001 OK * MapObjectManager_001 OK * ActorManager_001 OK * remove useless thumb pragmas * ItemManager_001 OK * fix regressions * fix build issues
This commit is contained in:
@@ -222,7 +222,7 @@ ItemId MapObjectChestBase::func_ov031_021037d0() {
|
||||
|
||||
this->vfunc_38(7, 0);
|
||||
|
||||
if ((u32) this->mItemId - ItemId_RedPotion <= 2 && data_027e0ce0->mUnk_2C->PotionSlotsFull()) {
|
||||
if ((u32) this->mItemId - ItemId_RedPotion <= 2 && data_027e0ce0->mUnk_2C->GetInventory()->PotionSlotsFull()) {
|
||||
return ItemId_BigGreenRupee;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ void MapObjectDoorKey::vfunc_5C(unk32 param1, unk32 param2) {
|
||||
switch (this->mUnk_16) {
|
||||
case 3:
|
||||
if (param2 == 0) {
|
||||
data_027e0ce0->mUnk_2C->GiveSmallKeys(-1);
|
||||
data_027e0ce0->mUnk_2C->GetInventory()->GiveSmallKeys(-1);
|
||||
}
|
||||
|
||||
UNSET_FLAG(this->mFlags, MapObjFlag_9);
|
||||
@@ -117,7 +117,7 @@ bool MapObjectDoorKey::func_ov031_020fea88(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (data_027e0ce0->mUnk_2C->mKeyAmount != 0) {
|
||||
if (data_027e0ce0->mUnk_2C->GetKeyAmount() != 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ unk32 MapObjectDoorKey::vfunc_28(void) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (data_027e0ce0->mUnk_2C->mKeyAmount == 0) {
|
||||
if (data_027e0ce0->mUnk_2C->GetKeyAmount() == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user