Constants for PC menu indexes

'db  ' -> 'db '
This commit is contained in:
Rangi
2018-05-18 22:18:00 -04:00
parent e1fabcfbff
commit d5fff8aa96
6 changed files with 68 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
anim_obj_gfx: MACRO anim_obj_gfx: MACRO
; # tiles, label ; # tiles, label
db \1 db \1
dba \2 dba \2
ENDM ENDM

View File

@@ -10,4 +10,4 @@ TileCollisionStdScripts:
dbw COLL_TV, tv dbw COLL_TV, tv
dbw COLL_WINDOW, window dbw COLL_WINDOW, window
dbw COLL_INCENSE_BURNER, incenseburner dbw COLL_INCENSE_BURNER, incenseburner
db -1 ; end db -1 ; end

View File

@@ -15,5 +15,5 @@ TimeCapsule_CatchRateItems: ; 28785
db ITEM_DC, BERRY db ITEM_DC, BERRY
db ITEM_FA, BERRY db ITEM_FA, BERRY
db -1, BERRY db -1, BERRY
db 0 ; end db 0 ; end
; 2879e ; 2879e

View File

@@ -1,6 +1,6 @@
treemon_map: MACRO treemon_map: MACRO
map_id \1 map_id \1
db \2 ; treemon set db \2 ; treemon set
ENDM ENDM
TreeMonMaps: ; b825e TreeMonMaps: ; b825e

View File

