More constants and data tables
This commit is contained in:
@@ -200,12 +200,12 @@ Elevator_MenuData2: ; 0x13558
|
||||
db 4, 0 ; rows, columns
|
||||
db 1 ; horizontal spacing
|
||||
dbw 0, CurElevator
|
||||
dba GetElevatorFlorStrings
|
||||
dba GetElevatorFloorStrings
|
||||
dba NULL
|
||||
dba NULL
|
||||
; 13568
|
||||
|
||||
GetElevatorFlorStrings: ; 13568
|
||||
GetElevatorFloorStrings: ; 13568
|
||||
ld a, [MenuSelection]
|
||||
GetFloorString: ; 1356b
|
||||
push de
|
||||
@@ -220,7 +220,7 @@ FloorToString: ; 13575
|
||||
push de
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .floors
|
||||
ld hl, ElevatorFloorNames
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -230,54 +230,4 @@ FloorToString: ; 13575
|
||||
ret
|
||||
; 13583
|
||||
|
||||
.floors
|
||||
dw .b4f
|
||||
dw .b3f
|
||||
dw .b2f
|
||||
dw .b1f
|
||||
dw ._1f
|
||||
dw ._2f
|
||||
dw ._3f
|
||||
dw ._4f
|
||||
dw ._5f
|
||||
dw ._6f
|
||||
dw ._7f
|
||||
dw ._8f
|
||||
dw ._9f
|
||||
dw ._10f
|
||||
dw ._11f
|
||||
dw .roof
|
||||
|
||||
.b4f
|
||||
db "B4F@"
|
||||
.b3f
|
||||
db "B3F@"
|
||||
.b2f
|
||||
db "B2F@"
|
||||
.b1f
|
||||
db "B1F@"
|
||||
._1f
|
||||
db "1F@"
|
||||
._2f
|
||||
db "2F@"
|
||||
._3f
|
||||
db "3F@"
|
||||
._4f
|
||||
db "4F@"
|
||||
._5f
|
||||
db "5F@"
|
||||
._6f
|
||||
db "6F@"
|
||||
._7f
|
||||
db "7F@"
|
||||
._8f
|
||||
db "8F@"
|
||||
._9f
|
||||
db "9F@"
|
||||
._10f
|
||||
db "10F@"
|
||||
._11f
|
||||
db "11F@"
|
||||
.roof
|
||||
db "ROOF@"
|
||||
; 135db
|
||||
INCLUDE "data/elevator_floors.asm"
|
||||
|
@@ -220,8 +220,7 @@ GetMagnetTrainBGTiles: ; 8cd74
|
||||
; 8cd82
|
||||
|
||||
MagnetTrainBGTiles: ; 8cd82
|
||||
; Alternating tiles for each line
|
||||
; of the Magnet Train tilemap.
|
||||
; Alternating tiles for each line of the Magnet Train tilemap.
|
||||
db $4c, $4d ; bush
|
||||
db $5c, $5d ; bush
|
||||
db $4c, $4d ; bush
|
||||
@@ -263,25 +262,25 @@ SetMagnetTrainPals: ; 8cdc3
|
||||
; bushes
|
||||
hlbgcoord 0, 0
|
||||
ld bc, 4 * BG_MAP_WIDTH
|
||||
ld a, $2
|
||||
ld a, PAL_BG_GREEN
|
||||
call ByteFill
|
||||
|
||||
; train
|
||||
hlbgcoord 0, 4
|
||||
ld bc, 10 * BG_MAP_WIDTH
|
||||
xor a
|
||||
xor a ; PAL_BG_GRAY
|
||||
call ByteFill
|
||||
|
||||
; more bushes
|
||||
hlbgcoord 0, 14
|
||||
ld bc, 4 * BG_MAP_WIDTH
|
||||
ld a, $2
|
||||
ld a, PAL_BG_GREEN
|
||||
call ByteFill
|
||||
|
||||
; train window
|
||||
hlbgcoord 7, 8
|
||||
ld bc, 6
|
||||
ld a, $4
|
||||
ld a, PAL_BG_YELLOW
|
||||
call ByteFill
|
||||
|
||||
ld a, $0
|
||||
@@ -459,23 +458,11 @@ MagnetTrain_Jumptable_FirstRunThrough: ; 8ceae
|
||||
; 8ceff
|
||||
|
||||
MagnetTrainTilemap1:
|
||||
db $1f, $05, $06, $0a, $0a
|
||||
db $0a, $09, $0a, $0a, $0a
|
||||
db $0a, $0a, $0a, $09, $0a
|
||||
db $0a, $0a, $0b, $0c, $1f
|
||||
db $1f, $05, $06, $0a, $0a, $0a, $09, $0a, $0a, $0a, $0a, $0a, $0a, $09, $0a, $0a, $0a, $0b, $0c, $1f
|
||||
MagnetTrainTilemap2:
|
||||
db $14, $15, $16, $1a, $1a
|
||||
db $1a, $19, $1a, $1a, $1a
|
||||
db $1a, $1a, $1a, $19, $1a
|
||||
db $1a, $1a, $1b, $1c, $1d
|
||||
db $14, $15, $16, $1a, $1a, $1a, $19, $1a, $1a, $1a, $1a, $1a, $1a, $19, $1a, $1a, $1a, $1b, $1c, $1d
|
||||
MagnetTrainTilemap3:
|
||||
db $24, $25, $26, $27, $07
|
||||
db $2f, $29, $28, $28, $28
|
||||
db $28, $28, $28, $29, $07
|
||||
db $2f, $2a, $2b, $2c, $2d
|
||||
db $24, $25, $26, $27, $07, $2f, $29, $28, $28, $28, $28, $28, $28, $29, $07, $2f, $2a, $2b, $2c, $2d
|
||||
MagnetTrainTilemap4:
|
||||
db $20, $1f, $2e, $1f, $17
|
||||
db $00, $2e, $1f, $1f, $1f
|
||||
db $1f, $1f, $1f, $2e, $17
|
||||
db $00, $1f, $2e, $1f, $0f
|
||||
db $20, $1f, $2e, $1f, $17, $00, $2e, $1f, $1f, $1f, $1f, $1f, $1f, $2e, $17, $00, $1f, $2e, $1f, $0f
|
||||
; 8cf4f
|
||||
|
@@ -31,7 +31,6 @@ LoadPoisonBGPals: ; cbcdd
|
||||
ld hl, wBGPals2
|
||||
ld c, 4 palettes
|
||||
.loop
|
||||
; RGB 28, 21, 31
|
||||
ld a, LOW(palred 28 + palgreen 21 + palblue 31)
|
||||
ld [hli], a
|
||||
ld a, HIGH(palred 28 + palgreen 21 + palblue 31)
|
||||
|
@@ -1,4 +1,5 @@
|
||||
StdScripts::
|
||||
; entries correspond to constants/std_constants.asm
|
||||
dba PokecenterNurseScript
|
||||
dba DifficultBookshelfScript
|
||||
dba PictureBookshelfScript
|
||||
@@ -1818,7 +1819,7 @@ CoinVendor_IntroScript: ; 0xbcde0
|
||||
; 0xbcdf7
|
||||
|
||||
.Buy50: ; 0xbcdf7
|
||||
checkcoins 9949
|
||||
checkcoins MAX_COINS - 50
|
||||
if_equal $0, .CoinCaseFull
|
||||
checkmoney $0, 1000
|
||||
if_equal $2, .NotEnoughMoney
|
||||
@@ -1832,7 +1833,7 @@ CoinVendor_IntroScript: ; 0xbcde0
|
||||
; 0xbce1b
|
||||
|
||||
.Buy500: ; 0xbce1b
|
||||
checkcoins 9499
|
||||
checkcoins MAX_COINS - 500
|
||||
if_equal $0, .CoinCaseFull
|
||||
checkmoney $0, 10000
|
||||
if_equal $2, .NotEnoughMoney
|
||||
|
@@ -1576,7 +1576,7 @@ HealStatus: ; f030 (3:7030)
|
||||
GetItemHealingAction: ; f058 (3:7058)
|
||||
push hl
|
||||
ld a, [CurItem]
|
||||
ld hl, .healingactions
|
||||
ld hl, StatusHealingActions
|
||||
ld bc, 3
|
||||
.next
|
||||
cp [hl]
|
||||
@@ -1595,24 +1595,7 @@ GetItemHealingAction: ; f058 (3:7058)
|
||||
ret
|
||||
; f071 (3:7071)
|
||||
|
||||
.healingactions ; f071
|
||||
; item, party menu action text, status
|
||||
db ANTIDOTE, PARTYMENUTEXT_HEAL_PSN, 1 << PSN
|
||||
db BURN_HEAL, PARTYMENUTEXT_HEAL_BRN, 1 << BRN
|
||||
db ICE_HEAL, PARTYMENUTEXT_HEAL_FRZ, 1 << FRZ
|
||||
db AWAKENING, PARTYMENUTEXT_HEAL_SLP, SLP
|
||||
db PARLYZ_HEAL, PARTYMENUTEXT_HEAL_PAR, 1 << PAR
|
||||
db FULL_HEAL, PARTYMENUTEXT_HEAL_ALL, %11111111
|
||||
db FULL_RESTORE, PARTYMENUTEXT_HEAL_ALL, %11111111
|
||||
db HEAL_POWDER, PARTYMENUTEXT_HEAL_ALL, %11111111
|
||||
db PSNCUREBERRY, PARTYMENUTEXT_HEAL_PSN, 1 << PSN
|
||||
db PRZCUREBERRY, PARTYMENUTEXT_HEAL_PAR, 1 << PAR
|
||||
db BURNT_BERRY, PARTYMENUTEXT_HEAL_FRZ, 1 << FRZ
|
||||
db ICE_BERRY, PARTYMENUTEXT_HEAL_BRN, 1 << BRN
|
||||
db MINT_BERRY, PARTYMENUTEXT_HEAL_SLP, SLP
|
||||
db MIRACLEBERRY, PARTYMENUTEXT_HEAL_ALL, %11111111
|
||||
db -1, 0, 0
|
||||
; f09e
|
||||
INCLUDE "data/items/heal_status.asm"
|
||||
|
||||
StatusHealer_Jumptable: ; f09e (3:709e)
|
||||
ld hl, .dw
|
||||
@@ -2118,7 +2101,7 @@ GetOneFifthMaxHP: ; f378 (3:7378)
|
||||
GetHealingItemAmount: ; f395 (3:7395)
|
||||
push hl
|
||||
ld a, [CurItem]
|
||||
ld hl, .Healing
|
||||
ld hl, HealingHPAmounts
|
||||
ld d, a
|
||||
.next
|
||||
ld a, [hli]
|
||||
@@ -2140,24 +2123,7 @@ GetHealingItemAmount: ; f395 (3:7395)
|
||||
ret
|
||||
; f3af (3:73af)
|
||||
|
||||
.Healing: ; f3af
|
||||
dbw FRESH_WATER, 50
|
||||
dbw SODA_POP, 60
|
||||
dbw LEMONADE, 80
|
||||
dbw HYPER_POTION, 200
|
||||
dbw SUPER_POTION, 50
|
||||
dbw POTION, 20
|
||||
dbw MAX_POTION, MAX_STAT_VALUE
|
||||
dbw FULL_RESTORE, MAX_STAT_VALUE
|
||||
dbw MOOMOO_MILK, 100
|
||||
dbw BERRY, 10
|
||||
dbw GOLD_BERRY, 30
|
||||
dbw ENERGYPOWDER, 50
|
||||
dbw ENERGY_ROOT, 200
|
||||
dbw RAGECANDYBAR, 20
|
||||
dbw BERRY_JUICE, 20
|
||||
dbw -1, 0
|
||||
; f3df
|
||||
INCLUDE "data/items/heal_hp.asm"
|
||||
|
||||
Softboiled_MilkDrinkFunction: ; f3df (3:73df)
|
||||
; Softboiled/Milk Drink in the field
|
||||
@@ -2328,7 +2294,7 @@ XSpecial: ; f4c5
|
||||
call UseItemText
|
||||
|
||||
ld a, [CurItem]
|
||||
ld hl, .x_item_table
|
||||
ld hl, XItemStats
|
||||
|
||||
.loop
|
||||
cp [hl]
|
||||
@@ -2357,12 +2323,7 @@ XSpecial: ; f4c5
|
||||
ret
|
||||
; f504
|
||||
|
||||
.x_item_table ; f504
|
||||
db X_ATTACK, ATTACK
|
||||
db X_DEFEND, DEFENSE
|
||||
db X_SPEED, SPEED
|
||||
db X_SPECIAL, SP_ATTACK
|
||||
; f50c
|
||||
INCLUDE "data/items/x_stats.asm"
|
||||
|
||||
|
||||
PokeFlute: ; f50c
|
||||
|
@@ -392,6 +392,7 @@ StepVectors: ; 4700
|
||||
db -4, 0, 4, 4
|
||||
db 4, 0, 4, 4
|
||||
; 4730
|
||||
|
||||
GetStepVectorSign: ; 4730
|
||||
add a
|
||||
ret z ; 0 or 128
|
||||
@@ -400,6 +401,7 @@ GetStepVectorSign: ; 4730
|
||||
ld a, -1
|
||||
ret ; 129 - 255
|
||||
; 4738
|
||||
|
||||
UpdatePlayerStep: ; 4738
|
||||
ld hl, OBJECT_DIRECTION_WALKING
|
||||
add hl, bc
|
||||
|
@@ -216,7 +216,7 @@ FindApricornsInBag: ; 24c64
|
||||
ld bc, 10
|
||||
call ByteFill
|
||||
|
||||
ld hl, .ApricornBalls
|
||||
ld hl, ApricornBalls
|
||||
.loop
|
||||
ld a, [hl]
|
||||
cp -1
|
||||
@@ -252,12 +252,4 @@ FindApricornsInBag: ; 24c64
|
||||
pop hl
|
||||
ret
|
||||
|
||||
.ApricornBalls: ; 24ca0
|
||||
db RED_APRICORN, LEVEL_BALL
|
||||
db BLU_APRICORN, LURE_BALL
|
||||
db YLW_APRICORN, MOON_BALL
|
||||
db GRN_APRICORN, FRIEND_BALL
|
||||
db WHT_APRICORN, FAST_BALL
|
||||
db BLK_APRICORN, HEAVY_BALL
|
||||
db PNK_APRICORN, LOVE_BALL
|
||||
db -1
|
||||
INCLUDE "data/items/apricorn_balls.asm"
|
||||
|
@@ -765,21 +765,7 @@ NamingScreen_AdvanceCursor_CheckEndOfString: ; 11b27
|
||||
|
||||
; 11b56
|
||||
|
||||
Dakutens: ; Dummied out
|
||||
db "かが", "きぎ", "くぐ", "けげ", "こご"
|
||||
db "さざ", "しじ", "すず", "せぜ", "そぞ"
|
||||
db "ただ", "ちぢ", "つづ", "てで", "とど"
|
||||
db "はば", "ひび", "ふぶ", "へべ", "ほぼ"
|
||||
db "カガ", "キギ", "クグ", "ケゲ", "コゴ"
|
||||
db "サザ", "シジ", "スズ", "セゼ", "ソゾ"
|
||||
db "タダ", "チヂ", "ツヅ", "テデ", "トド"
|
||||
db "ハバ", "ヒビ", "フブ", "へべ", "ホボ"
|
||||
db -1 ; end
|
||||
|
||||
Handakutens: ; Dummied out
|
||||
db "はぱ", "ひぴ", "ふぷ", "へぺ", "ほぽ"
|
||||
db "ハパ", "ヒピ", "フプ", "へぺ", "ホポ"
|
||||
db -1 ; end
|
||||
INCLUDE "data/unused_text/dakutens.asm"
|
||||
|
||||
; 11bbc
|
||||
|
||||
|
@@ -1,3 +1,15 @@
|
||||
; WritePartyMenuTilemap.Jumptable indexes
|
||||
const_def
|
||||
const PARTYMENUQUALITY_NICKNAMES
|
||||
const PARTYMENUQUALITY_HP_BAR
|
||||
const PARTYMENUQUALITY_HP_DIGITS
|
||||
const PARTYMENUQUALITY_LEVEL
|
||||
const PARTYMENUQUALITY_STATUS
|
||||
const PARTYMENUQUALITY_TMHM_COMPAT
|
||||
const PARTYMENUQUALITY_EVO_STONE_COMPAT
|
||||
const PARTYMENUQUALITY_GENDER
|
||||
const PARTYMENUQUALITY_MOBILE_SELECTION
|
||||
|
||||
SelectMonFromParty: ; 50000
|
||||
call DisableSpriteUpdates
|
||||
xor a
|
||||
@@ -57,16 +69,16 @@ WritePartyMenuTilemap: ; 0x5005f
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
ld a, " "
|
||||
call ByteFill ; blank the tilemap
|
||||
call GetPartyMenuTilemapPointers ; This reads from a pointer table???
|
||||
call GetPartyMenuQualityIndexes
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp $ff
|
||||
jr z, .end ; 0x5007a $8
|
||||
cp -1
|
||||
jr z, .end
|
||||
push hl
|
||||
ld hl, .Jumptable
|
||||
rst JumpTable
|
||||
pop hl
|
||||
jr .loop ; 0x50082 $f3
|
||||
jr .loop
|
||||
.end
|
||||
pop af
|
||||
ld [Options], a
|
||||
@@ -74,6 +86,7 @@ WritePartyMenuTilemap: ; 0x5005f
|
||||
; 0x50089
|
||||
|
||||
.Jumptable: ; 50089
|
||||
; entries correspond to PARTYMENUQUALITY_* constants
|
||||
dw PlacePartyNicknames
|
||||
dw PlacePartyHPBar
|
||||
dw PlacePartyMenuHPDigits
|
||||
@@ -598,7 +611,7 @@ PartyMenuCheckEgg: ; 50389
|
||||
ret
|
||||
; 50396
|
||||
|
||||
GetPartyMenuTilemapPointers: ; 50396
|
||||
GetPartyMenuQualityIndexes: ; 50396
|
||||
ld a, [PartyMenuActionText]
|
||||
and $f0
|
||||
jr nz, .skip
|
||||
@@ -620,23 +633,32 @@ GetPartyMenuTilemapPointers: ; 50396
|
||||
; 503b2
|
||||
|
||||
.Pointers: ; 503b2
|
||||
dw .Default
|
||||
dw .Default
|
||||
dw .Default
|
||||
dw .TMHM
|
||||
dw .Default
|
||||
dw .EvoStone
|
||||
dw .Gender
|
||||
dw .Gender
|
||||
dw .Default
|
||||
dw .Mobile
|
||||
; entries correspond to PARTYMENUACTION_* constants
|
||||
dw .Default ; PARTYMENUACTION_CHOOSE_POKEMON
|
||||
dw .Default ; PARTYMENUACTION_HEALING_ITEM
|
||||
dw .Default ; PARTYMENUACTION_SWITCH
|
||||
dw .TMHM ; PARTYMENUACTION_TEACH_TMHM
|
||||
dw .Default ; PARTYMENUACTION_MOVE
|
||||
dw .EvoStone ; PARTYMENUACTION_EVO_STONE
|
||||
dw .Gender ; PARTYMENUACTION_GIVE_MON
|
||||
dw .Gender ; PARTYMENUACTION_GIVE_MON_FEMALE
|
||||
dw .Default ; PARTYMENUACTION_GIVE_ITEM
|
||||
dw .Mobile ; PARTYMENUACTION_MOBILE
|
||||
; 503c6
|
||||
|
||||
.Default: db 0, 1, 2, 3, 4, $ff
|
||||
.TMHM: db 0, 5, 3, 4, $ff
|
||||
.EvoStone: db 0, 6, 3, 4, $ff
|
||||
.Gender: db 0, 7, 3, 4, $ff
|
||||
.Mobile: db 0, 8, 3, 4, $ff
|
||||
partymenuqualities: MACRO
|
||||
rept _NARG
|
||||
db PARTYMENUQUALITY_\1
|
||||
shift
|
||||
endr
|
||||
db -1 ; end
|
||||
ENDM
|
||||
|
||||
.Default: partymenuqualities NICKNAMES, HP_BAR, HP_DIGITS, LEVEL, STATUS
|
||||
.TMHM: partymenuqualities NICKNAMES, TMHM_COMPAT, LEVEL, STATUS
|
||||
.EvoStone: partymenuqualities NICKNAMES, EVO_STONE_COMPAT, LEVEL, STATUS
|
||||
.Gender: partymenuqualities NICKNAMES, GENDER, LEVEL, STATUS
|
||||
.Mobile: partymenuqualities NICKNAMES, MOBILE_SELECTION, LEVEL, STATUS
|
||||
; 503e0
|
||||
|
||||
|
||||
|
@@ -75,20 +75,20 @@ GetRemainingSpaceInPhoneList: ; 90040
|
||||
cp -1
|
||||
jr z, .done
|
||||
cp c
|
||||
jr z, .elm_or_mom
|
||||
jr z, .continue
|
||||
|
||||
push bc
|
||||
push hl
|
||||
ld c, a
|
||||
call _CheckCellNum
|
||||
jr c, .elm_or_mom_in_list
|
||||
jr c, .permanent
|
||||
ld hl, Buffer1
|
||||
inc [hl]
|
||||
|
||||
.elm_or_mom_in_list
|
||||
.permanent
|
||||
pop hl
|
||||
pop bc
|
||||
|
||||
.elm_or_mom
|
||||
.continue
|
||||
jr .loop
|
||||
|
||||
.done
|
||||
@@ -98,9 +98,7 @@ GetRemainingSpaceInPhoneList: ; 90040
|
||||
ret
|
||||
; 90066
|
||||
|
||||
PermanentNumbers: ; 90066
|
||||
db PHONECONTACT_MOM, PHONECONTACT_ELM, -1
|
||||
; 90069
|
||||
INCLUDE "data/phone/permanent_numbers.asm"
|
||||
|
||||
|
||||
FarPlaceString: ; 90069
|
||||
|
@@ -1794,7 +1794,7 @@ Pokedex_PrevSearchMonType: ; 40f65
|
||||
|
||||
ld hl, wDexSearchMonType1
|
||||
ld a, [hl]
|
||||
cp $1
|
||||
cp 1
|
||||
jr z, .wrap_around
|
||||
dec [hl]
|
||||
jr .done
|
||||
@@ -1808,7 +1808,7 @@ Pokedex_PrevSearchMonType: ; 40f65
|
||||
jr .done
|
||||
|
||||
.wrap_around
|
||||
ld [hl], $11
|
||||
ld [hl], NUM_TYPES - 1
|
||||
|
||||
.done
|
||||
scf
|
||||
@@ -1821,18 +1821,18 @@ Pokedex_NextSearchMonType: ; 40f84
|
||||
|
||||
ld hl, wDexSearchMonType1
|
||||
ld a, [hl]
|
||||
cp $11
|
||||
cp NUM_TYPES - 1
|
||||
jr nc, .type1_wrap_around
|
||||
inc [hl]
|
||||
jr .done
|
||||
.type1_wrap_around
|
||||
ld [hl], $1
|
||||
ld [hl], 1
|
||||
jr .done
|
||||
|
||||
.type2
|
||||
ld hl, wDexSearchMonType2
|
||||
ld a, [hl]
|
||||
cp $11
|
||||
cp NUM_TYPES - 1
|
||||
jr nc, .type2_wrap_around
|
||||
inc [hl]
|
||||
jr .done
|
||||
@@ -1864,7 +1864,7 @@ Pokedex_PlaceTypeString: ; 40fcd (10:4fcd)
|
||||
push hl
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .TypeStrings
|
||||
ld hl, PokedexTypeSearchStrings
|
||||
rept 9
|
||||
add hl, de
|
||||
endr
|
||||
@@ -1874,25 +1874,7 @@ endr
|
||||
call PlaceString
|
||||
ret
|
||||
|
||||
.TypeStrings: ; 40fe4
|
||||
db " ---- @"
|
||||
db " NORMAL @"
|
||||
db " FIRE @"
|
||||
db " WATER @"
|
||||
db " GRASS @"
|
||||
db "ELECTRIC@"
|
||||
db " ICE @"
|
||||
db "FIGHTING@"
|
||||
db " POISON @"
|
||||
db " GROUND @"
|
||||
db " FLYING @"
|
||||
db "PSYCHIC @"
|
||||
db " BUG @"
|
||||
db " ROCK @"
|
||||
db " GHOST @"
|
||||
db " DRAGON @"
|
||||
db " DARK @"
|
||||
db " STEEL @"
|
||||
INCLUDE "data/types/search_strings.asm"
|
||||
|
||||
Pokedex_SearchForMons: ; 41086
|
||||
ld a, [wDexSearchMonType2]
|
||||
@@ -1907,7 +1889,7 @@ Pokedex_SearchForMons: ; 41086
|
||||
dec a
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .TypeConversionTable
|
||||
ld hl, PokedexTypeSearchConversionTable
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ld [wDexConvertedMonType], a
|
||||
@@ -1969,24 +1951,7 @@ Pokedex_SearchForMons: ; 41086
|
||||
.done
|
||||
ret
|
||||
|
||||
.TypeConversionTable: ; 410f6
|
||||
db NORMAL
|
||||
db FIRE
|
||||
db WATER
|
||||
db GRASS
|
||||
db ELECTRIC
|
||||
db ICE
|
||||
db FIGHTING
|
||||
db POISON
|
||||
db GROUND
|
||||
db FLYING
|
||||
db PSYCHIC
|
||||
db BUG
|
||||
db ROCK
|
||||
db GHOST
|
||||
db DRAGON
|
||||
db DARK
|
||||
db STEEL
|
||||
INCLUDE "data/types/search_types.asm"
|
||||
|
||||
Pokedex_DisplayTypeNotFoundMessage: ; 41107
|
||||
xor a
|
||||
|
@@ -1510,7 +1510,7 @@ UpdateRadioStation: ; 9166f (24:566f)
|
||||
; 916ad
|
||||
|
||||
RadioChannels:
|
||||
; frequencies and the shows that play on them.
|
||||
; entries correspond to constants/radio_constants.asm
|
||||
|
||||
; frequency value given here = 4 × ingame_frequency − 2
|
||||
dbw 16, .PkmnTalkAndPokedexShow
|
||||
|
@@ -18,7 +18,7 @@ Predef_LoadSGBLayout: ; 864c
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
ld de, .Finish
|
||||
ld de, _LoadSGBLayout_ReturnFromJumpTable
|
||||
push de
|
||||
jp hl
|
||||
; 866f
|
||||
@@ -389,15 +389,13 @@ endr
|
||||
jr z, .partymon
|
||||
; Egg
|
||||
ld hl, wSGBPals + 3
|
||||
; RGB 7, 7, 7
|
||||
ld [hl], $e7
|
||||
ld [hl], LOW(palred 7 + palgreen 7 + palblue 7)
|
||||
inc hl
|
||||
ld [hl], $1c
|
||||
ld [hl], HIGH(palred 7 + palgreen 7 + palblue 7)
|
||||
inc hl
|
||||
; RGB 2, 3, 3
|
||||
ld [hl], $62
|
||||
ld [hl], LOW(palred 2 + palgreen 3 + palblue 3)
|
||||
inc hl
|
||||
ld [hl], $c
|
||||
ld [hl], HIGH(palred 2 + palgreen 3 + palblue 3)
|
||||
jr .done
|
||||
|
||||
.partymon
|
||||
@@ -576,7 +574,7 @@ endr
|
||||
ld a, [MapGroup]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .SGBRoofPalInds
|
||||
ld hl, MapGroupRoofSGBPalInds
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ret
|
||||
@@ -598,37 +596,9 @@ endr
|
||||
ret
|
||||
; 8a45
|
||||
|
||||
.SGBRoofPalInds: ; 8a45
|
||||
db $00 ; Unused
|
||||
db $12 ; Olivine
|
||||
db $14 ; Mahogany
|
||||
db $18 ; Various Dungeons
|
||||
db $11 ; Ecruteak
|
||||
db $15 ; Blackthorn
|
||||
db $09 ; Cinnabar
|
||||
db $04 ; Cerulean
|
||||
db $0f ; Azalea
|
||||
db $16 ; Lake Of Rage
|
||||
db $0e ; Violet
|
||||
db $10 ; Goldenrod
|
||||
db $06 ; Vermilion
|
||||
db $01 ; Palette
|
||||
db $03 ; Pewter
|
||||
db $06 ; Fast Ship
|
||||
db $0b ; Indigo Plateau
|
||||
db $08 ; Fuchsia
|
||||
db $05 ; Lavender
|
||||
db $17 ; Silver Cave Outside
|
||||
db $08 ; Pokemon Center 2F
|
||||
db $07 ; Celadon
|
||||
db $13 ; Cianwood
|
||||
db $02 ; Viridian
|
||||
db $0c ; New Bark
|
||||
db $0a ; Saffron
|
||||
db $0d ; Cherrygrove
|
||||
; 8a60
|
||||
INCLUDE "data/maps/sgb_roofs.asm"
|
||||
|
||||
.Finish: ; 8a60
|
||||
_LoadSGBLayout_ReturnFromJumpTable: ; 8a60
|
||||
push de
|
||||
call PushSGBPals_
|
||||
pop hl
|
||||
|
@@ -96,6 +96,4 @@ GetTypeName: ; 50964
|
||||
; 5097b
|
||||
|
||||
|
||||
INCLUDE "data/type_names.asm"
|
||||
|
||||
; 50a28
|
||||
INCLUDE "data/types/names.asm"
|
||||
|
Reference in New Issue
Block a user