diff --git a/src/battle_anim_mons.c b/src/battle_anim_mons.c index 372377a0cf..ec1bdada80 100644 --- a/src/battle_anim_mons.c +++ b/src/battle_anim_mons.c @@ -192,6 +192,7 @@ u8 GetBattlerYDelta(u8 battlerId, u16 species) { if (species == SPECIES_UNOWN) { + /* if (IsContest()) { if (gContestResources->field_18->unk4_0) @@ -213,6 +214,7 @@ u8 GetBattlerYDelta(u8 battlerId, u16 species) else coordSpecies = letter + SPECIES_UNOWN_B - 1; ret = gMonBackPicCoords[coordSpecies].y_offset; + */ } else if (species == SPECIES_CASTFORM) { @@ -231,6 +233,7 @@ u8 GetBattlerYDelta(u8 battlerId, u16 species) { if (species == SPECIES_UNOWN) { + /* spriteInfo = gBattleSpritesDataPtr->battlerData; if (!spriteInfo[battlerId].transformSpecies) personality = GetMonData(&gEnemyParty[gBattlerPartyIndexes[battlerId]], MON_DATA_PERSONALITY); @@ -242,6 +245,7 @@ u8 GetBattlerYDelta(u8 battlerId, u16 species) else coordSpecies = letter + SPECIES_UNOWN_B - 1; ret = gMonFrontPicCoords[coordSpecies].y_offset; + */ } else if (species == SPECIES_CASTFORM) { @@ -2118,12 +2122,14 @@ s16 GetBattlerSpriteCoordAttr(u8 battlerId, u8 attr) } if (species == SPECIES_UNOWN) { + /* letter = GET_UNOWN_LETTER(personality); if (!letter) unownSpecies = SPECIES_UNOWN; else unownSpecies = letter + SPECIES_UNOWN_B - 1; coords = &gMonBackPicCoords[unownSpecies]; + */ } else if (species == SPECIES_CASTFORM) { @@ -2156,12 +2162,14 @@ s16 GetBattlerSpriteCoordAttr(u8 battlerId, u8 attr) if (species == SPECIES_UNOWN) { + /* letter = GET_UNOWN_LETTER(personality); if (!letter) unownSpecies = SPECIES_UNOWN; else unownSpecies = letter + SPECIES_UNOWN_B - 1; coords = &gMonBackPicCoords[unownSpecies]; + */ } else if (species > NUM_SPECIES) { @@ -2188,12 +2196,14 @@ s16 GetBattlerSpriteCoordAttr(u8 battlerId, u8 attr) if (species == SPECIES_UNOWN) { + /* letter = GET_UNOWN_LETTER(personality); if (!letter) unownSpecies = SPECIES_UNOWN; else unownSpecies = letter + SPECIES_UNOWN_B - 1; coords = &gMonFrontPicCoords[unownSpecies]; + */ } else if (species == SPECIES_CASTFORM) { diff --git a/src/credits.c b/src/credits.c index 1e96514b17..1108f5fb96 100644 --- a/src/credits.c +++ b/src/credits.c @@ -9,6 +9,7 @@ #include "menu.h" #include "international_string_util.h" #include "constants/songs.h" +#include "constants/species.h" #include "gpu_regs.h" #include "m4a.h" #include "constants/rgb.h" diff --git a/src/decompress.c b/src/decompress.c index 949b969901..5990d48e8f 100644 --- a/src/decompress.c +++ b/src/decompress.c @@ -87,6 +87,7 @@ void HandleLoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *des void LoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic) { + /* if (species == SPECIES_UNOWN) { u16 i = (((personality & 0x3000000) >> 18) | ((personality & 0x30000) >> 12) | ((personality & 0x300) >> 6) | (personality & 3)) % 0x1C; @@ -102,7 +103,7 @@ void LoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32 else LZ77UnCompWram(gMonFrontPicTable[i].data, dest); } - else if (species > NUM_SPECIES) // is species unknown? draw the ? icon + else*/ if (species > NUM_SPECIES) // is species unknown? draw the ? icon LZ77UnCompWram(gMonFrontPicTable[0].data, dest); else LZ77UnCompWram(src->data, dest); @@ -508,6 +509,7 @@ void DecompressPicFromTable_2(const struct CompressedSpriteSheet *src, void* buf void LoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic) // a copy of LoadSpecialPokePic { + /* if (species == SPECIES_UNOWN) { u16 i = (((personality & 0x3000000) >> 18) | ((personality & 0x30000) >> 12) | ((personality & 0x300) >> 6) | (personality & 3)) % 0x1C; @@ -523,7 +525,7 @@ void LoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *dest, s else LZ77UnCompWram(gMonFrontPicTable[i].data, dest); } - else if (species > NUM_SPECIES) // is species unknown? draw the ? icon + else*/ if (species > NUM_SPECIES) // is species unknown? draw the ? icon LZ77UnCompWram(gMonFrontPicTable[0].data, dest); else LZ77UnCompWram(src->data, dest); @@ -566,6 +568,7 @@ void HandleLoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteShee void LoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic) { + /* if (species == SPECIES_UNOWN) { u16 i = (((personality & 0x3000000) >> 18) | ((personality & 0x30000) >> 12) | ((personality & 0x300) >> 6) | (personality & 3)) % 0x1C; @@ -581,7 +584,7 @@ void LoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src else LZ77UnCompWram(gMonFrontPicTable[i].data, dest); } - else if (species > NUM_SPECIES) // is species unknown? draw the ? icon + else*/ if (species > NUM_SPECIES) // is species unknown? draw the ? icon LZ77UnCompWram(gMonFrontPicTable[0].data, dest); else LZ77UnCompWram(src->data, dest); diff --git a/src/hall_of_fame.c b/src/hall_of_fame.c index 8eba90d962..45af671c0e 100644 --- a/src/hall_of_fame.c +++ b/src/hall_of_fame.c @@ -40,8 +40,8 @@ struct HallofFameMon { u32 tid; u32 personality; - u16 species:9; - u16 lvl:7; + u16 species; + u8 lvl; u8 nick[POKEMON_NAME_LENGTH]; }; @@ -64,7 +64,7 @@ static EWRAM_DATA struct HofGfx *sHofGfxPtr = NULL; extern struct MusicPlayerInfo gMPlayInfo_BGM; -#define HALL_OF_FAME_MAX_TEAMS 50 +#define HALL_OF_FAME_MAX_TEAMS 30 // this file's functions static void ClearVramOamPltt_LoadHofPal(void);