@@ -39,12 +39,19 @@ PokemonCenterPC: ; 1559a
dw PlaceNthMenuStrings dw PlaceNthMenuStrings
dw .JumpTable dw .JumpTable
PCPC_PLAYERS_PC EQU 0
PCPC_BILLS_PC EQU 1
PCPC_OAKS_PC EQU 2
PCPC_HALL_OF_FAME EQU 3
PCPC_TURN_OFF EQU 4
.JumpTable: .JumpTable:
dw PlayersPC, .String_PlayersPC ; entries correspond to PCPC_* constants
dw BillsPC, .String_BillsPC dw PlayersPC, .String_PlayersPC
dw OaksPC, .String_OaksPC dw BillsPC, .String_BillsPC
dw OaksPC, .String_OaksPC
dw HallOfFamePC, .String_HallOfFame dw HallOfFamePC, .String_HallOfFame
dw TurnOffPC, .String_TurnOff dw TurnOffPC, .String_TurnOff
.String_PlayersPC: db "<PLAYER>'s PC@" .String_PlayersPC: db "<PLAYER>'s PC@"
.String_BillsPC: db "BILL's PC@" .String_BillsPC: db "BILL's PC@"
@@ -53,33 +60,42 @@ PokemonCenterPC: ; 1559a
.String_TurnOff: db "TURN OFF@" .String_TurnOff: db "TURN OFF@"
.WhichPC: .WhichPC:
; before pokedex ; before Pokédex
db 3 ; items db 3
db 1, 0, 4 ; bill's, player's, turn off db PCPC_BILLS_PC
db -1 db PCPC_PLAYERS_PC
db PCPC_TURN_OFF
db -1 ; end
; before Hall Of Fame ; before Hall Of Fame
db 4 ; items db 4
db 1, 0, 2, 4 ; bill's, player's, oak's, turn off db PCPC_BILLS_PC
db -1 db PCPC_PLAYERS_PC
db PCPC_OAKS_PC
db PCPC_TURN_OFF
db -1 ; end
; postgame ; postgame
db 5 ; items db 5
db 1, 0, 2, 3, 4 ; bill's, player's, oak's, hall of fame, turn off db PCPC_BILLS_PC
db -1 db PCPC_PLAYERS_PC
db PCPC_OAKS_PC
db PCPC_HALL_OF_FAME
db PCPC_TURN_OFF
db -1 ; end
.ChooseWhichPCListToUse: .ChooseWhichPCListToUse:
call CheckReceivedDex call CheckReceivedDex
jr nz, .got_dex jr nz, .got_dex
ld a, $0 ld a, 0 ; before Pokédex
ret ret
.got_dex .got_dex
ld a, [wHallOfFameCount] ld a, [wHallOfFameCount]
and a and a
ld a, $1 ld a, 1 ; before Hall Of Fame
ret z ret z
ld a, $2 ld a, 2 ; postgame
ret ret
; 15650 ; 15650
@@ -244,7 +260,16 @@ PlayersPCMenuData: ; 0x15736
dw PlaceNthMenuStrings dw PlaceNthMenuStrings
dw .PlayersPCMenuPointers dw .PlayersPCMenuPointers
PLAYERSPC_WITHDRAW_ITEM EQU 0
PLAYERSPC_DEPOSIT_ITEM EQU 1
PLAYERSPC_TOSS_ITEM EQU 2
PLAYERSPC_MAIL_BOX EQU 3
PLAYERSPC_DECORATION EQU 4
PLAYERSPC_TURN_OFF EQU 5
PLAYERSPC_LOG_OFF EQU 6
.PlayersPCMenuPointers: ; 0x15746 .PlayersPCMenuPointers: ; 0x15746
; entries correspond to PLAYERSPC_* constants
dw PlayerWithdrawItemMenu, .WithdrawItem dw PlayerWithdrawItemMenu, .WithdrawItem
dw PlayerDepositItemMenu, .DepositItem dw PlayerDepositItemMenu, .DepositItem
dw PlayerTossItemMenu, .TossItem dw PlayerTossItemMenu, .TossItem
@@ -261,32 +286,24 @@ PlayersPCMenuData: ; 0x15736
.TurnOff: db "TURN OFF@" .TurnOff: db "TURN OFF@"
.LogOff: db "LOG OFF@" .LogOff: db "LOG OFF@"
WITHDRAW_ITEM EQU 0
DEPOSIT_ITEM EQU 1
TOSS_ITEM EQU 2
MAIL_BOX EQU 3
DECORATION EQU 4
TURN_OFF EQU 5
LOG_OFF EQU 6
.PlayersPCMenuList1: .PlayersPCMenuList1:
db 5 db 5
db WITHDRAW_ITEM db PLAYERSPC_WITHDRAW_ITEM
db DEPOSIT_ITEM db PLAYERSPC_DEPOSIT_ITEM
db TOSS_ITEM db PLAYERSPC_TOSS_ITEM
db MAIL_BOX db PLAYERSPC_MAIL_BOX
db TURN_OFF db PLAYERSPC_TURN_OFF
db -1 db -1 ; end
.PlayersPCMenuList2: .PlayersPCMenuList2:
db 6 db 6
db WITHDRAW_ITEM db PLAYERSPC_WITHDRAW_ITEM
db DEPOSIT_ITEM db PLAYERSPC_DEPOSIT_ITEM
db TOSS_ITEM db PLAYERSPC_TOSS_ITEM
db MAIL_BOX db PLAYERSPC_MAIL_BOX
db DECORATION db PLAYERSPC_DECORATION
db LOG_OFF db PLAYERSPC_LOG_OFF
db -1 db -1 ; end
PC_DisplayTextWaitMenu: ; 157bb PC_DisplayTextWaitMenu: ; 157bb
ld a, [wOptions] ld a, [wOptions]
@@ -461,13 +478,14 @@ PlayerDepositItemMenu: ; 0x1588b
ret ret
.dw .dw
dw .tossable ; entries correspond to ITEMMENU_* constants
dw .tossable ; ITEMMENU_NOUSE
dw .no_toss dw .no_toss
dw .no_toss dw .no_toss
dw .no_toss dw .no_toss
dw .tossable dw .tossable ; ITEMMENU_CURRENT
dw .tossable dw .tossable ; ITEMMENU_PARTY
dw .tossable dw .tossable ; ITEMMENU_CLOSE
.no_toss .no_toss
ret ret

View File

@@ -63,15 +63,17 @@ RandyScript:
end end
GiftSpearowMail: GiftSpearowMail:
db FLOWER_MAIL db FLOWER_MAIL
db "DARK CAVE leads" db "DARK CAVE leads"
next "to another road@" next "to another road@"
GiftSpearowName: GiftSpearowName:
db "KENYA@" db "KENYA@"
GiftSpearowOTName: GiftSpearowOTName:
db "RANDY@" db "RANDY@"
db 0 db 0 ; filler
Route35GoldenrodGatePokefanFScript: Route35GoldenrodGatePokefanFScript:
faceplayer faceplayer