Fix marts using hard-coded bank number

This commit is contained in:
PikalaxALT
2016-01-27 12:25:12 -05:00
parent d02c9e39dd
commit b272c0c375
17 changed files with 286 additions and 824 deletions

12
.gitattributes vendored
View File

@@ -2,10 +2,10 @@
* -text * -text
# hexdump binary files # hexdump binary files
*.png diff=hex *.png binary diff=hex
*.lz diff=hex *.lz binary diff=hex
*.2bpp diff=hex *.2bpp binary diff=hex
*.1bpp diff=hex *.1bpp binary diff=hex
*.bin diff=hex *.bin binary diff=hex
*.blk diff=hex *.blk binary diff=hex

View File

@@ -2260,7 +2260,6 @@ GetFrequency: ; e8a5d
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
and $f ; lo nybble and $f ; lo nybble
;
ld l, a ; ok ld l, a ; ok
ld d, 0 ld d, 0
ld h, d ld h, d

View File

@@ -274,7 +274,7 @@ BattleAnimFunction_12: ; cd15c (33:515c)
dw .ten dw .ten
dw .eleven dw .eleven
.zero .zero
call GetBallAnimFunction call GetBallAnimPal
call BattleAnim_IncAnonJumptableIndex call BattleAnim_IncAnonJumptableIndex
ret ret
@@ -342,7 +342,7 @@ BattleAnimFunction_12: ; cd15c (33:515c)
ret ret
.seven .seven
call GetBallAnimFunction call GetBallAnimPal
ld a, $a ld a, $a
call ReinitBattleAnimFrameset call ReinitBattleAnimFrameset
call BattleAnim_IncAnonJumptableIndex call BattleAnim_IncAnonJumptableIndex
@@ -382,7 +382,7 @@ BattleAnimFunction_13: ; cd212 (33:5212)
dw .one dw .one
dw .two dw .two
.zero .zero
call GetBallAnimFunction call GetBallAnimPal
call BattleAnim_IncAnonJumptableIndex call BattleAnim_IncAnonJumptableIndex
ret ret
@@ -415,7 +415,7 @@ BattleAnimFunction_13: ; cd212 (33:5212)
call DeinitBattleAnimation call DeinitBattleAnimation
ret ret
GetBallAnimFunction: ; cd249 (33:5249) GetBallAnimPal: ; cd249 (33:5249)
ld hl, .balls ld hl, .balls
ld a, [rSVBK] ld a, [rSVBK]
push af push af

View File

