-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more #112
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6684276
Sporadic constantifying and function naming
DrippingYellow fbb1ad2
Merge pull request #1 from DrippingYellow/main
DrippingYellow 38545c0
Added bank 14
DrippingYellow 15d2c3d
Merge branch 'pret:master' into master
DrippingYellow 3f74de4
Delete .DS_Store files
vulcandth d75c729
Delete EOL whitespace
vulcandth eaf9c94
Use Tab indents instead of four spaces
vulcandth 5bd2610
Identify some routines
vulcandth db4086f
Merge branch 'master' into pr/112
vulcandth 939affd
Identify more stuff
vulcandth 630163f
Identified party and box structs
DrippingYellow a2ce32b
Identified wBattleMon and wEnemyMon structs
DrippingYellow ba9d382
Macro'd landmarks, cleaned up comments
DrippingYellow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ __pycache__ | |
|
||
# utility output | ||
/coverage.png | ||
|
||
# macos files | ||
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
; Fly point indexes (see data/flypoint) | ||
const_def | ||
|
||
const FLY_POINT_SILENT_HILL ; 0 | ||
const FLY_POINT_OLD ; 1 | ||
const FLY_POINT_WEST ; 2 | ||
const FLY_POINT_HAITEKU ; 3 | ||
const FLY_POINT_FONTO ; 4 | ||
const FLY_POINT_BAADON ; 5 | ||
const FLY_POINT_NEWTYPE ; 6 | ||
const FLY_POINT_SUGAR ; 7 | ||
const FLY_POINT_BULL_FOREST ; 8 | ||
const FLY_POINT_STAND ; 9 | ||
const FLY_POINT_KANTO ; 10 | ||
const FLY_POINT_PRINCE ; 11 | ||
const FLY_POINT_MT_FUJI ; 12 | ||
const FLY_POINT_SOUTH ; 13 | ||
const FLY_POINT_NORTH ; 14 | ||
|
||
; Unused? | ||
|
||
const FLY_POINT_ROUTE_15 ; 15 | ||
const FLY_POINT_ROUTE_18 ; 16 | ||
|
||
DEF FLY_POINT_N_A EQU $FF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
; MenuHeader flags | ||
const_def | ||
shift_const MENU_RESTORE_TILES ; Will be set if MENU_BACKUP_TILES(_2) is set. | ||
shift_const MENU_UNUSED_1 | ||
shift_const MENU_UNUSED_2 | ||
const_skip 2 | ||
shift_const MENU_NO_CLICK_SFX | ||
shift_const MENU_SPRITE_ANIMS | ||
shift_const MENU_UNUSED_3 | ||
shift_const MENU_UNUSED | ||
shift_const MENU_BACKUP_TILES | ||
shift_const MENU_BACKUP_TILES_2 | ||
|
||
|
@@ -32,6 +31,22 @@ | |
shift_const SCROLLINGMENU_ENABLE_START | ||
shift_const SCROLLINGMENU_ENABLE_SELECT | ||
|
||
; _2DMenu more flags | ||
const_def | ||
shift_const _2DMENU_EXIT_RIGHT ; 0 | ||
shift_const _2DMENU_EXIT_LEFT ; 1 | ||
shift_const _2DMENU_EXIT_UP ; 2 | ||
shift_const _2DMENU_EXIT_DOWN ; 3 | ||
shift_const _2DMENU_WRAP_LEFT_RIGHT ; 4 | ||
shift_const _2DMENU_WRAP_UP_DOWN ; 5 | ||
shift_const _2DMENU_ENABLE_SPRITE_ANIMS ; 6 | ||
shift_const _2DMENU_DISABLE_JOYPAD_FILTER ; 7 | ||
|
||
; _2DMenu more flags 2 | ||
const_def | ||
const_skip 7 | ||
shift_const _2DMENU_EXITING ; 7 | ||
|
||
|
||
; MonMenuOptions indexes (see data/mon_menu.asm) | ||
; used by PokemonActionSubmenu (see engine/menus/start_menu.asm) | ||
|
@@ -41,28 +56,24 @@ | |
const MONMENUITEM_FLY ; 2 | ||
const MONMENUITEM_SURF ; 3 | ||
const MONMENUITEM_STRENGTH ; 4 | ||
const MONMENUITEM_WATERFALL ; 5 | ||
const MONMENUITEM_FLASH ; 6 | ||
const MONMENUITEM_WHIRLPOOL ; 7 | ||
const MONMENUITEM_FLASH ; 5 | ||
const MONMENUITEM_WHIRLPOOL ; 6 | ||
const MONMENUITEM_BOUNCE ; 7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double check that the comments line up. |
||
const MONMENUITEM_DIG ; 8 | ||
const MONMENUITEM_TELEPORT ; 9 | ||
const MONMENUITEM_SOFTBOILED ; 10 | ||
const MONMENUITEM_HEADBUTT ; 11 | ||
const MONMENUITEM_ROCKSMASH ; 12 | ||
const MONMENUITEM_MILKDRINK ; 13 | ||
const MONMENUITEM_SWEETSCENT ; 14 | ||
; options | ||
const MONMENUITEM_STATS ; 15 | ||
const MONMENUITEM_SWITCH ; 16 | ||
const MONMENUITEM_ITEM ; 17 | ||
const MONMENUITEM_CANCEL ; 18 | ||
const MONMENUITEM_MOVE ; 19 | ||
const MONMENUITEM_MAIL ; 20 | ||
const MONMENUITEM_ERROR ; 21 | ||
const MONMENUITEM_STATS ; 11 | ||
const MONMENUITEM_SWITCH ; 12 | ||
const MONMENUITEM_ITEM ; 13 | ||
const MONMENUITEM_CANCEL ; 14 | ||
const MONMENUITEM_MOVE ; 15 | ||
const MONMENUITEM_MAIL ; 16 | ||
const MONMENUITEM_ERROR ; 17 | ||
|
||
; MonMenuOptions categories | ||
DEF MONMENU_FIELD_MOVE EQU 0 | ||
DEF MONMENU_MENUOPTION EQU 1 | ||
DEF MONMENU_MENUOPTION EQU 0 | ||
DEF MONMENU_FIELD_MOVE EQU 1 | ||
|
||
DEF NUM_MONMENU_ITEMS EQU 8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,8 +100,12 @@ DEF CAUGHT_EGG_LEVEL EQU 1 | |
DEF PARTY_LENGTH EQU 6 | ||
|
||
; boxes | ||
DEF MONS_PER_BOX EQU 20 | ||
DEF NUM_BOXES EQU 14 | ||
; The Japanese version fits more Pokémon into the boxes, but has less boxes total | ||
DEF MONS_PER_BOX EQU 30 | ||
DEF NUM_BOXES EQU 10 | ||
; English version: | ||
;DEF MONS_PER_BOX EQU 20 | ||
;DEF NUM_BOXES EQU 14 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can probably just get rid of these lines. |
||
|
||
; hall of fame | ||
DEF HOF_MON_LENGTH EQUS "(wHallOfFamePokemonListMon1End - wHallOfFamePokemonListMon1)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
; Spawn point indexes (see data/maps/landmarks.asm) | ||
const_def | ||
|
||
const SPAWN_POINT_NONE | ||
const SPAWN_POINT_SILENT | ||
const SPAWN_POINT_OLD | ||
const SPAWN_POINT_WEST | ||
const SPAWN_POINT_HIGH_TECH | ||
const SPAWN_POINT_FOUNT | ||
const SPAWN_POINT_BIRDON | ||
const SPAWN_POINT_NEW_TYPE | ||
const SPAWN_POINT_SUGAR | ||
const SPAWN_POINT_BLUE_FOREST | ||
const SPAWN_POINT_STAND | ||
const SPAWN_POINT_KANTO | ||
const SPAWN_POINT_PRINCE | ||
const SPAWN_POINT_MT_FUJI | ||
const SPAWN_POINT_SOUTH | ||
const SPAWN_POINT_NORTH | ||
const SPAWN_POINT_ROUTE_15 | ||
const SPAWN_POINT_ROUTE_18 | ||
const SPAWN_POINT_POWER_PLANT_1 | ||
const SPAWN_POINT_POWER_PLANT_2 | ||
const SPAWN_POINT_POWER_PLANT_3 | ||
const SPAWN_POINT_POWER_PLANT_4 | ||
const SPAWN_POINT_RUINS_1 | ||
const SPAWN_POINT_RUINS_2 | ||
const SPAWN_POINT_MINES_1 | ||
const SPAWN_POINT_MINES_2 | ||
const SPAWN_POINT_MINES_3 | ||
const SPAWN_POINT_MINES_4 | ||
const SPAWN_POINT_MINES_5 | ||
const SPAWN_POINT_MINES_6 | ||
const SPAWN_POINT_MINES_7 | ||
const SPAWN_POINT_HIDEOUT_1 | ||
const SPAWN_POINT_HIDEOUT_2 | ||
const SPAWN_POINT_HIDEOUT_3 | ||
const SPAWN_POINT_SLOWPOKE_WELL_1 | ||
const SPAWN_POINT_SLOWPOKE_WELL_2 | ||
const SPAWN_POINT_POKEMON_LEAGUE_1 | ||
const SPAWN_POINT_POKEMON_LEAGUE_1_2 | ||
const SPAWN_POINT_POKEMON_LEAGUE_2 | ||
const SPAWN_POINT_POKEMON_LEAGUE_3 | ||
const SPAWN_POINT_POKEMON_LEAGUE_4 | ||
const SPAWN_POINT_POKEMON_LEAGUE_5 | ||
const SPAWN_POINT_POKEMON_LEAGUE_6 | ||
const SPAWN_POINT_POKEMON_LEAGUE_7 | ||
const SPAWN_POINT_POKEMON_LEAGUE_7_2 | ||
const SPAWN_POINT_SILENT_HILL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
INCLUDE "constants.asm" | ||
|
||
SECTION "data/maps/flypoints.asm", ROMX | ||
|
||
; | ||
; Table that the game reads for determining which Fly point to move to depending on D-Pad input. | ||
; Each row corresponds to the index of a Fly point. | ||
; | ||
; db UP, DOWN, LEFT, RIGHT | ||
; | ||
FlyPointPaths: | ||
|
||
db FLY_POINT_PRINCE, FLY_POINT_N_A, FLY_POINT_OLD, FLY_POINT_KANTO ; FLY_POINT_SILENT_HILL | ||
db FLY_POINT_HAITEKU, FLY_POINT_SILENT_HILL, FLY_POINT_WEST, FLY_POINT_SILENT_HILL ; FLY_POINT_OLD | ||
db FLY_POINT_BAADON, FLY_POINT_OLD, FLY_POINT_HAITEKU, FLY_POINT_OLD ; FLY_POINT_WEST | ||
db FLY_POINT_FONTO, FLY_POINT_WEST, FLY_POINT_SOUTH, FLY_POINT_WEST ; FLY_POINT_HAITEKU | ||
db FLY_POINT_SOUTH, FLY_POINT_HAITEKU, FLY_POINT_SOUTH, FLY_POINT_BAADON ; FLY_POINT_FONTO | ||
db FLY_POINT_FONTO, FLY_POINT_WEST, FLY_POINT_FONTO, FLY_POINT_NEWTYPE ; FLY_POINT_BAADON | ||
db FLY_POINT_SUGAR, FLY_POINT_N_A, FLY_POINT_BAADON, FLY_POINT_BULL_FOREST ; FLY_POINT_NEWTYPE | ||
db FLY_POINT_N_A, FLY_POINT_NEWTYPE, FLY_POINT_N_A, FLY_POINT_N_A ; FLY_POINT_SUGAR | ||
db FLY_POINT_NORTH, FLY_POINT_STAND, FLY_POINT_NEWTYPE, FLY_POINT_NORTH ; FLY_POINT_BULL_FOREST | ||
db FLY_POINT_BULL_FOREST, FLY_POINT_KANTO, FLY_POINT_KANTO, FLY_POINT_BULL_FOREST ; FLY_POINT_STAND | ||
db FLY_POINT_STAND, FLY_POINT_SILENT_HILL, FLY_POINT_SILENT_HILL, FLY_POINT_STAND ; FLY_POINT_KANTO | ||
db FLY_POINT_MT_FUJI, FLY_POINT_SILENT_HILL, FLY_POINT_N_A, FLY_POINT_N_A ; FLY_POINT_PRINCE | ||
db FLY_POINT_N_A, FLY_POINT_PRINCE, FLY_POINT_N_A, FLY_POINT_N_A ; FLY_POINT_MT_FUJI | ||
db FLY_POINT_FONTO, FLY_POINT_HAITEKU, FLY_POINT_N_A, FLY_POINT_FONTO ; FLY_POINT_SOUTH | ||
db FLY_POINT_N_A, FLY_POINT_BULL_FOREST, FLY_POINT_BULL_FOREST, FLY_POINT_N_A ; FLY_POINT_NORTH |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index comments should be aligned one space after the longest const name.