itemfinder through sub_813F004

This commit is contained in:
PikalaxALT
2019-10-02 21:26:01 -04:00
parent d9ab841b0d
commit afd5f1f52f
7 changed files with 241 additions and 534 deletions
+1
View File
@@ -14,5 +14,6 @@ u8 ContextNpcGetTextColor(void);
void set_unknown_box_id(u8);
u16 get_unknown_box_id(void);
bool8 sub_80CC7B4(void);
u16 sub_80CC44C(struct HiddenItemStruct hiddenItem, u8 attr);
#endif // GUARD_FIELD_SPECIALS_H
+22 -14
View File
@@ -120,26 +120,34 @@ struct CoordEvent
u8 *script;
};
struct HiddenItemStruct
{
u32 field_00:16;
u32 hiddenItemId:8; // flag offset to determine flag lookup
u32 field_03_0:7;
u32 field_03_7:1;
};
union BgUnion
{ // carried over from diego's FR/LG work, seems to be the same struct
// in gen 3, "kind" (0x3 in BgEvent struct) determines the method to read the union.
u8 *script;
// hidden item type probably
struct HiddenItemStruct hiddenItem;
// secret base type
u32 secretBaseId;
};
struct BgEvent
{
u16 x, y;
u8 unk4;
u8 kind;
// 0x2 padding for the union beginning.
union { // carried over from diego's FR/LG work, seems to be the same struct
// in gen 3, "kind" (0x3 in BgEvent struct) determines the method to read the union.
u8 *script;
// hidden item type probably
struct {
u8 filler6[0x2];
u16 hiddenItemId; // flag offset to determine flag lookup
} hiddenItem;
// secret base type
u32 secretBaseId;
} bgUnion;
union BgUnion bgUnion;
};
struct MapEvents
+5
View File
@@ -324,4 +324,9 @@ extern const u8 gText_ThrowAwayStrVar2OfThisItemQM[];
extern const u8 gText_BerryPouch[];
extern const u8 gText_TheBerryPouchWillBePutAway[];
// itemfinder
extern const u8 gText_ItemfinderResponding[];
extern const u8 gText_ItemfinderShakingWildly[];
extern const u8 gText_NopeTheresNoResponse[];
#endif //GUARD_STRINGS_H