@@ -1,210 +1,210 @@
const_def const_def
const SFX_DEX_FANFARE_50_79 const SFX_DEX_FANFARE_50_79 ; 00
const SFX_ITEM const SFX_ITEM ; 01
const SFX_CAUGHT_MON const SFX_CAUGHT_MON ; 02
const SFX_POKEBALLS_PLACED_ON_TABLE const SFX_POKEBALLS_PLACED_ON_TABLE ; 03
const SFX_POTION const SFX_POTION ; 04
const SFX_FULL_HEAL const SFX_FULL_HEAL ; 05
const SFX_MENU const SFX_MENU ; 06
const SFX_READ_TEXT const SFX_READ_TEXT ; 07
const SFX_READ_TEXT_2 const SFX_READ_TEXT_2 ; 08
const SFX_DEX_FANFARE_20_49 const SFX_DEX_FANFARE_20_49 ; 09
const SFX_DEX_FANFARE_80_109 const SFX_DEX_FANFARE_80_109 ; 0a
const SFX_POISON const SFX_POISON ; 0b
const SFX_GOT_SAFARI_BALLS const SFX_GOT_SAFARI_BALLS ; 0c
const SFX_BOOT_PC const SFX_BOOT_PC ; 0d
const SFX_SHUT_DOWN_PC const SFX_SHUT_DOWN_PC ; 0e
const SFX_CHOOSE_PC_OPTION const SFX_CHOOSE_PC_OPTION ; 0f
const SFX_ESCAPE_ROPE const SFX_ESCAPE_ROPE ; 10
const SFX_PUSH_BUTTON const SFX_PUSH_BUTTON ; 11
const SFX_SECOND_PART_OF_ITEMFINDER const SFX_SECOND_PART_OF_ITEMFINDER ; 12
const SFX_WARP_TO const SFX_WARP_TO ; 13
const SFX_WARP_FROM const SFX_WARP_FROM ; 14
const SFX_CHANGE_DEX_MODE const SFX_CHANGE_DEX_MODE ; 15
const SFX_JUMP_OVER_LEDGE const SFX_JUMP_OVER_LEDGE ; 16
const SFX_GRASS_RUSTLE const SFX_GRASS_RUSTLE ; 17
const SFX_FLY const SFX_FLY ; 18
const SFX_WRONG const SFX_WRONG ; 19
const SFX_SQUEAK const SFX_SQUEAK ; 1a
const SFX_STRENGTH const SFX_STRENGTH ; 1b
const SFX_BOAT const SFX_BOAT ; 1c
const SFX_WALL_OPEN const SFX_WALL_OPEN ; 1d
const SFX_PLACE_PUZZLE_PIECE_DOWN const SFX_PLACE_PUZZLE_PIECE_DOWN ; 1e
const SFX_ENTER_DOOR const SFX_ENTER_DOOR ; 1f
const SFX_SWITCH_POKEMON const SFX_SWITCH_POKEMON ; 20
const SFX_TALLY const SFX_TALLY ; 21
const SFX_TRANSACTION const SFX_TRANSACTION ; 22
const SFX_EXIT_BUILDING const SFX_EXIT_BUILDING ; 23
const SFX_BUMP const SFX_BUMP ; 24
const SFX_SAVE const SFX_SAVE ; 25
const SFX_POKEFLUTE const SFX_POKEFLUTE ; 26
const SFX_ELEVATOR_END const SFX_ELEVATOR_END ; 27
const SFX_THROW_BALL const SFX_THROW_BALL ; 28
const SFX_BALL_POOF const SFX_BALL_POOF ; 29
const SFX_FAINT const SFX_FAINT ; 2a
const SFX_RUN const SFX_RUN ; 2b
const SFX_SLOT_MACHINE_START const SFX_SLOT_MACHINE_START ; 2c
const SFX_FANFARE const SFX_FANFARE ; 2d
const SFX_PECK const SFX_PECK ; 2e
const SFX_KINESIS const SFX_KINESIS ; 2f
const SFX_LICK const SFX_LICK ; 30
const SFX_POUND const SFX_POUND ; 31
const SFX_MOVE_PUZZLE_PIECE const SFX_MOVE_PUZZLE_PIECE ; 32
const SFX_COMET_PUNCH const SFX_COMET_PUNCH ; 33
const SFX_MEGA_PUNCH const SFX_MEGA_PUNCH ; 34
const SFX_SCRATCH const SFX_SCRATCH ; 35
const SFX_VICEGRIP const SFX_VICEGRIP ; 36
const SFX_RAZOR_WIND const SFX_RAZOR_WIND ; 37
const SFX_CUT const SFX_CUT ; 38
const SFX_WING_ATTACK const SFX_WING_ATTACK ; 39
const SFX_WHIRLWIND const SFX_WHIRLWIND ; 3a
const SFX_BIND const SFX_BIND ; 3b
const SFX_VINE_WHIP const SFX_VINE_WHIP ; 3c
const SFX_DOUBLE_KICK const SFX_DOUBLE_KICK ; 3d
const SFX_MEGA_KICK const SFX_MEGA_KICK ; 3e
const SFX_HEADBUTT const SFX_HEADBUTT ; 3f
const SFX_HORN_ATTACK const SFX_HORN_ATTACK ; 40
const SFX_TACKLE const SFX_TACKLE ; 41
const SFX_POISON_STING const SFX_POISON_STING ; 42
const SFX_POWDER const SFX_POWDER ; 43
const SFX_DOUBLESLAP const SFX_DOUBLESLAP ; 44
const SFX_BITE const SFX_BITE ; 45
const SFX_JUMP_KICK const SFX_JUMP_KICK ; 46
const SFX_STOMP const SFX_STOMP ; 47
const SFX_TAIL_WHIP const SFX_TAIL_WHIP ; 48
const SFX_KARATE_CHOP const SFX_KARATE_CHOP ; 49
const SFX_SUBMISSION const SFX_SUBMISSION ; 4a
const SFX_WATER_GUN const SFX_WATER_GUN ; 4b
const SFX_SWORDS_DANCE const SFX_SWORDS_DANCE ; 4c
const SFX_THUNDER const SFX_THUNDER ; 4d
const SFX_SUPERSONIC const SFX_SUPERSONIC ; 4e
const SFX_LEER const SFX_LEER ; 4f
const SFX_EMBER const SFX_EMBER ; 50
const SFX_BUBBLEBEAM const SFX_BUBBLEBEAM ; 51
const SFX_HYDRO_PUMP const SFX_HYDRO_PUMP ; 52
const SFX_SURF const SFX_SURF ; 53
const SFX_PSYBEAM const SFX_PSYBEAM ; 54
const SFX_CHARGE const SFX_CHARGE ; 55
const SFX_THUNDERSHOCK const SFX_THUNDERSHOCK ; 56
const SFX_PSYCHIC const SFX_PSYCHIC ; 57
const SFX_SCREECH const SFX_SCREECH ; 58
const SFX_BONE_CLUB const SFX_BONE_CLUB ; 59
const SFX_SHARPEN const SFX_SHARPEN ; 5a
const SFX_EGG_BOMB const SFX_EGG_BOMB ; 5b
const SFX_SING const SFX_SING ; 5c
const SFX_HYPER_BEAM const SFX_HYPER_BEAM ; 5d
const SFX_SHINE const SFX_SHINE ; 5e
const SFX_UNKNOWN_5F const SFX_UNKNOWN_5F ; 5f
const SFX_UNKNOWN_60 const SFX_UNKNOWN_60 ; 60
const SFX_UNKNOWN_61 const SFX_UNKNOWN_61 ; 61
const SFX_SWITCH_POCKETS const SFX_SWITCH_POCKETS ; 62
const SFX_UNKNOWN_63 const SFX_UNKNOWN_63 ; 63
const SFX_BURN const SFX_BURN ; 64
const SFX_TITLE_SCREEN_ENTRANCE const SFX_TITLE_SCREEN_ENTRANCE ; 65
const SFX_UNKNOWN_66 const SFX_UNKNOWN_66 ; 66
const SFX_GET_COIN_FROM_SLOTS const SFX_GET_COIN_FROM_SLOTS ; 67
const SFX_PAY_DAY const SFX_PAY_DAY ; 68
const SFX_METRONOME const SFX_METRONOME ; 69
const SFX_CALL const SFX_CALL ; 6a
const SFX_HANG_UP const SFX_HANG_UP ; 6b
const SFX_NO_SIGNAL const SFX_NO_SIGNAL ; 6c
const SFX_SANDSTORM const SFX_SANDSTORM ; 6d
const SFX_ELEVATOR const SFX_ELEVATOR ; 6e
const SFX_PROTECT const SFX_PROTECT ; 6f
const SFX_SKETCH const SFX_SKETCH ; 70
const SFX_RAIN_DANCE const SFX_RAIN_DANCE ; 71
const SFX_AEROBLAST const SFX_AEROBLAST ; 72
const SFX_SPARK const SFX_SPARK ; 73
const SFX_CURSE const SFX_CURSE ; 74
const SFX_RAGE const SFX_RAGE ; 75
const SFX_THIEF const SFX_THIEF ; 76
const SFX_THIEF_2 const SFX_THIEF_2 ; 77
const SFX_SPIDER_WEB const SFX_SPIDER_WEB ; 78
const SFX_MIND_READER const SFX_MIND_READER ; 79
const SFX_NIGHTMARE const SFX_NIGHTMARE ; 7a
const SFX_SNORE const SFX_SNORE ; 7b
const SFX_SWEET_KISS const SFX_SWEET_KISS ; 7c
const SFX_SWEET_KISS_2 const SFX_SWEET_KISS_2 ; 7d
const SFX_BELLY_DRUM const SFX_BELLY_DRUM ; 7e
const SFX_UNKNOWN_7F const SFX_UNKNOWN_7F ; 7f
const SFX_SLUDGE_BOMB const SFX_SLUDGE_BOMB ; 80
const SFX_FORESIGHT const SFX_FORESIGHT ; 81
const SFX_SPITE const SFX_SPITE ; 82
const SFX_OUTRAGE const SFX_OUTRAGE ; 83
const SFX_PERISH_SONG const SFX_PERISH_SONG ; 84
const SFX_GIGA_DRAIN const SFX_GIGA_DRAIN ; 85
const SFX_ATTRACT const SFX_ATTRACT ; 86
const SFX_KINESIS_2 const SFX_KINESIS_2 ; 87
const SFX_ZAP_CANNON const SFX_ZAP_CANNON ; 88
const SFX_MEAN_LOOK const SFX_MEAN_LOOK ; 89
const SFX_HEAL_BELL const SFX_HEAL_BELL ; 8a
const SFX_RETURN const SFX_RETURN ; 8b
const SFX_EXP_BAR const SFX_EXP_BAR ; 8c
const SFX_MILK_DRINK const SFX_MILK_DRINK ; 8d
const SFX_PRESENT const SFX_PRESENT ; 8e
const SFX_MORNING_SUN const SFX_MORNING_SUN ; 8f
const SFX_LEVEL_UP const SFX_LEVEL_UP ; 90
const SFX_KEY_ITEM const SFX_KEY_ITEM ; 91
const SFX_FANFARE_2 const SFX_FANFARE_2 ; 92
const SFX_REGISTER_PHONE_NUMBER const SFX_REGISTER_PHONE_NUMBER ; 93
const SFX_3RD_PLACE const SFX_3RD_PLACE ; 94
const SFX_GET_EGG_FROM_DAYCARE_MAN const SFX_GET_EGG_FROM_DAYCARE_MAN ; 95
const SFX_GET_EGG_FROM_DAYCARE_LADY const SFX_GET_EGG_FROM_DAYCARE_LADY ; 96
const SFX_MOVE_DELETED const SFX_MOVE_DELETED ; 97
const SFX_2ND_PLACE const SFX_2ND_PLACE ; 98
const SFX_1ST_PLACE const SFX_1ST_PLACE ; 99
const SFX_CHOOSE_A_CARD const SFX_CHOOSE_A_CARD ; 9a
const SFX_GET_TM const SFX_GET_TM ; 9b
const SFX_GET_BADGE const SFX_GET_BADGE ; 9c
const SFX_QUIT_SLOTS const SFX_QUIT_SLOTS ; 9d
const SFX_EGG_CRACK const SFX_EGG_CRACK ; 9e
const SFX_DEX_FANFARE_LESS_THAN_20 const SFX_DEX_FANFARE_LESS_THAN_20 ; 9f
const SFX_DEX_FANFARE_140_169 const SFX_DEX_FANFARE_140_169 ; a0
const SFX_DEX_FANFARE_170_199 const SFX_DEX_FANFARE_170_199 ; a1
const SFX_DEX_FANFARE_200_229 const SFX_DEX_FANFARE_200_229 ; a2
const SFX_DEX_FANFARE_230_PLUS const SFX_DEX_FANFARE_230_PLUS ; a3
const SFX_EVOLVED const SFX_EVOLVED ; a4
const SFX_MASTER_BALL const SFX_MASTER_BALL ; a5
const SFX_EGG_HATCH const SFX_EGG_HATCH ; a6
const SFX_GS_INTRO_CHARIZARD_FIREBALL const SFX_GS_INTRO_CHARIZARD_FIREBALL ; a7
const SFX_GS_INTRO_POKEMON_APPEARS const SFX_GS_INTRO_POKEMON_APPEARS ; a8
const SFX_FLASH const SFX_FLASH ; a9
const SFX_GAME_FREAK_LOGO_GS const SFX_GAME_FREAK_LOGO_GS ; aa
const SFX_NOT_VERY_EFFECTIVE const SFX_NOT_VERY_EFFECTIVE ; ab
const SFX_DAMAGE const SFX_DAMAGE ; ac
const SFX_SUPER_EFFECTIVE const SFX_SUPER_EFFECTIVE ; ad
const SFX_BALL_BOUNCE const SFX_BALL_BOUNCE ; ae
const SFX_MOONLIGHT const SFX_MOONLIGHT ; af
const SFX_ENCORE const SFX_ENCORE ; b0
const SFX_BEAT_UP const SFX_BEAT_UP ; b1
const SFX_BATON_PASS const SFX_BATON_PASS ; b2
const SFX_BALL_WIGGLE const SFX_BALL_WIGGLE ; b3
const SFX_SWEET_SCENT const SFX_SWEET_SCENT ; b4
const SFX_SWEET_SCENT_2 const SFX_SWEET_SCENT_2 ; b5
const SFX_HIT_END_OF_EXP_BAR const SFX_HIT_END_OF_EXP_BAR ; b6
const SFX_GIVE_TRADEMON const SFX_GIVE_TRADEMON ; b7
const SFX_GET_TRADEMON const SFX_GET_TRADEMON ; b8
const SFX_TRAIN_ARRIVED const SFX_TRAIN_ARRIVED ; b9
const SFX_STOP_SLOT const SFX_STOP_SLOT ; ba
const SFX_2_BOOPS const SFX_2_BOOPS ; bb
const SFX_GLASS_TING const SFX_GLASS_TING ; bc
const SFX_GLASS_TING_2 const SFX_GLASS_TING_2 ; bd
const SFX_INTRO_UNOWN_1 const SFX_INTRO_UNOWN_1 ; be
const SFX_INTRO_UNOWN_2 const SFX_INTRO_UNOWN_2 ; bf
const SFX_INTRO_UNOWN_3 const SFX_INTRO_UNOWN_3 ; c0
const SFX_DITTO_POP_UP const SFX_DITTO_POP_UP ; c1
const SFX_DITTO_TRANSFORM const SFX_DITTO_TRANSFORM ; c2
const SFX_INTRO_SUICUNE_1 const SFX_INTRO_SUICUNE_1 ; c3
const SFX_INTRO_PICHU const SFX_INTRO_PICHU ; c4
const SFX_INTRO_SUICUNE_2 const SFX_INTRO_SUICUNE_2 ; c5
const SFX_INTRO_SUICUNE_3 const SFX_INTRO_SUICUNE_3 ; c6
const SFX_DITTO_BOUNCE const SFX_DITTO_BOUNCE ; c7
const SFX_INTRO_SUICUNE_4 const SFX_INTRO_SUICUNE_4 ; c8
const SFX_GAME_FREAK_PRESENTS const SFX_GAME_FREAK_PRESENTS ; c9
const SFX_TINGLE const SFX_TINGLE ; ca
const SFX_UNKNOWN_CB const SFX_UNKNOWN_CB ; cb
const SFX_TWO_PC_BEEPS const SFX_TWO_PC_BEEPS ; cc
const SFX_4_NOTE_DITTY const SFX_4_NOTE_DITTY ; cd
const SFX_TWINKLE const SFX_TWINKLE ; ce

