summaryrefslogtreecommitdiff
path: root/include/kinstone.h
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2023-07-05 21:34:08 +0200
committeroctorock <79596758+octorock@users.noreply.github.com>2023-08-01 11:36:11 +0200
commit488196754ea5225513dc900d23c53f2b157de409 (patch)
treec69039d9643265381dddb27cca929cbea6dfb936 /include/kinstone.h
parent0d6b9052bacc3bbe079df0bcf25ac633ed4df073 (diff)
Create new entity structs for NPCs
Diffstat (limited to 'include/kinstone.h')
-rw-r--r--include/kinstone.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/include/kinstone.h b/include/kinstone.h
index ac6b9b83..c5b63874 100644
--- a/include/kinstone.h
+++ b/include/kinstone.h
@@ -6,17 +6,27 @@
extern void sub_08018C58(u32);
+typedef enum {
+ FUSION_STATE_0, // fusion was not yet started
+ FUSION_STATE_1, // failed?
+ FUSION_STATE_2, // successful?
+ FUSION_STATE_3, // fusion is being performed
+ FUSION_STATE_4, // player has closed the first messagebox
+ FUSION_STATE_5, // fusion declined by the player
+ FUSION_STATE_6, // Successful, but not yet finished?
+} FusionState;
+
typedef struct {
- u8 _0;
+ u8 fusionState; /** @see FusionState */
u8 action;
u8 _2;
u8 kinstoneId;
u8 prevUpdatePriority;
u8 _5;
u16 textIndex;
- u16 _8;
- u16 _a;
- Entity* ent;
+ u16 cancelledTextIndex;
+ u16 fusingTextIndex;
+ Entity* entity;
} FuseInfo;
static_assert(sizeof(FuseInfo) == 0x10);
extern FuseInfo gFuseInfo;