summaryrefslogtreecommitdiff
path: root/include/personality_test.h
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-06-09 22:54:21 -0500
committerGitHub <noreply@github.com>2021-06-09 22:54:21 -0500
commit377bd14ea67d6177250fb401e12d7dfcf44e2cf6 (patch)
tree5440970e02a7890791b234aa233e91e5c1d65b40 /include/personality_test.h
parenteaa141c612dd1689936a21bd57018a55ff686b69 (diff)
Dungeon pokemon/Floor ID JSON Part 1 (#39)
* move Thunderwave and Tiny Woods pokemon to json * rule tweaking to actually build tool before parsing JSON * delete .inc pokemon for tiny Woods and Thunderwave * silence git complaining about br_ips and ips_patch * use defines for species and pass the header file for species * convert sinister woods * convert MtThunderPeak * convert silent chasm * add trial floor_id w/ tiny woods * change make rule name to fix compile * MtSteel converted and bugfix * convert few floor headers and great canyon pokemon * code cleanup * unify unkData into UnkTextStruct2 * more code cleanup and some text decomp * doc more funcs and decomp/split some stuff * document more save stuff * more save work and move some data * pika sniped UpdateNatureTotal * decomp a litle and convert a few more dungeons * better scanning for json files * mt freeze and peak
Diffstat (limited to 'include/personality_test.h')
-rw-r--r--include/personality_test.h32
1 files changed, 14 insertions, 18 deletions
diff --git a/include/personality_test.h b/include/personality_test.h
index 791e225..71a2200 100644
--- a/include/personality_test.h
+++ b/include/personality_test.h
@@ -2,12 +2,7 @@
#define GUARD_PERSONALITY_TEST_H
#include "constants/personality_test.h"
-
-struct unkData
-{
- s16 unk0[10];
- u8 *unk14;
-};
+#include "text.h"
// Definitely wrong but need to figure out better structure later
struct FaceData
@@ -15,8 +10,18 @@ struct FaceData
/* 0x0 */ u8 *unk0[5];
};
+struct PersonalityAnswer
+{
+ const char * text;
+ int effect;
+};
-extern const struct unkData gUnknown_80F4244;
+struct PersonalityQuestion
+{
+ const char * question;
+ const struct PersonalityAnswer * answers;
+ const u8 (*effects);
+};
struct PersonalityStruct_203B400
{
@@ -39,21 +44,12 @@ struct PersonalityStruct_203B400
};
extern struct PersonalityStruct_203B400 *gUnknown_203B400;
-struct PersonalitySubStruct
-{
- u8 unkb4;
- u8 unkb5;
- u8 unkb6;
- u8 unkb7;
-};
-
struct PersonalityStruct_203B404
{
// Size: 0xB8
/* 0x0 */ s16 StarterID;
/* 0x2 */ s16 PartnerArray[NUM_PARTNERS];
u8 unk16;
- u8 unk17;
/* 0x18 */ struct UnkInputStruct *unk18; // something menu related (seems to be some struct)
u8 padding[0x30 - 0x1C];
/* 0x30 */ s16 currPartnerSelection;
@@ -62,8 +58,8 @@ struct PersonalityStruct_203B404
/* 0x3A */ s16 numPartners;
u8 padding3[0x4C - 0x3C];
u32 unk4C;
- /* 0x50 */ struct unkData *unk50;
- /* 0x54 */ struct unkData unk54[4];
+ /* 0x50 */ struct UnkTextStruct2 *unk50;
+ /* 0x54 */ struct UnkTextStruct2 unk54[4];
/* 0xB4 */ u8 unkb4[4];
};
extern struct PersonalityStruct_203B404 *gUnknown_203B404;