Merge branch 'master' of https://github.com/pret/pokefirered into porymap-6
This commit is contained in:
@@ -302,10 +302,10 @@ ifneq ($(KEEP_TEMPS),1)
|
||||
@echo "$(CC1) <flags> -o $@ $<"
|
||||
@$(CPP) $(CPPFLAGS) $< | $(PREPROC) -i $< charmap.txt | $(CC1) $(CFLAGS) -o - - | cat - <(echo -e ".text\n\t.align\t2, 0") | $(AS) $(ASFLAGS) -o $@ -
|
||||
else
|
||||
@$(CPP) $(CPPFLAGS) $< -o $*.i
|
||||
@$(PREPROC) $*.i charmap.txt | $(CC1) $(CFLAGS) -o $*.s
|
||||
@echo -e ".text\n\t.align\t2, 0\n" >> $*.s
|
||||
$(AS) $(ASFLAGS) -o $@ $*.s
|
||||
@$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$*.i
|
||||
@$(PREPROC) $(C_BUILDDIR)/$*.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/$*.s
|
||||
@echo -e ".text\n\t.align\t2, 0\n" >> $(C_BUILDDIR)/$*.s
|
||||
$(AS) $(ASFLAGS) -o $@ $(C_BUILDDIR)/$*.s
|
||||
endif
|
||||
|
||||
$(C_BUILDDIR)/%.d: $(C_SUBDIR)/%.c
|
||||
|
||||
@@ -48,7 +48,7 @@ TwoIsland_House_EventScript_AskTutorMon::
|
||||
|
||||
TwoIsland_House_EventScript_ChooseMonToTutor::
|
||||
msgbox TwoIsland_House_Text_TutorWhichMon
|
||||
special SelectMoveTutorMon
|
||||
special ChooseMonForMoveRelearner
|
||||
waitstate
|
||||
goto_if_ge VAR_0x8004, PARTY_SIZE, TwoIsland_House_EventScript_EndTutorMove
|
||||
special IsSelectedMonEgg
|
||||
@@ -59,7 +59,7 @@ TwoIsland_House_EventScript_ChooseMonToTutor::
|
||||
|
||||
TwoIsland_House_EventScript_ChooseMoveToTeach::
|
||||
msgbox TwoIsland_House_Text_TeachWhichMove
|
||||
special DisplayMoveTutorMenu
|
||||
special TeachMoveRelearnerMove
|
||||
waitstate
|
||||
goto_if_eq VAR_0x8004, 0, TwoIsland_House_EventScript_ChooseMonToTutor
|
||||
goto_if_set HAS_BOTH_MUSHROOMS, TwoIsland_House_EventScript_ChooseMushroom
|
||||
|
||||
+2
-2
@@ -227,12 +227,12 @@ gSpecials::
|
||||
def_special GetElevatorFloor
|
||||
def_special NullFieldSpecial @ Lottery Corner specials
|
||||
def_special NullFieldSpecial
|
||||
def_special SelectMoveTutorMon
|
||||
def_special ChooseMonForMoveRelearner
|
||||
def_special SelectMoveDeleterMove
|
||||
def_special MoveDeleterForgetMove
|
||||
def_special BufferMoveDeleterNicknameAndMove
|
||||
def_special GetNumMovesSelectedMonHas
|
||||
def_special DisplayMoveTutorMenu
|
||||
def_special TeachMoveRelearnerMove
|
||||
def_special NullFieldSpecial @ Hoenn Cycling Road specials
|
||||
def_special NullFieldSpecial
|
||||
def_special GetPlayerAvatarBike
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 162 B |
Binary file not shown.
|
Before Width: | Height: | Size: 150 B |
Binary file not shown.
|
Before Width: | Height: | Size: 163 B |
Binary file not shown.
|
Before Width: | Height: | Size: 150 B |
Binary file not shown.
|
After Width: | Height: | Size: 237 B |
@@ -47,12 +47,13 @@
|
||||
#define UNION_ROOM_KB_ROW_COUNT 10
|
||||
#define GIFT_RIBBONS_COUNT 11
|
||||
|
||||
#define POCKET_ITEMS 1
|
||||
#define POCKET_KEY_ITEMS 2
|
||||
#define POCKET_POKE_BALLS 3
|
||||
#define POCKET_TM_CASE 4
|
||||
#define POCKET_BERRY_POUCH 5
|
||||
#define NUM_BAG_POCKETS 5
|
||||
#define POCKET_ITEMS 1
|
||||
#define POCKET_KEY_ITEMS 2
|
||||
#define POCKET_POKE_BALLS 3
|
||||
#define POCKET_TM_CASE 4
|
||||
#define POCKET_BERRY_POUCH 5
|
||||
#define NUM_BAG_POCKETS 5
|
||||
#define NUM_BAG_POCKETS_NO_CASES 3 // number of pockets without considering TM case or berry pouch
|
||||
|
||||
// Contests
|
||||
#define CONTEST_CATEGORIES_COUNT 5
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ struct BagStruct
|
||||
u8 location;
|
||||
bool8 bagOpen;
|
||||
u16 pocket;
|
||||
u16 itemsAbove[3];
|
||||
u16 cursorPos[3];
|
||||
u16 itemsAbove[NUM_BAG_POCKETS_NO_CASES];
|
||||
u16 cursorPos[NUM_BAG_POCKETS_NO_CASES];
|
||||
};
|
||||
|
||||
extern struct BagStruct gBagMenuState;
|
||||
|
||||
+1
-1
@@ -331,7 +331,7 @@ void ClearBag(void)
|
||||
{
|
||||
u16 i;
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS; i++)
|
||||
{
|
||||
ClearItemSlots(gBagPockets[i].itemSlots, gBagPockets[i].capacity);
|
||||
}
|
||||
|
||||
+10
-10
@@ -47,8 +47,8 @@ struct BagMenuAlloc
|
||||
u16 contextMenuSelectedItem;
|
||||
u8 pocketScrollArrowsTask;
|
||||
u8 pocketSwitchArrowsTask;
|
||||
u8 nItems[3];
|
||||
u8 maxShowed[3];
|
||||
u8 nItems[NUM_BAG_POCKETS_NO_CASES];
|
||||
u8 maxShowed[NUM_BAG_POCKETS_NO_CASES];
|
||||
u8 data[4];
|
||||
};
|
||||
|
||||
@@ -57,8 +57,8 @@ struct BagSlots
|
||||
struct ItemSlot bagPocket_Items[BAG_ITEMS_COUNT];
|
||||
struct ItemSlot bagPocket_KeyItems[BAG_KEYITEMS_COUNT];
|
||||
struct ItemSlot bagPocket_PokeBalls[BAG_POKEBALLS_COUNT];
|
||||
u16 itemsAbove[3];
|
||||
u16 cursorPos[3];
|
||||
u16 itemsAbove[NUM_BAG_POCKETS_NO_CASES];
|
||||
u16 cursorPos[NUM_BAG_POCKETS_NO_CASES];
|
||||
u16 registeredItem;
|
||||
u16 pocket;
|
||||
};
|
||||
@@ -832,7 +832,7 @@ void ResetBagCursorPositions(void)
|
||||
u8 i;
|
||||
gBagMenuState.pocket = POCKET_ITEMS - 1;
|
||||
gBagMenuState.bagOpen = FALSE;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
{
|
||||
gBagMenuState.itemsAbove[i] = 0;
|
||||
gBagMenuState.cursorPos[i] = 0;
|
||||
@@ -857,7 +857,7 @@ void PocketCalculateInitialCursorPosAndItemsAbove(u8 pocketId)
|
||||
static void CalculateInitialCursorPosAndItemsAbove(void)
|
||||
{
|
||||
u8 i;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
{
|
||||
PocketCalculateInitialCursorPosAndItemsAbove(i);
|
||||
}
|
||||
@@ -868,7 +868,7 @@ static void UpdatePocketScrollPositions(void)
|
||||
u8 i;
|
||||
u8 j;
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
{
|
||||
if (gBagMenuState.itemsAbove[i] > 3)
|
||||
{
|
||||
@@ -1011,7 +1011,7 @@ void Pocket_CalculateNItemsAndMaxShowed(u8 pocketId)
|
||||
static void All_CalculateNItemsAndMaxShowed(void)
|
||||
{
|
||||
u8 i;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
Pocket_CalculateNItemsAndMaxShowed(i);
|
||||
}
|
||||
|
||||
@@ -2067,7 +2067,7 @@ static void BackUpPlayerBag(void)
|
||||
memcpy(sBackupPlayerBag->bagPocket_PokeBalls, gSaveBlock1Ptr->bagPocket_PokeBalls, BAG_POKEBALLS_COUNT * sizeof(struct ItemSlot));
|
||||
sBackupPlayerBag->registeredItem = gSaveBlock1Ptr->registeredItem;
|
||||
sBackupPlayerBag->pocket = gBagMenuState.pocket;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
{
|
||||
sBackupPlayerBag->itemsAbove[i] = gBagMenuState.itemsAbove[i];
|
||||
sBackupPlayerBag->cursorPos[i] = gBagMenuState.cursorPos[i];
|
||||
@@ -2087,7 +2087,7 @@ static void RestorePlayerBag(void)
|
||||
memcpy(gSaveBlock1Ptr->bagPocket_PokeBalls, sBackupPlayerBag->bagPocket_PokeBalls, BAG_POKEBALLS_COUNT * sizeof(struct ItemSlot));
|
||||
gSaveBlock1Ptr->registeredItem = sBackupPlayerBag->registeredItem;
|
||||
gBagMenuState.pocket = sBackupPlayerBag->pocket;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < NUM_BAG_POCKETS_NO_CASES; i++)
|
||||
{
|
||||
gBagMenuState.itemsAbove[i] = sBackupPlayerBag->itemsAbove[i];
|
||||
gBagMenuState.cursorPos[i] = sBackupPlayerBag->cursorPos[i];
|
||||
|
||||
+1
-1
@@ -364,7 +364,7 @@ static void VBlankCB_MoveRelearner(void)
|
||||
TransferPlttBuffer();
|
||||
}
|
||||
|
||||
void DisplayMoveTutorMenu(void)
|
||||
void TeachMoveRelearnerMove(void)
|
||||
{
|
||||
LockPlayerFieldControls();
|
||||
CreateTask(Task_InitMoveRelearnerMenu, 10);
|
||||
|
||||
@@ -21,7 +21,7 @@ void ChoosePartyMon(void)
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
|
||||
void SelectMoveTutorMon(void)
|
||||
void ChooseMonForMoveRelearner(void)
|
||||
{
|
||||
u8 taskId;
|
||||
|
||||
|
||||
+7
-8
@@ -10,6 +10,8 @@
|
||||
|
||||
#define CURSOR_DELAY 8
|
||||
|
||||
#define DARK_DOWN_ARROW_OFFSET 256
|
||||
|
||||
extern const struct OamData gOamData_AffineOff_ObjNormal_16x16;
|
||||
|
||||
static void DecompressGlyph_NormalCopy1(u16 glyphId, bool32 isJapanese);
|
||||
@@ -26,12 +28,9 @@ static void SpriteCB_TextCursor(struct Sprite *sprite);
|
||||
|
||||
COMMON_DATA TextFlags gTextFlags = {0};
|
||||
|
||||
static const u8 sDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow.4bpp");
|
||||
static const u8 sDarkDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_RS.4bpp");
|
||||
static const u8 sTinyArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_2.4bpp");
|
||||
static const u8 sTinyDarkDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_RS_2.4bpp");
|
||||
static const u8 sDoubleArrowTiles1[] = INCBIN_U8("graphics/fonts/down_arrow_3.4bpp");
|
||||
static const u8 sDoubleArrowTiles2[] = INCBIN_U8("graphics/fonts/down_arrow_4.4bpp");
|
||||
static const u8 sDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrows.4bpp");
|
||||
static const u8 sDoubleArrowTiles1[] = INCBIN_U8("graphics/fonts/down_arrow_3.4bpp");
|
||||
static const u8 sDoubleArrowTiles2[] = INCBIN_U8("graphics/fonts/down_arrow_4.4bpp");
|
||||
|
||||
static const u8 sDownArrowYCoords[] = { 0, 16, 32, 16 };
|
||||
static const u8 sWindowVerticalScrollSpeeds[] = {
|
||||
@@ -497,7 +496,7 @@ void TextPrinterDrawDownArrow(struct TextPrinter *textPrinter)
|
||||
arrowTiles = sDownArrowTiles;
|
||||
break;
|
||||
case 1:
|
||||
arrowTiles = sDarkDownArrowTiles;
|
||||
arrowTiles = &sDownArrowTiles[DARK_DOWN_ARROW_OFFSET];
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -605,7 +604,7 @@ void DrawDownArrow(u8 windowId, u16 x, u16 y, u8 bgColor, bool8 drawArrow, u8 *c
|
||||
arrowTiles = sDownArrowTiles;
|
||||
break;
|
||||
case 1:
|
||||
arrowTiles = sDarkDownArrowTiles;
|
||||
arrowTiles = &sDownArrowTiles[DARK_DOWN_ARROW_OFFSET];
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user