View File

@@ -36,7 +36,7 @@ const_value SET 1
const TILESET_ICE_PATH ; 1d const TILESET_ICE_PATH ; 1d
const TILESET_WHIRL_ISLANDS ; 1e const TILESET_WHIRL_ISLANDS ; 1e
const TILESET_ILEX_FOREST ; 1f const TILESET_ILEX_FOREST ; 1f
const TILESET_20 ; 20 const TILESET_32 ; 20
const TILESET_HO_OH_WORD_ROOM ; 21 const TILESET_HO_OH_WORD_ROOM ; 21
const TILESET_KABUTO_WORD_ROOM ; 22 const TILESET_KABUTO_WORD_ROOM ; 22
const TILESET_OMANYTE_WORD_ROOM ; 23 const TILESET_OMANYTE_WORD_ROOM ; 23

View File

@@ -120,7 +120,7 @@ Function8c2cf: ; 8c2cf
ld [rSVBK], a ld [rSVBK], a
push hl push hl
ld hl, wDecompressScratch ld hl, wDecompressScratch
ld bc, $28 * $10 ld bc, $28 tiles
.loop .loop
ld [hl], -1 ld [hl], -1
@@ -568,7 +568,7 @@ StartTrainerBattle_SpeckleToBlack: ; 8c58f (23:458f)
StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc) StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
ld a, [OtherTrainerClass] ld a, [OtherTrainerClass]
and a and a
jp z, .nextscene jp z, .nextscene ; don't need to be here if wild
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
@@ -579,6 +579,7 @@ StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
jr .enter_loop_midway jr .enter_loop_midway
.loop .loop
; set all pals to 7
ld a, [hl] ld a, [hl]
or %00000111 or %00000111
ld [hli], a ld [hli], a
@@ -588,7 +589,7 @@ StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
dec b dec b
jr nz, .loop jr nz, .loop
call .loadpokeballgfx ; load a, [OtherTrainerClass] \ ld de, PokeBallTransition call .loadpokeballgfx ; ld a, [OtherTrainerClass] \ ld de, PokeBallTransition \ ret
hlcoord 2, 1 hlcoord 2, 1
ld b, SCREEN_WIDTH - 4 ld b, SCREEN_WIDTH - 4
@@ -605,7 +606,7 @@ StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
jr z, .done jr z, .done
sla a sla a
jr nc, .no_load jr nc, .no_load
ld [hl], $fe ; "8" ld [hl], $fe
.no_load .no_load
inc hl inc hl
jr .loop4 jr .loop4
@@ -650,12 +651,12 @@ StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
ld [rSVBK], a ld [rSVBK], a
call .copypals call .copypals
push hl push hl
ld de, UnknBGPals + 8 * 7 ld de, UnknBGPals + 7 palettes
ld bc, $8 ld bc, 1 palettes
call CopyBytes call CopyBytes
pop hl pop hl
ld de, BGPals + 8 * 7 ld de, BGPals + 7 palettes
ld bc, $8 ld bc, 1 palettes
call CopyBytes call CopyBytes
pop af pop af
ld [rSVBK], a ld [rSVBK], a
@@ -669,21 +670,21 @@ StartTrainerBattle_LoadPokeBallGraphics: ; 8c5dc (23:45dc)
ret ret
.copypals: ; 8c677 (23:4677) .copypals: ; 8c677 (23:4677)
ld de, UnknBGPals + 8 * 7 ld de, UnknBGPals + 7 palettes
call .copy call .copy
ld de, BGPals + 8 * 7 ld de, BGPals + 7 palettes
call .copy call .copy
ld de, UnknOBPals + 8 * 6 ld de, UnknOBPals + 6 palettes
call .copy call .copy
ld de, OBPals + 8 * 6 ld de, OBPals + 6 palettes
call .copy call .copy
ld de, UnknOBPals + 8 * 7 ld de, UnknOBPals + 7 palettes
call .copy call .copy
ld de, OBPals + 8 * 7 ld de, OBPals + 7 palettes
.copy: ; 8c698 (23:4698) .copy: ; 8c698 (23:4698)
push hl push hl
ld bc, $8 ld bc, 1 palettes
call CopyBytes call CopyBytes
pop hl pop hl
ret ret

