Skip to content

Commit 82d2283

Browse files
Merge branch 'master' of https://github.com/pret/pokefirered into porymap-6
2 parents 7722e7a + d61f959 commit 82d2283

File tree

15 files changed

+37
-37
lines changed

15 files changed

+37
-37
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ ifneq ($(KEEP_TEMPS),1)
302302
@echo "$(CC1) <flags> -o $@ $<"
303303
@$(CPP) $(CPPFLAGS) $< | $(PREPROC) -i $< charmap.txt | $(CC1) $(CFLAGS) -o - - | cat - <(echo -e ".text\n\t.align\t2, 0") | $(AS) $(ASFLAGS) -o $@ -
304304
else
305-
@$(CPP) $(CPPFLAGS) $< -o $*.i
306-
@$(PREPROC) $*.i charmap.txt | $(CC1) $(CFLAGS) -o $*.s
307-
@echo -e ".text\n\t.align\t2, 0\n" >> $*.s
308-
$(AS) $(ASFLAGS) -o $@ $*.s
305+
@$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$*.i
306+
@$(PREPROC) $(C_BUILDDIR)/$*.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/$*.s
307+
@echo -e ".text\n\t.align\t2, 0\n" >> $(C_BUILDDIR)/$*.s
308+
$(AS) $(ASFLAGS) -o $@ $(C_BUILDDIR)/$*.s
309309
endif
310310

311311
$(C_BUILDDIR)/%.d: $(C_SUBDIR)/%.c

data/maps/TwoIsland_House/scripts.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ TwoIsland_House_EventScript_AskTutorMon::
4848

4949
TwoIsland_House_EventScript_ChooseMonToTutor::
5050
msgbox TwoIsland_House_Text_TutorWhichMon
51-
special SelectMoveTutorMon
51+
special ChooseMonForMoveRelearner
5252
waitstate
5353
goto_if_ge VAR_0x8004, PARTY_SIZE, TwoIsland_House_EventScript_EndTutorMove
5454
special IsSelectedMonEgg
@@ -59,7 +59,7 @@ TwoIsland_House_EventScript_ChooseMonToTutor::
5959

6060
TwoIsland_House_EventScript_ChooseMoveToTeach::
6161
msgbox TwoIsland_House_Text_TeachWhichMove
62-
special DisplayMoveTutorMenu
62+
special TeachMoveRelearnerMove
6363
waitstate
6464
goto_if_eq VAR_0x8004, 0, TwoIsland_House_EventScript_ChooseMonToTutor
6565
goto_if_set HAS_BOTH_MUSHROOMS, TwoIsland_House_EventScript_ChooseMushroom

data/specials.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ gSpecials::
227227
def_special GetElevatorFloor
228228
def_special NullFieldSpecial @ Lottery Corner specials
229229
def_special NullFieldSpecial
230-
def_special SelectMoveTutorMon
230+
def_special ChooseMonForMoveRelearner
231231
def_special SelectMoveDeleterMove
232232
def_special MoveDeleterForgetMove
233233
def_special BufferMoveDeleterNicknameAndMove
234234
def_special GetNumMovesSelectedMonHas
235-
def_special DisplayMoveTutorMenu
235+
def_special TeachMoveRelearnerMove
236236
def_special NullFieldSpecial @ Hoenn Cycling Road specials
237237
def_special NullFieldSpecial
238238
def_special GetPlayerAvatarBike

graphics/fonts/down_arrow.png

-162 Bytes
Binary file not shown.

graphics/fonts/down_arrow_2.png

-150 Bytes
Binary file not shown.

graphics/fonts/down_arrow_RS.png

-163 Bytes
Binary file not shown.

graphics/fonts/down_arrow_RS_2.png

-150 Bytes
Binary file not shown.

graphics/fonts/down_arrows.png

237 Bytes
Loading

include/constants/global.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
#define UNION_ROOM_KB_ROW_COUNT 10
4848
#define GIFT_RIBBONS_COUNT 11
4949

50-
#define POCKET_ITEMS 1
51-
#define POCKET_KEY_ITEMS 2
52-
#define POCKET_POKE_BALLS 3
53-
#define POCKET_TM_CASE 4
54-
#define POCKET_BERRY_POUCH 5
55-
#define NUM_BAG_POCKETS 5
50+
#define POCKET_ITEMS 1
51+
#define POCKET_KEY_ITEMS 2
52+
#define POCKET_POKE_BALLS 3
53+
#define POCKET_TM_CASE 4
54+
#define POCKET_BERRY_POUCH 5
55+
#define NUM_BAG_POCKETS 5
56+
#define NUM_BAG_POCKETS_NO_CASES 3 // number of pockets without considering TM case or berry pouch
5657

5758
// Contests
5859
#define CONTEST_CATEGORIES_COUNT 5

include/item_menu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ struct BagStruct
1515
u8 location;
1616
bool8 bagOpen;
1717
u16 pocket;
18-
u16 itemsAbove[3];
19-
u16 cursorPos[3];
18+
u16 itemsAbove[NUM_BAG_POCKETS_NO_CASES];
19+
u16 cursorPos[NUM_BAG_POCKETS_NO_CASES];
2020
};
2121

2222
extern struct BagStruct gBagMenuState;

0 commit comments

Comments
 (0)