Merge pull request #1583 from GriffinRichards/renametilemaps
Give less generic names to some tilemaps, some misc fixes
This commit is contained in:
@@ -23,9 +23,7 @@
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "constants/battle_frontier.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/items.h"
|
||||
#include "constants/pokemon.h"
|
||||
#include "constants/songs.h"
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/moves.h"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "bard_music.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "easy_chat.h"
|
||||
|
||||
#include "data/bard_music/bard_sounds.h"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "graphics.h"
|
||||
#include "sprite.h"
|
||||
#include "util.h"
|
||||
#include "constants/pokemon.h"
|
||||
#include "constants/battle_palace.h"
|
||||
|
||||
static void SmokescreenImpact_Callback(struct Sprite *);
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "constants/battle_dome.h"
|
||||
#include "constants/frontier_util.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/pokemon.h"
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/abilities.h"
|
||||
#include "constants/songs.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "constants/battle_frontier.h"
|
||||
#include "constants/frontier_util.h"
|
||||
#include "constants/abilities.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/layouts.h"
|
||||
#include "constants/rgb.h"
|
||||
#include "constants/trainers.h"
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/easy_chat.h"
|
||||
|
||||
extern const u8 MossdeepCity_SpaceCenter_2F_EventScript_MaxieTrainer[];
|
||||
extern const u8 MossdeepCity_SpaceCenter_2F_EventScript_TabithaTrainer[];
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "easy_chat.h"
|
||||
#include "constants/easy_chat.h"
|
||||
|
||||
#define DOUBLE_SPECIES_NAME EC_EMPTY_WORD, 2,
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "constants/items.h"
|
||||
#include "constants/moves.h"
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "text.h"
|
||||
#include "tv.h"
|
||||
#include "string_util.h"
|
||||
#include "constants/easy_chat.h"
|
||||
|
||||
/*
|
||||
## Overview ##
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "task.h"
|
||||
#include "text_window.h"
|
||||
#include "window.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "constants/lilycove_lady.h"
|
||||
#include "constants/mauville_old_man.h"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "task.h"
|
||||
#include "util.h"
|
||||
#include "trainer_hill.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/items.h"
|
||||
|
||||
@@ -173,7 +173,7 @@ static const u32 sHeads_Gfx[] = INCBIN_U32("graphics/frontier
|
||||
static const u32 sMapCursor_Gfx[] = INCBIN_U32("graphics/frontier_pass/map_cursor.4bpp.lz");
|
||||
static const u32 sMapScreen_Tilemap[] = INCBIN_U32("graphics/frontier_pass/map_screen.bin.lz");
|
||||
static const u32 sMapAndCard_ZoomedOut_Tilemap[] = INCBIN_U32("graphics/frontier_pass/small_map_and_card.bin.lz");
|
||||
static const u32 sUnusedData[] = INCBIN_U32("graphics/frontier_pass/unused.bin");
|
||||
static const u32 sCardBall_Filled_Tilemap[] = INCBIN_U32("graphics/frontier_pass/card_ball_filled.bin"); // Unused
|
||||
static const u32 sBattleRecord_Tilemap[] = INCBIN_U32("graphics/frontier_pass/record_frame.bin.lz");
|
||||
static const u32 sMapAndCard_Zooming_Tilemap[] = INCBIN_U32("graphics/frontier_pass/small_map_and_card_affine.bin.lz");
|
||||
|
||||
|
||||
@@ -435,15 +435,15 @@ const u32 gBattleAnimSpriteGfx_BlueFlames2[] = INCBIN_U32("graphics/battle_anims
|
||||
// Contest
|
||||
const u32 gJPContestGfx1[] = INCBIN_U32("graphics/contest/japanese/composite_1.4bpp.lz");
|
||||
const u32 gJPContestPal[] = INCBIN_U32("graphics/contest/japanese/palette.gbapal.lz");
|
||||
const u32 gJPContestTilemap1[] = INCBIN_U32("graphics/contest/japanese/tilemap_1.bin.lz");
|
||||
const u32 gJPContestTilemap2[] = INCBIN_U32("graphics/contest/japanese/tilemap_2.bin.lz");
|
||||
const u32 gJPContestBgTilemap[] = INCBIN_U32("graphics/contest/japanese/bg.bin.lz");
|
||||
const u32 gJPContestWindowsTilemap[] = INCBIN_U32("graphics/contest/japanese/windows.bin.lz");
|
||||
const u32 gJPContestGfx2[] = INCBIN_U32("graphics/contest/japanese/composite_2.4bpp.lz");
|
||||
|
||||
const u32 gContestInterfaceAudiencePalette[] = INCBIN_U32("graphics/contest/interface_audience.gbapal.lz");
|
||||
const u32 gContestAudienceTilemap[] = INCBIN_U32("graphics/contest/audience.bin.lz");
|
||||
const u32 gContestInterfaceTilemap[] = INCBIN_U32("graphics/contest/interface.bin.lz");
|
||||
const u32 gContestUnusedTilemap1[] = INCBIN_U32("graphics/contest/unused_tilemap_1.bin.lz");
|
||||
const u32 gContestUnusedTilemap2[] = INCBIN_U32("graphics/contest/unused_tilemap_2.bin.lz");
|
||||
const u32 gJPContestInterfaceTilemap[] = INCBIN_U32("graphics/contest/japanese/interface.bin.lz");
|
||||
const u32 gJPContestAudienceTilemap[] = INCBIN_U32("graphics/contest/japanese/audience.bin.lz");
|
||||
const u32 gContestCurtainTilemap[] = INCBIN_U32("graphics/contest/curtain.bin.lz");
|
||||
|
||||
const u32 gContestInterfaceGfx[] = INCBIN_U32("graphics/contest/interface.4bpp.lz");
|
||||
@@ -1505,12 +1505,12 @@ const u16 gMonIconPalettes[][16] =
|
||||
const u16 gTitleScreenBgPalettes[] = INCBIN_U16("graphics/title_screen/pokemon_logo.gbapal",
|
||||
"graphics/title_screen/rayquaza_and_clouds.gbapal");
|
||||
const u16 gTitleScreenEmeraldVersionPal[] = INCBIN_U16("graphics/title_screen/emerald_version.gbapal");
|
||||
const u32 gTitleScreenCloudsTilemap[] = INCBIN_U32("graphics/title_screen/title_screen1.bin.lz");
|
||||
const u32 gTitleScreenCloudsTilemap[] = INCBIN_U32("graphics/title_screen/clouds.bin.lz");
|
||||
const u32 gTitleScreenPokemonLogoGfx[] = INCBIN_U32("graphics/title_screen/pokemon_logo.8bpp.lz");
|
||||
const u32 gTitleScreenEmeraldVersionGfx[] = INCBIN_U32("graphics/title_screen/emerald_version.8bpp.lz");
|
||||
const u16 gTitleScreenPressStartPal[] = INCBIN_U16("graphics/title_screen/press_start.gbapal");
|
||||
const u32 gTitleScreenPressStartGfx[] = INCBIN_U32("graphics/title_screen/press_start.4bpp.lz");
|
||||
const u32 gTitleScreenPokemonLogoTilemap[] = INCBIN_U32("graphics/title_screen/title_screen2.bin.lz");
|
||||
const u32 gTitleScreenPokemonLogoTilemap[] = INCBIN_U32("graphics/title_screen/pokemon_logo.bin.lz");
|
||||
|
||||
// size in LoadPalette calls is reported as 0xD0 << 1, which is 0x1A0, but palette is only 0x100 bytes long so it loads garbage as well
|
||||
const u16 gFrontierPassBg_Pal[][16] = INCBIN_U16("graphics/frontier_pass/bg.gbapal");
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "pokemon_icon.h"
|
||||
#include "text.h"
|
||||
#include "international_string_util.h"
|
||||
#include "constants/easy_chat.h"
|
||||
|
||||
#define UNOWN_OFFSET 30000
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "main.h"
|
||||
#include "constants/songs.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "mauville_old_man.h"
|
||||
#include "event_data.h"
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
#include "window.h"
|
||||
#include "constants/battle.h"
|
||||
#include "constants/battle_frontier.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/field_effects.h"
|
||||
#include "constants/item_effects.h"
|
||||
#include "constants/items.h"
|
||||
|
||||
@@ -428,7 +428,7 @@ static u8 CopySectorSecurityByte(u16 sectorId, const struct SaveSectorLocation *
|
||||
}
|
||||
else
|
||||
{
|
||||
// Succeded
|
||||
// Succeeded
|
||||
SetDamagedSectorBits(DISABLE, sector);
|
||||
return SAVE_STATUS_OK;
|
||||
}
|
||||
@@ -734,7 +734,7 @@ u8 HandleSavingData(u8 saveType)
|
||||
WriteSaveSectorOrSlot(FULL_SAVE_SLOT, gRamSaveSectorLocations);
|
||||
break;
|
||||
case SAVE_LINK:
|
||||
case SAVE_LINK2:
|
||||
case SAVE_EREADER: // Dummied, now duplicate of SAVE_LINK
|
||||
// Used by link / Battle Frontier
|
||||
// Write only SaveBlocks 1 and 2 (skips the PC)
|
||||
CopyPartyAndObjectsToSave();
|
||||
|
||||
@@ -7154,18 +7154,18 @@ static const struct SpriteSheet sSlotMachineSpriteSheets[22] =
|
||||
|
||||
static const u8 *const sReelBackground_Tilemap = gSlotMachineReelBackground_Tilemap;
|
||||
|
||||
static const u16 sUnused[] =
|
||||
static const u16 sUnusedColors[] =
|
||||
{
|
||||
0x6F7B,
|
||||
0x6968,
|
||||
0x36AB,
|
||||
0x7FFF,
|
||||
0x5750,
|
||||
0x7EC0,
|
||||
0x02BA,
|
||||
0x02BA,
|
||||
0x01FD,
|
||||
0x01FD,
|
||||
RGB(27, 27, 27),
|
||||
RGB(8, 11, 26),
|
||||
RGB(11, 21, 13),
|
||||
RGB(31, 31, 31),
|
||||
RGB(16, 26, 21),
|
||||
RGB(0, 22, 31),
|
||||
RGB(26, 21, 0),
|
||||
RGB(26, 21, 0),
|
||||
RGB(29, 15, 0),
|
||||
RGB(29, 15, 0),
|
||||
};
|
||||
|
||||
// The Bet 2 and 3 match line palettes are duplicated unnecessarily
|
||||
@@ -7234,7 +7234,10 @@ static const u16 *const sPokeballShiningPalTable[] =
|
||||
};
|
||||
|
||||
static const u16 *const sDigitalDisplay_Pal = gSlotMachineDigitalDisplay_Pal;
|
||||
static const u16 sUnkPalette[] = INCBIN_U16("graphics/slot_machine/85A8524.bin");
|
||||
static const u16 sUnkPalette[16] = {
|
||||
[1] = RGB_WHITEALPHA,
|
||||
[3] = RGB(8, 8, 8),
|
||||
};
|
||||
|
||||
static const struct SpritePalette sSlotMachineSpritePalettes[] =
|
||||
{
|
||||
|
||||
@@ -52,7 +52,7 @@ static void SpriteCB_PressStartCopyrightBanner(struct Sprite *sprite);
|
||||
static void SpriteCB_PokemonLogoShine(struct Sprite *sprite);
|
||||
|
||||
// const rom data
|
||||
static const u16 sUnusedUnknownPal[] = INCBIN_U16("graphics/title_screen/unk_853EF78.gbapal");
|
||||
static const u16 sUnusedUnknownPal[] = INCBIN_U16("graphics/title_screen/unused.gbapal");
|
||||
|
||||
static const u32 sTitleScreenRayquazaGfx[] = INCBIN_U32("graphics/title_screen/rayquaza.4bpp.lz");
|
||||
static const u32 sTitleScreenRayquazaTilemap[] = INCBIN_U32("graphics/title_screen/rayquaza.bin.lz");
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#include "util.h"
|
||||
#include "window.h"
|
||||
#include "constants/contest.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/items.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/region_map_sections.h"
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include "constants/layouts.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/easy_chat.h"
|
||||
#include "constants/trainer_hill.h"
|
||||
#include "constants/trainer_types.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user