View File

@@ -4,7 +4,7 @@ ReturnFromMapSetupScript:: ; b8000
; For some reson, GameFreak chose to use a callba here instead of just falling through. ; For some reson, GameFreak chose to use a callba here instead of just falling through.
; No other function in the game references the function at 2E:400A, here labeled ; No other function in the game references the function at 2E:400A, here labeled
; ReturnFromMapSetupScript.inefficientcallba. ; ReturnFromMapSetupScript.inefficientcallba.
callba .inefficientcallba ; this is a waste of 6 ROM bytes and 2 stack bytes callba .inefficientcallba ; this is a waste of 6 ROM bytes and 6 stack bytes
ret ret
; b800a ; b800a

View File

@@ -139,7 +139,7 @@ GetMart: ; 15b31
ld a, e ld a, e
cp (MartsEnd - Marts) / 2 cp (MartsEnd - Marts) / 2
jr c, .IsAMart jr c, .IsAMart
ld b, $5 ld b, BANK(DefaultMart)
ld de, DefaultMart ld de, DefaultMart
ret ret
@@ -151,7 +151,7 @@ endr
ld e, [hl] ld e, [hl]
inc hl inc hl
ld d, [hl] ld d, [hl]
ld b, $5 ld b, BANK(Marts)
ret ret
; 15b47 ; 15b47

