diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-05-10 07:38:26 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-05-10 07:38:26 +0300 |
| commit | d77c346564bc2f5ca95aedacd091a3a5bd69f075 (patch) | |
| tree | f2b7bb6d6cb2b439c0caa8a4e686fb43b6f66845 /src/kinstone.c | |
| parent | 43fdd75b1052b8995fa1ffee58ec1b74f05a2be7 (diff) | |
Match sub_080185B4
Diffstat (limited to 'src/kinstone.c')
| -rw-r--r-- | src/kinstone.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/kinstone.c b/src/kinstone.c index 9d54ae81..d4cf1cf3 100644 --- a/src/kinstone.c +++ b/src/kinstone.c @@ -38,7 +38,20 @@ void sub_0801876C(int, int); void sub_08018738(u32, int); void sub_08018690(int param_1, u16* param_2); void sub_08018500(); -bool32 sub_080185B4(const struct_gUnk_080B3D20*); + +bool32 sub_080185B4(const struct_gUnk_080B3D20* param_1) { + if (param_1->unk0 == 0xff) + return 0; + + if (param_1->unk0 == 0xfe) { + return GetInventoryValue(param_1->unk1) != 0; + } + + if (param_1->unk0 == 0xfd) { + return CheckKinstoneFused(param_1->unk1); + } + return CheckLocalFlagByBank(gLocalFlagBanks[param_1->unk0], param_1->unk1); +} void sub_080185F8(void) { struct_area_28* ptr2 = &gArea.unk28; |
