summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/constants/global.h1
-rw-r--r--include/constants/metatile_labels.h148
-rw-r--r--include/digit_obj_util.h26
-rw-r--r--include/field_player_avatar.h12
-rw-r--r--include/global.fieldmap.h2
-rw-r--r--include/global.h2
-rw-r--r--include/minigame_countdown.h7
-rw-r--r--include/party_menu.h4
-rw-r--r--include/pokemon_jump.h2
-rw-r--r--include/rom_8034C54.h26
-rw-r--r--include/save_location.h1
11 files changed, 176 insertions, 55 deletions
diff --git a/include/constants/global.h b/include/constants/global.h
index 7c96de511..c7063d71c 100644
--- a/include/constants/global.h
+++ b/include/constants/global.h
@@ -67,6 +67,7 @@
#define FRONTIER_DOUBLES_PARTY_SIZE 4
#define FRONTIER_MULTI_PARTY_SIZE 2
#define MAX_FRONTIER_PARTY_SIZE FRONTIER_DOUBLES_PARTY_SIZE
+#define UNION_ROOM_PARTY_SIZE 2
// string lengths
#define ITEM_NAME_LENGTH 14
diff --git a/include/constants/metatile_labels.h b/include/constants/metatile_labels.h
index 4bcf47ea8..586107687 100644
--- a/include/constants/metatile_labels.h
+++ b/include/constants/metatile_labels.h
@@ -524,33 +524,64 @@
#define METATILE_SecretBase_MudBall 0x228
#define METATILE_SecretBase_Fence_Horizontal 0x22C
#define METATILE_SecretBase_Fence_Vertical 0x233
-#define METATILE_SecretBase_Board_Top 0x234
-#define METATILE_SecretBase_Board_Bottom 0x23C
+#define METATILE_SecretBase_SolidBoard_Top 0x234
+#define METATILE_SecretBase_SolidBoard_Bottom 0x23C
+#define METATILE_SecretBase_RedTent_TopLeft 0x230
+#define METATILE_SecretBase_RedTent_TopMid 0x231
+#define METATILE_SecretBase_RedTent_TopRight 0x232
+#define METATILE_SecretBase_RedTent_MidLeft 0x238
#define METATILE_SecretBase_RedTent_DoorTop 0x239
+#define METATILE_SecretBase_RedTent_MidRight 0x23A
+#define METATILE_SecretBase_RedTent_BottomLeft 0x240
#define METATILE_SecretBase_RedTent_Door 0x241
+#define METATILE_SecretBase_RedTent_BottomRight 0x23B
+#define METATILE_SecretBase_BlueTent_TopLeft 0x248
+#define METATILE_SecretBase_BlueTent_TopMid 0x249
+#define METATILE_SecretBase_BlueTent_TopRight 0x268
+#define METATILE_SecretBase_BlueTent_MidLeft 0x250
#define METATILE_SecretBase_BlueTent_DoorTop 0x251
+#define METATILE_SecretBase_BlueTent_MidRight 0x270
+#define METATILE_SecretBase_BlueTent_BottomLeft 0x258
#define METATILE_SecretBase_BlueTent_Door 0x259
-#define METATILE_SecretBase_Slide_Stairs 0x23D
-#define METATILE_SecretBase_Slide 0x23E
-#define METATILE_SecretBase_Stand_LeftCorner 0x26A
-#define METATILE_SecretBase_Stand_RightCorner 0x26D
+#define METATILE_SecretBase_BlueTent_BottomRight 0x269
+#define METATILE_SecretBase_Slide_TopLeft 0x235
+#define METATILE_SecretBase_Slide_TopRight 0x236
+#define METATILE_SecretBase_Slide_StairLanding 0x23D
+#define METATILE_SecretBase_Slide_SlideTop 0x23E
+#define METATILE_SecretBase_Slide_Stairs 0x263
+#define METATILE_SecretBase_Slide_SlideBottom 0x264
+#define METATILE_SecretBase_Slide_MatLeft 0x26F
+#define METATILE_SecretBase_Slide_MatRight 0x277
+#define METATILE_SecretBase_Stand_CornerLeft 0x26A
+#define METATILE_SecretBase_Stand_MidLeft 0x26B
+#define METATILE_SecretBase_Stand_MidRight 0x26C
+#define METATILE_SecretBase_Stand_CornerRight 0x26D
+#define METATILE_SecretBase_Stand_StairsLeft 0x272
+#define METATILE_SecretBase_Stand_BaseLeft 0x273
+#define METATILE_SecretBase_Stand_BaseRight 0x274
+#define METATILE_SecretBase_Stand_StairsRight 0x275
#define METATILE_SecretBase_BreakableDoor_TopClosed 0x237
#define METATILE_SecretBase_BreakableDoor_BottomClosed 0x23F
#define METATILE_SecretBase_BreakableDoor_TopOpen 0x26E
#define METATILE_SecretBase_BreakableDoor_BottomOpen 0x276
-#define METATILE_SecretBase_NoteMat_C 0x278
+#define METATILE_SecretBase_GlitterMat 0x260
+#define METATILE_SecretBase_JumpMat 0x261
+#define METATILE_SecretBase_SpinMat 0x262
+#define METATILE_SecretBase_NoteMat_C_Low 0x278
#define METATILE_SecretBase_NoteMat_D 0x279
#define METATILE_SecretBase_NoteMat_E 0x27A
#define METATILE_SecretBase_NoteMat_F 0x27B
#define METATILE_SecretBase_NoteMat_G 0x27C
#define METATILE_SecretBase_NoteMat_A 0x27D
#define METATILE_SecretBase_NoteMat_B 0x27E
-#define METATILE_SecretBase_NoteMat_C_Sharp 0x2B3
+#define METATILE_SecretBase_NoteMat_C_High 0x2B3
#define METATILE_SecretBase_Tire_TopLeft 0x280
#define METATILE_SecretBase_Tire_TopRight 0x281
#define METATILE_SecretBase_Tire_BottomLeft 0x288
#define METATILE_SecretBase_Tire_BottomRight 0x289
+#define METATILE_SecretBase_GlassOrnament_Top 0x282
#define METATILE_SecretBase_GlassOrnament_Base1 0x28A
+#define METATILE_SecretBase_GlassOrnament_TopWall 0x283
#define METATILE_SecretBase_GlassOrnament_Base2 0x28B
#define METATILE_SecretBase_SandOrnament_BrokenTop 0x284
#define METATILE_SecretBase_SandOrnament_BrokenBase 0x28C
@@ -622,23 +653,41 @@
#define METATILE_SecretBase_RaggedChair 0x2C2
#define METATILE_SecretBase_BrickChair 0x2C8
#define METATILE_SecretBase_CampChair 0x2C9
-#define METATILE_SecretBase_HardChair 0x2Ca
+#define METATILE_SecretBase_HardChair 0x2CA
+#define METATILE_SecretBase_RedPlant_Top 0x2D0
#define METATILE_SecretBase_RedPlant_Base1 0x2D8
+#define METATILE_SecretBase_RedPlant_TopWall 0x2D1
#define METATILE_SecretBase_RedPlant_Base2 0x2D9
+#define METATILE_SecretBase_TropicalPlant_Top 0x2D2
#define METATILE_SecretBase_TropicalPlant_Base1 0x2DA
+#define METATILE_SecretBase_TropicalPlant_TopWall 0x2D3
#define METATILE_SecretBase_TropicalPlant_Base2 0x2DB
-#define METATILE_SecretBase_PrettyFlower_Base1 0x2DC
-#define METATILE_SecretBase_PrettyFlower_Base2 0x2DD
-#define METATILE_SecretBase_ColorfulFlowers_BaseLeft1 0x2E8
-#define METATILE_SecretBase_ColorfulFlowers_BaseRight1 0x2E9
-#define METATILE_SecretBase_ColorfulFlowers_BaseLeft2 0x2EA
-#define METATILE_SecretBase_ColorfulFlowers_BaseRight2 0x2EB
+#define METATILE_SecretBase_PrettyFlowers_Top 0x2D4
+#define METATILE_SecretBase_PrettyFlowers_Base1 0x2DC
+#define METATILE_SecretBase_PrettyFlowers_TopWall 0x2D5
+#define METATILE_SecretBase_PrettyFlowers_Base2 0x2DD
+#define METATILE_SecretBase_ColorfulPlant_TopLeft 0x2E0
+#define METATILE_SecretBase_ColorfulPlant_TopRight 0x2E2
+#define METATILE_SecretBase_ColorfulPlant_BaseLeft1 0x2E8
+#define METATILE_SecretBase_ColorfulPlant_BaseRight1 0x2E9
+#define METATILE_SecretBase_ColorfulPlant_TopLeftWall 0x2E1
+#define METATILE_SecretBase_ColorfulPlant_TopRightWall 0x2E3
+#define METATILE_SecretBase_ColorfulPlant_BaseLeft2 0x2EA
+#define METATILE_SecretBase_ColorfulPlant_BaseRight2 0x2EB
+#define METATILE_SecretBase_BigPlant_TopLeft 0x2E4
+#define METATILE_SecretBase_BigPlant_TopRight 0x2E6
#define METATILE_SecretBase_BigPlant_BaseLeft1 0x2EC
#define METATILE_SecretBase_BigPlant_BaseRight1 0x2ED
+#define METATILE_SecretBase_BigPlant_TopLeftWall 0x2E5
+#define METATILE_SecretBase_BigPlant_TopRightWall 0x2E6
#define METATILE_SecretBase_BigPlant_BaseLeft2 0x2EE
#define METATILE_SecretBase_BigPlant_BaseRight2 0x2EF
+#define METATILE_SecretBase_GorgeousPlant_TopLeft 0x2F0
+#define METATILE_SecretBase_GorgeousPlant_TopRight 0x2F2
#define METATILE_SecretBase_GorgeousPlant_BaseLeft1 0x2F8
#define METATILE_SecretBase_GorgeousPlant_BaseRight1 0x2F9
+#define METATILE_SecretBase_GorgeousPlant_TopLeftWall 0x2F1
+#define METATILE_SecretBase_GorgeousPlant_TopRightWall 0x2F3
#define METATILE_SecretBase_GorgeousPlant_BaseLeft2 0x2FA
#define METATILE_SecretBase_GorgeousPlant_BaseRight2 0x2FB
#define METATILE_SecretBase_TV 0x2F4
@@ -659,12 +708,79 @@
#define METATILE_SecretBase_RedPoster 0x332
#define METATILE_SecretBase_BluePoster 0x333
#define METATILE_SecretBase_CutePoster 0x334
+#define METATILE_SecretBase_SilverShield_Top 0x2D6
#define METATILE_SecretBase_SilverShield_Base1 0x2DE
+#define METATILE_SecretBase_SilverShield_TopWall 0x2D7
#define METATILE_SecretBase_SilverShield_Base2 0x2DF
+#define METATILE_SecretBase_GoldShield_Top 0x32E
#define METATILE_SecretBase_GoldShield_Base1 0x336
+#define METATILE_SecretBase_GoldShield_TopWall 0x32F
#define METATILE_SecretBase_GoldShield_Base2 0x337
#define METATILE_SecretBase_RedBalloon 0x338
-#define METATILE_SecretBase_BlueBalloon 0x33c
+#define METATILE_SecretBase_BlueBalloon 0x33C
#define METATILE_SecretBase_YellowBalloon 0x340
+#define METATILE_SecretBase_SurfMat_TopLeft 0x242
+#define METATILE_SecretBase_SurfMat_TopMid 0x243
+#define METATILE_SecretBase_SurfMat_TopRight 0x244
+#define METATILE_SecretBase_SurfMat_MidLeft 0x24A
+#define METATILE_SecretBase_SurfMat_Center 0x24B
+#define METATILE_SecretBase_SurfMat_MidRight 0x24C
+#define METATILE_SecretBase_SurfMat_BottomLeft 0x252
+#define METATILE_SecretBase_SurfMat_BottomMid 0x253
+#define METATILE_SecretBase_SurfMat_BottomRight 0x254
+#define METATILE_SecretBase_ThunderMat_TopLeft 0x245
+#define METATILE_SecretBase_ThunderMat_TopMid 0x246
+#define METATILE_SecretBase_ThunderMat_TopRight 0x247
+#define METATILE_SecretBase_ThunderMat_MidLeft 0x24D
+#define METATILE_SecretBase_ThunderMat_Center 0x24E
+#define METATILE_SecretBase_ThunderMat_MidRight 0x24F
+#define METATILE_SecretBase_ThunderMat_BottomLeft 0x255
+#define METATILE_SecretBase_ThunderMat_BottomMid 0x256
+#define METATILE_SecretBase_ThunderMat_BottomRight 0x257
+#define METATILE_SecretBase_FireBlastMat_TopLeft 0x25A
+#define METATILE_SecretBase_FireBlastMat_TopMid 0x25B
+#define METATILE_SecretBase_FireBlastMat_TopRight 0x25C
+#define METATILE_SecretBase_FireBlastMat_MidLeft 0x25D
+#define METATILE_SecretBase_FireBlastMat_Center 0x25E
+#define METATILE_SecretBase_FireBlastMat_MidRight 0x25F
+#define METATILE_SecretBase_FireBlastMat_BottomLeft 0x265
+#define METATILE_SecretBase_FireBlastMat_BottomMid 0x266
+#define METATILE_SecretBase_FireBlastMat_BottomRight 0x267
+#define METATILE_SecretBase_PowderSnowMat_TopLeft 0x300
+#define METATILE_SecretBase_PowderSnowMat_TopMid 0x301
+#define METATILE_SecretBase_PowderSnowMat_TopRight 0x302
+#define METATILE_SecretBase_PowderSnowMat_MidLeft 0x308
+#define METATILE_SecretBase_PowderSnowMat_Center 0x309
+#define METATILE_SecretBase_PowderSnowMat_MidRight 0x30A
+#define METATILE_SecretBase_PowderSnowMat_BottomLeft 0x310
+#define METATILE_SecretBase_PowderSnowMat_BottomMid 0x311
+#define METATILE_SecretBase_PowderSnowMat_BottomRight 0x312
+#define METATILE_SecretBase_AttractMat_TopLeft 0x303
+#define METATILE_SecretBase_AttractMat_TopMid 0x304
+#define METATILE_SecretBase_AttractMat_TopRight 0x305
+#define METATILE_SecretBase_AttractMat_MidLeft 0x30B
+#define METATILE_SecretBase_AttractMat_Center 0x30C
+#define METATILE_SecretBase_AttractMat_MidRight 0x30D
+#define METATILE_SecretBase_AttractMat_BottomLeft 0x313
+#define METATILE_SecretBase_AttractMat_BottomMid 0x314
+#define METATILE_SecretBase_AttractMat_BottomRight 0x315
+#define METATILE_SecretBase_FissureMat_TopLeft 0x306
+#define METATILE_SecretBase_FissureMat_TopMid 0x307
+#define METATILE_SecretBase_FissureMat_TopRight 0x318
+#define METATILE_SecretBase_FissureMat_MidLeft 0x30E
+#define METATILE_SecretBase_FissureMat_Center 0x30F
+#define METATILE_SecretBase_FissureMat_MidRight 0x320
+#define METATILE_SecretBase_FissureMat_BottomLeft 0x316
+#define METATILE_SecretBase_FissureMat_BottomMid 0x317
+#define METATILE_SecretBase_FissureMat_BottomRight 0x328
+#define METATILE_SecretBase_SpikesMat_TopLeft 0x319
+#define METATILE_SecretBase_SpikesMat_TopMid 0x31A
+#define METATILE_SecretBase_SpikesMat_TopRight 0x31B
+#define METATILE_SecretBase_SpikesMat_MidLeft 0x321
+#define METATILE_SecretBase_SpikesMat_Center 0x322
+#define METATILE_SecretBase_SpikesMat_MidRight 0x323
+#define METATILE_SecretBase_SpikesMat_BottomLeft 0x329
+#define METATILE_SecretBase_SpikesMat_BottomMid 0x32A
+#define METATILE_SecretBase_SpikesMat_BottomRight 0x32B
#endif // GUARD_METATILE_LABELS_H
diff --git a/include/digit_obj_util.h b/include/digit_obj_util.h
new file mode 100644
index 000000000..aca97e2c7
--- /dev/null
+++ b/include/digit_obj_util.h
@@ -0,0 +1,26 @@
+#ifndef GUARD_DIGIT_OBJ_UTIL_H
+#define GUARD_DIGIT_OBJ_UTIL_H
+
+struct DigitObjUtilTemplate
+{
+ u8 strConvMode:2;
+ u8 shape:2;
+ u8 size:2;
+ u8 priority:2;
+ u8 oamCount;
+ u8 xDelta;
+ s16 x;
+ s16 y;
+ const struct SpriteSheet *spriteSheet;
+ const struct SpritePalette *spritePal;
+};
+
+bool32 DigitObjUtil_Init(u32 count);
+void DigitObjUtil_Free(void);
+bool32 DigitObjUtil_CreatePrinter(u32 id, s32 num, const struct DigitObjUtilTemplate *template);
+void DigitObjUtil_PrintNumOn(u32 id, s32 arg1);
+void DigitObjUtil_DeletePrinter(u32 id);
+void DigitObjUtil_HideOrShow(u32 id, bool32 arg1);
+u8 GetTilesPerImage(u32 shape, u32 size);
+
+#endif // GUARD_DIGIT_OBJ_UTIL_H
diff --git a/include/field_player_avatar.h b/include/field_player_avatar.h
index 5e5a2361f..bcee339d5 100644
--- a/include/field_player_avatar.h
+++ b/include/field_player_avatar.h
@@ -48,15 +48,15 @@ bool8 PartyHasMonWithSurf(void);
bool8 IsPlayerFacingSurfableFishableWater(void);
bool8 IsPlayerSurfingNorth(void);
void sub_808C228(u8 direction);
-u8 sub_808BCD0(void);
+u8 GetPlayerAvatarFlags(void);
void sub_808B578(void);
u8 GetFRLGAvatarGraphicsIdByGender(u8);
u8 GetRSAvatarGraphicsIdByGender(u8);
-void sub_808B980(u8 direction);
-void sub_808B9BC(u8 direction);
-void sub_808B9A4(u8 direction);
-void sub_808C1B4(u8 direction);
-void sub_808B9D4(u8 direction);
+void PlayerWheelieInPlace(u8 direction);
+void PlayerWheelieMove(u8 direction);
+void PlayerPopWheelieWhileMoving(u8 direction);
+void PlayerUseAcroBikeOnBumpySlope(u8 direction);
+void PlayerEndWheelieWhileMoving(u8 direction);
void sub_808D194(void);
void sub_808D1C8(void);
bool32 sub_808D1B4(void);
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index af2be9c77..2e451a368 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -304,7 +304,7 @@ enum
struct PlayerAvatar
{
/*0x00*/ u8 flags;
- /*0x01*/ u8 unk1; // used to be named bike, but its definitely not that. seems to be some transition flags
+ /*0x01*/ u8 transitionFlags; // used to be named bike, but its definitely not that. seems to be some transition flags
/*0x02*/ u8 runningState; // this is a static running state. 00 is not moving, 01 is turn direction, 02 is moving.
/*0x03*/ u8 tileTransitionState; // this is a transition running state: 00 is not moving, 01 is transition between tiles, 02 means you are on the frame in which you have centered on a tile but are about to keep moving, even if changing directions. 2 is also used for a ledge hop, since you are transitioning.
/*0x04*/ u8 spriteId;
diff --git a/include/global.h b/include/global.h
index e3c8fee55..bcf3e6486 100644
--- a/include/global.h
+++ b/include/global.h
@@ -465,7 +465,7 @@ struct SaveBlock2
/*0x90*/ u8 filler_90[0x8];
/*0x98*/ struct Time localTimeOffset;
/*0xA0*/ struct Time lastBerryTreeUpdate;
- /*0xA8*/ u32 field_A8; // Written to, but never read.
+ /*0xA8*/ u32 gcnLinkFlags; // Read by Pokemon Colosseum/XD
/*0xAC*/ u32 encryptionKey;
/*0xB0*/ struct PlayersApprentice playerApprentice;
/*0xDC*/ struct Apprentice apprentices[APPRENTICE_COUNT];
diff --git a/include/minigame_countdown.h b/include/minigame_countdown.h
new file mode 100644
index 000000000..930205218
--- /dev/null
+++ b/include/minigame_countdown.h
@@ -0,0 +1,7 @@
+#ifndef GUARD_MINIGAME_COUNTDOWN_H
+#define GUARD_MINIGAME_COUNTDOWN_H
+
+void StartMinigameCountdown(u16 tilesTag, u16 palTag, s16 x, s16 y, u8 subpriority);
+bool32 IsMinigameCountdownRunning(void);
+
+#endif //GUARD_MINIGAME_COUNTDOWN_H
diff --git a/include/party_menu.h b/include/party_menu.h
index 126931762..7f51d08c9 100644
--- a/include/party_menu.h
+++ b/include/party_menu.h
@@ -24,8 +24,8 @@ extern struct PartyMenu gPartyMenu;
extern bool8 gPartyMenuUseExitCallback;
extern u8 gSelectedMonPartyId;
extern MainCallback gPostMenuFieldCallback;
-extern u8 gSelectedOrderFromParty[4];
-extern u8 gBattlePartyCurrentOrder[3];
+extern u8 gSelectedOrderFromParty[MAX_FRONTIER_PARTY_SIZE];
+extern u8 gBattlePartyCurrentOrder[PARTY_SIZE / 2];
extern void (*gItemUseCB)(u8, TaskFunc);
diff --git a/include/pokemon_jump.h b/include/pokemon_jump.h
index dde59aac5..9cf65212f 100644
--- a/include/pokemon_jump.h
+++ b/include/pokemon_jump.h
@@ -8,7 +8,5 @@ bool32 IsSpeciesAllowedInPokemonJump(u16 species);
void IsPokemonJumpSpeciesInParty(void);
void ResetPokeJumpResults(void);
void ShowPokemonJumpRecords(void);
-void sub_802EB24(s16 tileTag, s16 palTag, s16 x, s16 y, u8 subpriority);
-bool32 sub_802EB84(void);
#endif // GUARD_POKEMON_JUMP_H
diff --git a/include/rom_8034C54.h b/include/rom_8034C54.h
deleted file mode 100644
index 4da324dd1..000000000
--- a/include/rom_8034C54.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef GUARD_ROM_8034C54_H
-#define GUARD_ROM_8034C54_H
-
-struct UnkStruct3
-{
- u8 field_0_0:2;
- u8 shape:2;
- u8 size:2;
- u8 priority:2;
- u8 field_1;
- u8 xDelta;
- s16 x;
- s16 y;
- const struct SpriteSheet *spriteSheet;
- const struct SpritePalette *spritePal;
-};
-
-bool32 sub_8034C54(u32 count);
-void sub_8034CC8(void);
-bool32 sub_8034D14(u32 id, s32 arg1, const struct UnkStruct3 *arg2);
-void sub_8035044(u32 id, s32 arg1);
-void sub_80353DC(u32 id);
-void sub_803547C(u32 id, bool32 arg1);
-u8 sub_80355F8(u32 shape, u32 size);
-
-#endif // GUARD_ROM_8034C54_H
diff --git a/include/save_location.h b/include/save_location.h
index 6c2ae0e6b..53f317c57 100644
--- a/include/save_location.h
+++ b/include/save_location.h
@@ -13,7 +13,6 @@
#define CHAMPION_SAVEWARP (1 << 7)
void TrySetMapSaveWarpStatus(void);
-void sub_81AFDA0(void);
void SetChampionSaveWarp(void);
#endif // GUARD_SAVE_LOCATION_H