View File

@@ -971,7 +971,7 @@ BoxNameInputLower:
db "1 2 3 4 5 6 7 8 9" db "1 2 3 4 5 6 7 8 9"
db "UPPER DEL END " db "UPPER DEL END "
NameInputUpper: ; Unreferenced? NameInputUpper:
db "A B C D E F G H I" db "A B C D E F G H I"
db "J K L M N O P Q R" db "J K L M N O P Q R"
db "S T U V W X Y Z " db "S T U V W X Y Z "

View File

@@ -446,7 +446,7 @@ DoPlayerMovement:: ; 80000
db $70, $78, $76, $7e db $70, $78, $76, $7e
; 8025f ; 8025f
.DoStep: ; 8025f .DoStep
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, .Steps ld hl, .Steps

2
extras

Submodule extras updated: 3a6ef54a5e...adbc204d74

View File

@@ -569,7 +569,7 @@ LoadEDTile:: ; 323d
jr .LoadEDTile jr .LoadEDTile
; 323f ; 323f
.unreferenced_323f ; 323f ; XXX
callba Function104000 callba Function104000
ret ret
; 3246 ; 3246
@@ -661,18 +661,18 @@ SetPalettes:: ; 32f9
ld a, [hCGB] ld a, [hCGB]
and a and a
jr nz, .SetPalettesForGameBoyColor jr nz, .SetPalettesForGameBoyColor
ld a, $e4 ld a, %11100100
ld [rBGP], a ld [rBGP], a
ld a, $d0 ld a, %11010000
ld [rOBP0], a ld [rOBP0], a
ld [rOBP1], a ld [rOBP1], a
ret ret
.SetPalettesForGameBoyColor .SetPalettesForGameBoyColor
push de push de
ld a, $e4 ld a, %11100100
call DmgToCgbBGPals call DmgToCgbBGPals
ld de, $e4e4 lb de, %11100100, %11100100
call DmgToCgbObjPals call DmgToCgbObjPals
pop de pop de
ret ret
@@ -702,7 +702,7 @@ ClearPalettes:: ; 3317
; Fill BGPals and OBPals with $ffff (white) ; Fill BGPals and OBPals with $ffff (white)
ld hl, BGPals ld hl, BGPals
ld bc, $80 ld bc, 16 palettes
ld a, $ff ld a, $ff
call ByteFill call ByteFill

