Merge branch 'master' of https://github.com/pret/pokeemerald into porymap-6
This commit is contained in:
+5
-1
@@ -880,8 +880,12 @@ static void CreateCableCarSprites(void)
|
||||
// 1/64 chance for an NPC to appear hiking on the ground below the Cable Car
|
||||
if ((rval % 64) == 0)
|
||||
{
|
||||
// Unclear if this was intentional, but the - 1 in the below ARRAY_COUNT means the Zigzagoon is never used
|
||||
// BUGFIX: The - 1 in the below ARRAY_COUNT means the Zigzagoon is never used
|
||||
#ifdef BUGFIX
|
||||
spriteId = CreateObjectGraphicsSprite(hikerGraphicsIds[rval % ARRAY_COUNT(hikerGraphicsIds)], hikerCallbacks[GOING_DOWN], hikerCoords[GOING_DOWN][0], hikerCoords[GOING_DOWN][1], 106);
|
||||
#else
|
||||
spriteId = CreateObjectGraphicsSprite(hikerGraphicsIds[rval % (ARRAY_COUNT(hikerGraphicsIds) - 1)], hikerCallbacks[GOING_DOWN], hikerCoords[GOING_DOWN][0], hikerCoords[GOING_DOWN][1], 106);
|
||||
#endif
|
||||
if (spriteId != MAX_SPRITES)
|
||||
{
|
||||
gSprites[spriteId].oam.priority = 2;
|
||||
|
||||
@@ -40,6 +40,9 @@ struct EReaderData
|
||||
|
||||
static void Task_EReader(u8);
|
||||
|
||||
// This belongs in COMMON somewhere between party_menu and ereader_screen, but it's unused so it's unclear where.
|
||||
UNUSED u8 gUnknownSpace[64];
|
||||
|
||||
struct EReaderData gEReaderData;
|
||||
|
||||
extern const u8 gMultiBootProgram_EReader_Start[];
|
||||
|
||||
@@ -89,7 +89,11 @@ static void Task_TryFieldPoisonWhiteOut(u8 taskId)
|
||||
if (AllMonsFainted())
|
||||
{
|
||||
// Battle facilities have their own white out script to handle the challenge loss
|
||||
#ifdef BUGFIX
|
||||
if (InBattlePyramid() || InBattlePike() || InTrainerHillChallenge())
|
||||
#else
|
||||
if (InBattlePyramid() | InBattlePike() || InTrainerHillChallenge())
|
||||
#endif
|
||||
gSpecialVar_Result = FLDPSN_FRONTIER_WHITEOUT;
|
||||
else
|
||||
gSpecialVar_Result = FLDPSN_WHITEOUT;
|
||||
|
||||
+9
-3
@@ -112,6 +112,12 @@ extern const struct CompressedSpriteSheet gBattleAnimPicTable[];
|
||||
extern const struct CompressedSpritePalette gBattleAnimPaletteTable[];
|
||||
extern const struct SpriteTemplate gAncientPowerRockSpriteTemplate[];
|
||||
|
||||
enum {
|
||||
COPYRIGHT_INITIALIZE,
|
||||
COPYRIGHT_START_FADE = 140,
|
||||
COPYRIGHT_START_INTRO,
|
||||
};
|
||||
|
||||
#define TAG_VOLBEAT 1500
|
||||
#define TAG_TORCHIC 1501
|
||||
#define TAG_MANECTRIC 1502
|
||||
@@ -1067,7 +1073,7 @@ static u8 SetUpCopyrightScreen(void)
|
||||
{
|
||||
switch (gMain.state)
|
||||
{
|
||||
case 0:
|
||||
case COPYRIGHT_INITIALIZE:
|
||||
SetVBlankCallback(NULL);
|
||||
SetGpuReg(REG_OFFSET_BLDCNT, 0);
|
||||
SetGpuReg(REG_OFFSET_BLDALPHA, 0);
|
||||
@@ -1101,7 +1107,7 @@ static u8 SetUpCopyrightScreen(void)
|
||||
gMain.state++;
|
||||
GameCubeMultiBoot_Main(&gMultibootProgramStruct);
|
||||
break;
|
||||
case 140:
|
||||
case COPYRIGHT_START_FADE:
|
||||
GameCubeMultiBoot_Main(&gMultibootProgramStruct);
|
||||
if (gMultibootProgramStruct.gcmb_field_2 != 1)
|
||||
{
|
||||
@@ -1109,7 +1115,7 @@ static u8 SetUpCopyrightScreen(void)
|
||||
gMain.state++;
|
||||
}
|
||||
break;
|
||||
case 141:
|
||||
case COPYRIGHT_START_INTRO:
|
||||
if (UpdatePaletteFade())
|
||||
break;
|
||||
CreateTask(Task_Scene1_Load, 0);
|
||||
|
||||
Reference in New Issue
Block a user