diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-03-25 00:46:27 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2020-03-25 00:46:27 -0400 |
commit | 970717ee2c660e3a20218ba9c730b20a6dbb9c5d (patch) | |
tree | ff996278653b45405218c2e4f74fa6582734b71a | |
parent | d50ce487768da819b17f0f9bc87ab7a6a27c2385 (diff) |
Move object event graphics info pointers to src
-rw-r--r-- | data/event_object_movement.s | 155 | ||||
-rw-r--r-- | include/constants/event_objects.h | 4 | ||||
-rw-r--r-- | src/data/object_events/object_event_graphics_info_pointers.h | 308 | ||||
-rw-r--r-- | src/event_object_movement.c | 8 |
4 files changed, 314 insertions, 161 deletions
diff --git a/data/event_object_movement.s b/data/event_object_movement.s index 14b4aa571..87fec4fd6 100644 --- a/data/event_object_movement.s +++ b/data/event_object_movement.s @@ -1006,159 +1006,4 @@ gInitialMovementTypeFacingDirections:: @ 839FD5D .byte 1 @ [MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_LEFT] = DIR_SOUTH, .byte 1 @ [MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_RIGHT] = DIR_SOUTH, -.align 2, 0 -gObjectEventGraphicsInfoPointers:: @ 839FDB0 - .4byte gObjectEventGraphicsInfo_83A3BB0 - .4byte gObjectEventGraphicsInfo_83A3BD4 - .4byte gObjectEventGraphicsInfo_83A3BF8 - .4byte gObjectEventGraphicsInfo_83A3C1C - .4byte gObjectEventGraphicsInfo_83A4858 - .4byte gObjectEventGraphicsInfo_83A48A0 - .4byte gObjectEventGraphicsInfo_83A48C4 - .4byte gObjectEventGraphicsInfo_83A4564 - .4byte gObjectEventGraphicsInfo_83A4588 - .4byte gObjectEventGraphicsInfo_83A45AC - .4byte gObjectEventGraphicsInfo_83A45D0 - .4byte gObjectEventGraphicsInfo_83A487C - .4byte gObjectEventGraphicsInfo_83A48E8 - .4byte gObjectEventGraphicsInfo_83A490C - .4byte gObjectEventGraphicsInfo_83A3C64 - .4byte gObjectEventGraphicsInfo_83A3C88 - .4byte gObjectEventGraphicsInfo_83A3CAC - .4byte gObjectEventGraphicsInfo_83A3CD0 - .4byte gObjectEventGraphicsInfo_83A3D3C - .4byte gObjectEventGraphicsInfo_83A3DA8 - .4byte gObjectEventGraphicsInfo_83A3DF0 - .4byte gObjectEventGraphicsInfo_83A3CF4 - .4byte gObjectEventGraphicsInfo_83A3D18 - .4byte gObjectEventGraphicsInfo_83A3D60 - .4byte gObjectEventGraphicsInfo_83A3DCC - .4byte gObjectEventGraphicsInfo_83A4390 - .4byte gObjectEventGraphicsInfo_83A43B4 - .4byte gObjectEventGraphicsInfo_83A3E14 - .4byte gObjectEventGraphicsInfo_83A3E5C - .4byte gObjectEventGraphicsInfo_83A3EEC - .4byte gObjectEventGraphicsInfo_83A3E38 - .4byte gObjectEventGraphicsInfo_83A3D84 - .4byte gObjectEventGraphicsInfo_83A3E80 - .4byte gObjectEventGraphicsInfo_83A3F34 - .4byte gObjectEventGraphicsInfo_83A4420 - .4byte gObjectEventGraphicsInfo_83A3F58 - .4byte gObjectEventGraphicsInfo_83A424C - .4byte gObjectEventGraphicsInfo_83A4228 - .4byte gObjectEventGraphicsInfo_83A4270 - .4byte gObjectEventGraphicsInfo_83A3F7C - .4byte gObjectEventGraphicsInfo_83A3FA0 - .4byte gObjectEventGraphicsInfo_83A3FC4 - .4byte gObjectEventGraphicsInfo_83A3FE8 - .4byte gObjectEventGraphicsInfo_83A4078 - .4byte gObjectEventGraphicsInfo_83A409C - .4byte gObjectEventGraphicsInfo_83A40C0 - .4byte gObjectEventGraphicsInfo_83A40E4 - .4byte gObjectEventGraphicsInfo_83A3EA4 - .4byte gObjectEventGraphicsInfo_83A3EC8 - .4byte gObjectEventGraphicsInfo_83A4618 - .4byte gObjectEventGraphicsInfo_83A4054 - .4byte gObjectEventGraphicsInfo_83A4978 - .4byte gObjectEventGraphicsInfo_83A400C - .4byte gObjectEventGraphicsInfo_83A42B8 - .4byte gObjectEventGraphicsInfo_83A4108 - .4byte gObjectEventGraphicsInfo_83A412C - .4byte gObjectEventGraphicsInfo_83A4294 - .4byte gObjectEventGraphicsInfo_83A41BC - .4byte gObjectEventGraphicsInfo_83A4030 - .4byte gObjectEventGraphicsInfo_83A3F10 - .4byte gObjectEventGraphicsInfo_83A3C40 - .4byte gObjectEventGraphicsInfo_83A4150 - .4byte gObjectEventGraphicsInfo_83A4174 - .4byte gObjectEventGraphicsInfo_83A4198 - .4byte gObjectEventGraphicsInfo_83A4300 - .4byte gObjectEventGraphicsInfo_83A44D4 - .4byte gObjectEventGraphicsInfo_83A44F8 - .4byte gObjectEventGraphicsInfo_83A4324 - .4byte gObjectEventGraphicsInfo_83A4468 - .4byte gObjectEventGraphicsInfo_83A448C - .4byte gObjectEventGraphicsInfo_83A44B0 - .4byte gObjectEventGraphicsInfo_83A436C - .4byte gObjectEventGraphicsInfo_83A4834 - .4byte gObjectEventGraphicsInfo_83A47A4 - .4byte gObjectEventGraphicsInfo_83A4810 - .4byte gObjectEventGraphicsInfo_83A4660 - .4byte gObjectEventGraphicsInfo_83A47C8 - .4byte gObjectEventGraphicsInfo_83A47EC - .4byte gObjectEventGraphicsInfo_83A43D8 - .4byte gObjectEventGraphicsInfo_83A43FC - .4byte gObjectEventGraphicsInfo_83A4684 - .4byte gObjectEventGraphicsInfo_83A46A8 - .4byte gObjectEventGraphicsInfo_83A46CC - .4byte gObjectEventGraphicsInfo_83A46F0 - .4byte gObjectEventGraphicsInfo_83A4714 - .4byte gObjectEventGraphicsInfo_83A4780 - .4byte gObjectEventGraphicsInfo_83A475C - .4byte gObjectEventGraphicsInfo_83A4738 - .4byte gObjectEventGraphicsInfo_83A50EC - .4byte gObjectEventGraphicsInfo_83A463C - .4byte gObjectEventGraphicsInfo_83A41E0 - .4byte gObjectEventGraphicsInfo_83A42DC - .4byte gObjectEventGraphicsInfo_83A4348 - .4byte gObjectEventGraphicsInfo_83A4930 - .4byte gObjectEventGraphicsInfo_83A4954 - .4byte gObjectEventGraphicsInfo_83A4444 - .4byte gObjectEventGraphicsInfo_83A451C - .4byte gObjectEventGraphicsInfo_83A4540 - .4byte gObjectEventGraphicsInfo_83A49C0 - .4byte gObjectEventGraphicsInfo_83A49E4 - .4byte gObjectEventGraphicsInfo_83A4A08 - .4byte gObjectEventGraphicsInfo_83A4A2C - .4byte gObjectEventGraphicsInfo_83A4A50 - .4byte gObjectEventGraphicsInfo_83A4A74 - .4byte gObjectEventGraphicsInfo_83A4A98 - .4byte gObjectEventGraphicsInfo_83A4ABC - .4byte gObjectEventGraphicsInfo_83A4AE0 - .4byte gObjectEventGraphicsInfo_83A4B04 - .4byte gObjectEventGraphicsInfo_83A5110 - .4byte gObjectEventGraphicsInfo_83A499C - .4byte gObjectEventGraphicsInfo_83A4B28 - .4byte gObjectEventGraphicsInfo_83A4F84 - .4byte gObjectEventGraphicsInfo_83A4FF0 - .4byte gObjectEventGraphicsInfo_83A50C8 - .4byte gObjectEventGraphicsInfo_83A5014 - .4byte gObjectEventGraphicsInfo_83A5080 - .4byte gObjectEventGraphicsInfo_83A50A4 - .4byte gObjectEventGraphicsInfo_83A5038 - .4byte gObjectEventGraphicsInfo_83A4B4C - .4byte gObjectEventGraphicsInfo_83A4B70 - .4byte gObjectEventGraphicsInfo_83A505C - .4byte gObjectEventGraphicsInfo_83A4B94 - .4byte gObjectEventGraphicsInfo_83A4BB8 - .4byte gObjectEventGraphicsInfo_83A4BDC - .4byte gObjectEventGraphicsInfo_83A4C00 - .4byte gObjectEventGraphicsInfo_83A4C24 - .4byte gObjectEventGraphicsInfo_83A4C48 - .4byte gObjectEventGraphicsInfo_83A4C6C - .4byte gObjectEventGraphicsInfo_83A4C90 - .4byte gObjectEventGraphicsInfo_83A4CB4 - .4byte gObjectEventGraphicsInfo_83A4CD8 - .4byte gObjectEventGraphicsInfo_83A4CFC - .4byte gObjectEventGraphicsInfo_83A4D20 - .4byte gObjectEventGraphicsInfo_83A4D44 - .4byte gObjectEventGraphicsInfo_83A4FA8 - .4byte gObjectEventGraphicsInfo_83A4D68 - .4byte gObjectEventGraphicsInfo_83A4D8C - .4byte gObjectEventGraphicsInfo_83A4DB0 - .4byte gObjectEventGraphicsInfo_83A4DD4 - .4byte gObjectEventGraphicsInfo_83A4E64 - .4byte gObjectEventGraphicsInfo_83A4E88 - .4byte gObjectEventGraphicsInfo_83A4EAC - .4byte gObjectEventGraphicsInfo_83A4EF4 - .4byte gObjectEventGraphicsInfo_83A4ED0 - .4byte gObjectEventGraphicsInfo_83A4F18 - .4byte gObjectEventGraphicsInfo_83A4F3C - .4byte gObjectEventGraphicsInfo_83A4F60 - .4byte gObjectEventGraphicsInfo_83A4FCC - .4byte gObjectEventGraphicsInfo_83A4DF8 - .4byte gObjectEventGraphicsInfo_83A4E1C - .4byte gObjectEventGraphicsInfo_83A4E40 - .4byte gObjectEventGraphicsInfo_83A5134 - @9186 diff --git a/include/constants/event_objects.h b/include/constants/event_objects.h index 2d51cd74d..360b86fbf 100644 --- a/include/constants/event_objects.h +++ b/include/constants/event_objects.h @@ -154,12 +154,12 @@ #define OBJ_EVENT_GFX_DEOXYS_N 150 #define OBJ_EVENT_GFX_SS_ANNE 151 -#define NUM_OBJ_EVENT_GFX 239 +#define NUM_OBJ_EVENT_GFX 152 // These are dynamic object gfx ids. // They correspond with the values of the VAR_OBJ_GFX_ID_X vars. // More info about them in include/constants/vars.h -#define OBJ_EVENT_GFX_VARS (NUM_OBJ_EVENT_GFX + 1) +#define OBJ_EVENT_GFX_VARS 240 #define OBJ_EVENT_GFX_VAR_0 (OBJ_EVENT_GFX_VARS + 0x0) // 240 #define OBJ_EVENT_GFX_VAR_1 (OBJ_EVENT_GFX_VARS + 0x1) #define OBJ_EVENT_GFX_VAR_2 (OBJ_EVENT_GFX_VARS + 0x2) diff --git a/src/data/object_events/object_event_graphics_info_pointers.h b/src/data/object_events/object_event_graphics_info_pointers.h new file mode 100644 index 000000000..5710ea3ee --- /dev/null +++ b/src/data/object_events/object_event_graphics_info_pointers.h @@ -0,0 +1,308 @@ +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3BB0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3BD4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3BF8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3C1C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4858; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A48A0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A48C4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4564; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4588; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A45AC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A45D0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A487C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A48E8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A490C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3C64; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3C88; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3CAC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3CD0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3D3C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3DA8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3DF0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3CF4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3D18; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3D60; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3DCC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4390; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A43B4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3E14; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3E5C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3EEC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3E38; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3D84; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3E80; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3F34; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4420; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3F58; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A424C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4228; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4270; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3F7C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3FA0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3FC4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3FE8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4078; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A409C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A40C0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A40E4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3EA4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3EC8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4618; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4054; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4978; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A400C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A42B8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4108; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A412C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4294; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A41BC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4030; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3F10; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A3C40; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4150; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4174; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4198; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4300; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A44D4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A44F8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4324; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4468; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A448C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A44B0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A436C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4834; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A47A4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4810; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4660; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A47C8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A47EC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A43D8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A43FC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4684; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A46A8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A46CC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A46F0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4714; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4780; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A475C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4738; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A50EC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A463C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A41E0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A42DC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4348; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4930; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4954; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4444; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A451C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4540; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A49C0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A49E4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4A08; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4A2C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4A50; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4A74; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4A98; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4ABC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4AE0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4B04; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A5110; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A499C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4B28; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4F84; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4FF0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A50C8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A5014; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A5080; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A50A4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A5038; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4B4C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4B70; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A505C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4B94; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4BB8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4BDC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4C00; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4C24; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4C48; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4C6C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4C90; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4CB4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4CD8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4CFC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4D20; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4D44; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4FA8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4D68; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4D8C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4DB0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4DD4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4E64; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4E88; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4EAC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4EF4; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4ED0; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4F18; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4F3C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4F60; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4FCC; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4DF8; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4E1C; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A4E40; +const struct ObjectEventGraphicsInfo gObjectEventGraphicsInfo_83A5134; + + +const struct ObjectEventGraphicsInfo *const gObjectEventGraphicsInfoPointers[NUM_OBJ_EVENT_GFX] = { + [OBJ_EVENT_GFX_RED_NORMAL] = &gObjectEventGraphicsInfo_83A3BB0, + [OBJ_EVENT_GFX_RED_BIKE] = &gObjectEventGraphicsInfo_83A3BD4, + [OBJ_EVENT_GFX_RED_SURF] = &gObjectEventGraphicsInfo_83A3BF8, + [OBJ_EVENT_GFX_RED_ITEM] = &gObjectEventGraphicsInfo_83A3C1C, + [OBJ_EVENT_GFX_RED_FISH] = &gObjectEventGraphicsInfo_83A4858, + [OBJ_EVENT_GFX_RED_ITEM_COPY] = &gObjectEventGraphicsInfo_83A48A0, + [OBJ_EVENT_GFX_RED_VS_SEEKER] = &gObjectEventGraphicsInfo_83A48C4, + [OBJ_EVENT_GFX_GREEN_NORMAL] = &gObjectEventGraphicsInfo_83A4564, + [OBJ_EVENT_GFX_GREEN_BIKE] = &gObjectEventGraphicsInfo_83A4588, + [OBJ_EVENT_GFX_GREEN_SURF] = &gObjectEventGraphicsInfo_83A45AC, + [OBJ_EVENT_GFX_GREEN_ITEM] = &gObjectEventGraphicsInfo_83A45D0, + [OBJ_EVENT_GFX_GREEN_FISH] = &gObjectEventGraphicsInfo_83A487C, + [OBJ_EVENT_GFX_GREEN_ITEM_COPY] = &gObjectEventGraphicsInfo_83A48E8, + [OBJ_EVENT_GFX_GREEN_VS_SEEKER] = &gObjectEventGraphicsInfo_83A490C, + [OBJ_EVENT_GFX_RS_BRENDAN] = &gObjectEventGraphicsInfo_83A3C64, + [OBJ_EVENT_GFX_RS_MAY] = &gObjectEventGraphicsInfo_83A3C88, + [OBJ_EVENT_GFX_LITTLE_BOY] = &gObjectEventGraphicsInfo_83A3CAC, + [OBJ_EVENT_GFX_LITTLE_GIRL] = &gObjectEventGraphicsInfo_83A3CD0, + [OBJ_EVENT_GFX_YOUNGSTER] = &gObjectEventGraphicsInfo_83A3D3C, + [OBJ_EVENT_GFX_BOY] = &gObjectEventGraphicsInfo_83A3DA8, + [OBJ_EVENT_GFX_BUG_CATCHER] = &gObjectEventGraphicsInfo_83A3DF0, + [OBJ_EVENT_GFX_SITTING_BOY] = &gObjectEventGraphicsInfo_83A3CF4, + [OBJ_EVENT_GFX_LASS] = &gObjectEventGraphicsInfo_83A3D18, + [OBJ_EVENT_GFX_WOMAN_1] = &gObjectEventGraphicsInfo_83A3D60, + [OBJ_EVENT_GFX_BATTLE_GIRL] = &gObjectEventGraphicsInfo_83A3DCC, + [OBJ_EVENT_GFX_MAN] = &gObjectEventGraphicsInfo_83A4390, + [OBJ_EVENT_GFX_ROCKER] = &gObjectEventGraphicsInfo_83A43B4, + [OBJ_EVENT_GFX_FAT_MAN] = &gObjectEventGraphicsInfo_83A3E14, + [OBJ_EVENT_GFX_WOMAN_2] = &gObjectEventGraphicsInfo_83A3E5C, + [OBJ_EVENT_GFX_BEAUTY] = &gObjectEventGraphicsInfo_83A3EEC, + [OBJ_EVENT_GFX_BALDING_MAN] = &gObjectEventGraphicsInfo_83A3E38, + [OBJ_EVENT_GFX_WOMAN_3] = &gObjectEventGraphicsInfo_83A3D84, + [OBJ_EVENT_GFX_OLD_MAN_1] = &gObjectEventGraphicsInfo_83A3E80, + [OBJ_EVENT_GFX_OLD_MAN_2] = &gObjectEventGraphicsInfo_83A3F34, + [OBJ_EVENT_GFX_OLD_MAN_LYING_DOWN] = &gObjectEventGraphicsInfo_83A4420, + [OBJ_EVENT_GFX_OLD_WOMAN] = &gObjectEventGraphicsInfo_83A3F58, + [OBJ_EVENT_GFX_TUBER_M_1] = &gObjectEventGraphicsInfo_83A424C, + [OBJ_EVENT_GFX_TUBER_F] = &gObjectEventGraphicsInfo_83A4228, + [OBJ_EVENT_GFX_TUBER_M_2] = &gObjectEventGraphicsInfo_83A4270, + [OBJ_EVENT_GFX_CAMPER] = &gObjectEventGraphicsInfo_83A3F7C, + [OBJ_EVENT_GFX_PICNICKER] = &gObjectEventGraphicsInfo_83A3FA0, + [OBJ_EVENT_GFX_COOLTRAINER_M] = &gObjectEventGraphicsInfo_83A3FC4, + [OBJ_EVENT_GFX_COOLTRAINER_F] = &gObjectEventGraphicsInfo_83A3FE8, + [OBJ_EVENT_GFX_SWIMMER_M_WATER] = &gObjectEventGraphicsInfo_83A4078, + [OBJ_EVENT_GFX_SWIMMER_F_WATER] = &gObjectEventGraphicsInfo_83A409C, + [OBJ_EVENT_GFX_SWIMMER_M_LAND] = &gObjectEventGraphicsInfo_83A40C0, + [OBJ_EVENT_GFX_SWIMMER_F_LAND] = &gObjectEventGraphicsInfo_83A40E4, + [OBJ_EVENT_GFX_WORKER_M] = &gObjectEventGraphicsInfo_83A3EA4, + [OBJ_EVENT_GFX_WORKER_F] = &gObjectEventGraphicsInfo_83A3EC8, + [OBJ_EVENT_GFX_ROCKET_M] = &gObjectEventGraphicsInfo_83A4618, + [OBJ_EVENT_GFX_ROCKET_F] = &gObjectEventGraphicsInfo_83A4054, + [OBJ_EVENT_GFX_GBA_KID] = &gObjectEventGraphicsInfo_83A4978, + [OBJ_EVENT_GFX_SUPER_NERD] = &gObjectEventGraphicsInfo_83A400C, + [OBJ_EVENT_GFX_BIKER] = &gObjectEventGraphicsInfo_83A42B8, + [OBJ_EVENT_GFX_BLACKBELT] = &gObjectEventGraphicsInfo_83A4108, + [OBJ_EVENT_GFX_SCIENTIST] = &gObjectEventGraphicsInfo_83A412C, + [OBJ_EVENT_GFX_HIKER] = &gObjectEventGraphicsInfo_83A4294, + [OBJ_EVENT_GFX_FISHER] = &gObjectEventGraphicsInfo_83A41BC, + [OBJ_EVENT_GFX_CHANNELER] = &gObjectEventGraphicsInfo_83A4030, + [OBJ_EVENT_GFX_CHEF] = &gObjectEventGraphicsInfo_83A3F10, + [OBJ_EVENT_GFX_POLICEMAN] = &gObjectEventGraphicsInfo_83A3C40, + [OBJ_EVENT_GFX_GENTLEMAN] = &gObjectEventGraphicsInfo_83A4150, + [OBJ_EVENT_GFX_SAILOR] = &gObjectEventGraphicsInfo_83A4174, + [OBJ_EVENT_GFX_CAPTAIN] = &gObjectEventGraphicsInfo_83A4198, + [OBJ_EVENT_GFX_NURSE] = &gObjectEventGraphicsInfo_83A4300, + [OBJ_EVENT_GFX_CABLE_CLUB_RECEPTIONIST] = &gObjectEventGraphicsInfo_83A44D4, + [OBJ_EVENT_GFX_UNION_ROOM_RECEPTIONIST] = &gObjectEventGraphicsInfo_83A44F8, + [OBJ_EVENT_GFX_UNUSED_MALE_RECEPTIONIST] = &gObjectEventGraphicsInfo_83A4324, + [OBJ_EVENT_GFX_CLERK] = &gObjectEventGraphicsInfo_83A4468, + [OBJ_EVENT_GFX_MG_DELIVERYMAN] = &gObjectEventGraphicsInfo_83A448C, + [OBJ_EVENT_GFX_TRAINER_TOWER_DUDE] = &gObjectEventGraphicsInfo_83A44B0, + [OBJ_EVENT_GFX_PROF_OAK] = &gObjectEventGraphicsInfo_83A436C, + [OBJ_EVENT_GFX_BLUE] = &gObjectEventGraphicsInfo_83A4834, + [OBJ_EVENT_GFX_BILL] = &gObjectEventGraphicsInfo_83A47A4, + [OBJ_EVENT_GFX_LANCE] = &gObjectEventGraphicsInfo_83A4810, + [OBJ_EVENT_GFX_AGATHA] = &gObjectEventGraphicsInfo_83A4660, + [OBJ_EVENT_GFX_DAISY] = &gObjectEventGraphicsInfo_83A47C8, + [OBJ_EVENT_GFX_LORELEI] = &gObjectEventGraphicsInfo_83A47EC, + [OBJ_EVENT_GFX_MR_FUJI] = &gObjectEventGraphicsInfo_83A43D8, + [OBJ_EVENT_GFX_BRUNO] = &gObjectEventGraphicsInfo_83A43FC, + [OBJ_EVENT_GFX_BROCK] = &gObjectEventGraphicsInfo_83A4684, + [OBJ_EVENT_GFX_MISTY] = &gObjectEventGraphicsInfo_83A46A8, + [OBJ_EVENT_GFX_LT_SURGE] = &gObjectEventGraphicsInfo_83A46CC, + [OBJ_EVENT_GFX_ERIKA] = &gObjectEventGraphicsInfo_83A46F0, + [OBJ_EVENT_GFX_KOGA] = &gObjectEventGraphicsInfo_83A4714, + [OBJ_EVENT_GFX_SABRINA] = &gObjectEventGraphicsInfo_83A4780, + [OBJ_EVENT_GFX_BLAINE] = &gObjectEventGraphicsInfo_83A475C, + [OBJ_EVENT_GFX_GIOVANNI] = &gObjectEventGraphicsInfo_83A4738, + [OBJ_EVENT_GFX_MOM] = &gObjectEventGraphicsInfo_83A50EC, + [OBJ_EVENT_GFX_CELIO] = &gObjectEventGraphicsInfo_83A463C, + [OBJ_EVENT_GFX_TEACHY_TV_HOST] = &gObjectEventGraphicsInfo_83A41E0, + [OBJ_EVENT_GFX_GYM_GUY] = &gObjectEventGraphicsInfo_83A42DC, + [OBJ_EVENT_GFX_ITEM_BALL] = &gObjectEventGraphicsInfo_83A4348, + [OBJ_EVENT_GFX_TOWN_MAP] = &gObjectEventGraphicsInfo_83A4930, + [OBJ_EVENT_GFX_POKEDEX] = &gObjectEventGraphicsInfo_83A4954, + [OBJ_EVENT_GFX_CUT_TREE] = &gObjectEventGraphicsInfo_83A4444, + [OBJ_EVENT_GFX_ROCK_SMASH_ROCK] = &gObjectEventGraphicsInfo_83A451C, + [OBJ_EVENT_GFX_STRENGTH_BOULDER] = &gObjectEventGraphicsInfo_83A4540, + [OBJ_EVENT_GFX_FOSSIL] = &gObjectEventGraphicsInfo_83A49C0, + [OBJ_EVENT_GFX_RUBY] = &gObjectEventGraphicsInfo_83A49E4, + [OBJ_EVENT_GFX_SAPPHIRE] = &gObjectEventGraphicsInfo_83A4A08, + [OBJ_EVENT_GFX_OLD_AMBER] = &gObjectEventGraphicsInfo_83A4A2C, + [OBJ_EVENT_GFX_GYM_SIGN] = &gObjectEventGraphicsInfo_83A4A50, + [OBJ_EVENT_GFX_SIGN] = &gObjectEventGraphicsInfo_83A4A74, + [OBJ_EVENT_GFX_TRAINER_TIPS] = &gObjectEventGraphicsInfo_83A4A98, + [OBJ_EVENT_GFX_CLIPBOARD] = &gObjectEventGraphicsInfo_83A4ABC, + [OBJ_EVENT_GFX_METEORITE] = &gObjectEventGraphicsInfo_83A4AE0, + [OBJ_EVENT_GFX_LAPRAS_DOLL] = &gObjectEventGraphicsInfo_83A4B04, + [OBJ_EVENT_GFX_SEAGALLOP] = &gObjectEventGraphicsInfo_83A5110, + [OBJ_EVENT_GFX_SNORLAX] = &gObjectEventGraphicsInfo_83A499C, + [OBJ_EVENT_GFX_SPEAROW] = &gObjectEventGraphicsInfo_83A4B28, + [OBJ_EVENT_GFX_CUBONE] = &gObjectEventGraphicsInfo_83A4F84, + [OBJ_EVENT_GFX_POLIWRATH] = &gObjectEventGraphicsInfo_83A4FF0, + [OBJ_EVENT_GFX_CLEFAIRY] = &gObjectEventGraphicsInfo_83A50C8, + [OBJ_EVENT_GFX_PIDGEOT] = &gObjectEventGraphicsInfo_83A5014, + [OBJ_EVENT_GFX_JIGGLYPUFF] = &gObjectEventGraphicsInfo_83A5080, + [OBJ_EVENT_GFX_PIDGEY] = &gObjectEventGraphicsInfo_83A50A4, + [OBJ_EVENT_GFX_CHANSEY] = &gObjectEventGraphicsInfo_83A5038, + [OBJ_EVENT_GFX_OMANYTE] = &gObjectEventGraphicsInfo_83A4B4C, + [OBJ_EVENT_GFX_KANGASKHAN] = &gObjectEventGraphicsInfo_83A4B70, + [OBJ_EVENT_GFX_PIKACHU] = &gObjectEventGraphicsInfo_83A505C, + [OBJ_EVENT_GFX_PSYDUCK] = &gObjectEventGraphicsInfo_83A4B94, + [OBJ_EVENT_GFX_NIDORAN_F] = &gObjectEventGraphicsInfo_83A4BB8, + [OBJ_EVENT_GFX_NIDORAN_M] = &gObjectEventGraphicsInfo_83A4BDC, + [OBJ_EVENT_GFX_NIDORINO] = &gObjectEventGraphicsInfo_83A4C00, + [OBJ_EVENT_GFX_MEOWTH] = &gObjectEventGraphicsInfo_83A4C24, + [OBJ_EVENT_GFX_SEEL] = &gObjectEventGraphicsInfo_83A4C48, + [OBJ_EVENT_GFX_VOLTORB] = &gObjectEventGraphicsInfo_83A4C6C, + [OBJ_EVENT_GFX_SLOWPOKE] = &gObjectEventGraphicsInfo_83A4C90, + [OBJ_EVENT_GFX_SLOWBRO] = &gObjectEventGraphicsInfo_83A4CB4, + [OBJ_EVENT_GFX_MACHOP] = &gObjectEventGraphicsInfo_83A4CD8, + [OBJ_EVENT_GFX_WIGGLYTUFF] = &gObjectEventGraphicsInfo_83A4CFC, + [OBJ_EVENT_GFX_DODUO] = &gObjectEventGraphicsInfo_83A4D20, + [OBJ_EVENT_GFX_FEAROW] = &gObjectEventGraphicsInfo_83A4D44, + [OBJ_EVENT_GFX_MACHOKE] = &gObjectEventGraphicsInfo_83A4FA8, + [OBJ_EVENT_GFX_LAPRAS] = &gObjectEventGraphicsInfo_83A4D68, + [OBJ_EVENT_GFX_ZAPDOS] = &gObjectEventGraphicsInfo_83A4D8C, + [OBJ_EVENT_GFX_MOLTRES] = &gObjectEventGraphicsInfo_83A4DB0, + [OBJ_EVENT_GFX_ARTICUNO] = &gObjectEventGraphicsInfo_83A4DD4, + [OBJ_EVENT_GFX_MEWTWO] = &gObjectEventGraphicsInfo_83A4E64, + [OBJ_EVENT_GFX_MEW] = &gObjectEventGraphicsInfo_83A4E88, + [OBJ_EVENT_GFX_ENTEI] = &gObjectEventGraphicsInfo_83A4EAC, + [OBJ_EVENT_GFX_SUICUNE] = &gObjectEventGraphicsInfo_83A4EF4, + [OBJ_EVENT_GFX_RAIKOU] = &gObjectEventGraphicsInfo_83A4ED0, + [OBJ_EVENT_GFX_LUGIA] = &gObjectEventGraphicsInfo_83A4F18, + [OBJ_EVENT_GFX_HO_OH] = &gObjectEventGraphicsInfo_83A4F3C, + [OBJ_EVENT_GFX_CELEBI] = &gObjectEventGraphicsInfo_83A4F60, + [OBJ_EVENT_GFX_KABUTO] = &gObjectEventGraphicsInfo_83A4FCC, + [OBJ_EVENT_GFX_DEOXYS_D] = &gObjectEventGraphicsInfo_83A4DF8, + [OBJ_EVENT_GFX_DEOXYS_A] = &gObjectEventGraphicsInfo_83A4E1C, + [OBJ_EVENT_GFX_DEOXYS_N] = &gObjectEventGraphicsInfo_83A4E40, + [OBJ_EVENT_GFX_SS_ANNE] = &gObjectEventGraphicsInfo_83A5134, +}; diff --git a/src/event_object_movement.c b/src/event_object_movement.c index 87e78ed92..c30f50584 100644 --- a/src/event_object_movement.c +++ b/src/event_object_movement.c @@ -123,8 +123,8 @@ EWRAM_DATA u8 sCurrentReflectionType = 0; EWRAM_DATA u16 sCurrentSpecialObjectPaletteTag = 0; extern const u8 gRangedMovementTypes[NUM_FIELD_MAP_OBJECT_TEMPLATES]; -extern const u8 gInitialMovementTypeFacingDirections[NUM_FIELD_MAP_OBJECT_TEMPLATES]; extern void (*const sMovementTypeCallbacks[])(struct Sprite *); +extern const u8 gInitialMovementTypeFacingDirections[NUM_FIELD_MAP_OBJECT_TEMPLATES]; extern const struct ObjectEventGraphicsInfo *const gObjectEventGraphicsInfoPointers[NUM_OBJ_EVENT_GFX]; extern const struct SpritePalette sObjectEventSpritePalettes[]; extern const struct PairedPalettes gPlayerReflectionPaletteSets[]; @@ -884,7 +884,7 @@ extern const u32 gUnknown_8394E28[]; #define OBJ_EVENT_PAL_TAG_34 0x1123 #define OBJ_EVENT_PAL_TAG_NONE 0x11FF -/*#include "data/object_events/object_event_graphics_info_pointers.h"*/ +#include "data/object_events/object_event_graphics_info_pointers.h" #include "data/field_effects/field_effect_object_template_pointers.h" #include "data/object_events/object_event_pic_tables.h" #include "data/object_events/object_event_anims.h" @@ -2719,8 +2719,8 @@ const struct ObjectEventGraphicsInfo *GetObjectEventGraphicsInfo(u8 graphicsId) if (graphicsId >= OBJ_EVENT_GFX_VARS) graphicsId = VarGetObjectEventGraphicsId(graphicsId - OBJ_EVENT_GFX_VARS); - if (graphicsId >= 152) - graphicsId = 16; + if (graphicsId >= NUM_OBJ_EVENT_GFX) + graphicsId = OBJ_EVENT_GFX_LITTLE_BOY; return gObjectEventGraphicsInfoPointers[graphicsId]; } |