View File

@@ -403,7 +403,7 @@ endr
jr c, .not_kurt_ball jr c, .not_kurt_ball
ld a, POKE_BALL ld a, POKE_BALL
.not_kurt_ball .not_kurt_ball
ld [wKickCounter], a ld [wBattleAnimParam], a
ld de, ANIM_THROW_POKE_BALL ld de, ANIM_THROW_POKE_BALL
ld a, e ld a, e
@@ -2955,7 +2955,7 @@ UseBallInTrainerBattle: ; f7a0
ld a, d ld a, d
ld [FXAnimIDHi], a ld [FXAnimIDHi], a
xor a xor a
ld [wKickCounter], a ld [wBattleAnimParam], a
ld [hBattleTurn], a ld [hBattleTurn], a
ld [wNumHits], a ld [wNumHits], a
predef PlayBattleAnim predef PlayBattleAnim

564
main.asm

File diff suppressed because it is too large Load Diff

View File

@@ -44,7 +44,7 @@ UnknownScript_0x7a4f6:
scall UnknownScript_0x7a57e scall UnknownScript_0x7a57e
setflag ENGINE_POKEGEAR setflag ENGINE_POKEGEAR
setflag ENGINE_PHONE_CARD setflag ENGINE_PHONE_CARD
addcellnum $1 addcellnum PHONE_MOM
dotrigger $1 dotrigger $1
setevent EVENT_KRISS_HOUSE_MOM_1 setevent EVENT_KRISS_HOUSE_MOM_1
clearevent EVENT_KRISS_HOUSE_MOM_2 clearevent EVENT_KRISS_HOUSE_MOM_2

View File

@@ -190,7 +190,7 @@ sHallOfFame:: ; b2c0
; endr ; endr
sHallOfFameEnd:: sHallOfFameEnd::
sMobileEventIndex:: ds 1 sMobileEventIndex:: ds 1 ; be3c
sCrystalData:: sCrystalData::
ds wCrystalDataEnd - wCrystalData ds wCrystalDataEnd - wCrystalData

View File

@@ -391,12 +391,12 @@ BattleMon:: battle_struct BattleMon ; c62c
ds 2 ds 2
wWildMon:: ds 1 wWildMon:: ds 1 ; c64e
ds 1 ds 1
wEnemyTrainerItem1:: ds 1 wEnemyTrainerItem1:: ds 1 ; c650
wEnemyTrainerItem2:: ds 1 wEnemyTrainerItem2:: ds 1 ; c651
wEnemyTrainerBaseReward:: ds 1 wEnemyTrainerBaseReward:: ds 1 ; c652
wEnemyTrainerAIFlags:: ds 3 wEnemyTrainerAIFlags:: ds 3 ; c653
OTClassName:: ds NAME_LENGTH ; c656 OTClassName:: ds NAME_LENGTH ; c656
ds 2 ds 2
@@ -1875,11 +1875,11 @@ wd182:: ds 1
wd191:: ds 1 wd191:: ds 1
wd192:: ds 1 wd192:: ds 1
wd193:: ds 1 wd193:: ds 1
wOverworldMapAnchor:: dw wOverworldMapAnchor:: dw ; d194
wMetatileStandingY:: ds 1 wMetatileStandingY:: ds 1 ; d196
wMetatileStandingX:: ds 1 wMetatileStandingX:: ds 1 ; d197
wSecondMapHeaderBank:: ds 1 wSecondMapHeaderBank:: ds 1 ; d198
wTileset:: ds 1 wTileset:: ds 1 ; d199
wPermission:: ds 1 ; d19a wPermission:: ds 1 ; d19a
wSecondMapHeaderAddr:: dw ; d19b wSecondMapHeaderAddr:: dw ; d19b
@@ -2256,25 +2256,25 @@ wScriptTextBank::
wPriorityScriptAddr:: wPriorityScriptAddr::
wScriptTextAddr:: ds 2 ; d44f wScriptTextAddr:: ds 2 ; d44f
ds 1 ds 1
wWildEncounterCooldown:: ds 1 wWildEncounterCooldown:: ds 1 ; d452
wXYComparePointer:: ds 2 wXYComparePointer:: ds 2 ; d453
ds 4 ds 4
wBattleScriptFlags:: ds 2 wBattleScriptFlags:: ds 2 ; d459
wPlayerSpriteSetupFlags:: ds 1 wPlayerSpriteSetupFlags:: ds 1 ; d45b
; bit 7: if set, cancel PlayerAction ; bit 7: if set, cancel PlayerAction
; bit 5: if set, set facing according to bits 0-1 ; bit 5: if set, set facing according to bits 0-1
; bits 0-1: direction facing ; bits 0-1: direction facing
wMapReentryScriptQueueFlag:: ds 1 ; MemScriptFlag wMapReentryScriptQueueFlag:: ds 1 ; d45c MemScriptFlag
wMapReentryScriptBank:: ds 1 ; MemScriptBank wMapReentryScriptBank:: ds 1 ; d45d MemScriptBank
wMapReentryScriptAddress:: ds 2 ; MemScriptAddr wMapReentryScriptAddress:: ds 2 ; d45e MemScriptAddr
ds 4 ; ????????????? ds 4 ; ?????????????
wTimeCyclesSinceLastCall:: ds 1 wTimeCyclesSinceLastCall:: ds 1 ; d464
wReceiveCallDelay_MinsRemaining:: ds 1 wReceiveCallDelay_MinsRemaining:: ds 1 ; d465
wReceiveCallDelay_StartTime:: ds 3 wReceiveCallDelay_StartTime:: ds 3 ; d466
ds 3 ds 3
wBugContestMinsRemaining:: ds 1 wBugContestMinsRemaining:: ds 1 ; d46c
wBugContestSecsRemaining:: ds 1 wBugContestSecsRemaining:: ds 1 ; d46d
ds 2 ds 2
wMapStatusEnd:: ds 2 ; d470 wMapStatusEnd:: ds 2 ; d470
@@ -2753,7 +2753,7 @@ wLuckyNumberDayBuffer:: ds 2
ds 2 ds 2
wSpecialPhoneCallID:: ds 1 wSpecialPhoneCallID:: ds 1
ds 3 ds 3
wBugContestStartTime:: ds 4 ; day, hour, min, sec wBugContestStartTime:: ds 4 ; day, hour, min, sec ; dc35
wUnusedTwoDayTimerOn:: ds 1 ; dc39 wUnusedTwoDayTimerOn:: ds 1 ; dc39
wUnusedTwoDayTimer:: ds 1 wUnusedTwoDayTimer:: ds 1
wUnusedTwoDayTimerStartDate:: ds 1 wUnusedTwoDayTimerStartDate:: ds 1