Merge pull request #496 from Rangi42/master

Label more map scripts; document more bugs [ready to merge]
This commit is contained in:
yenatch 2018-03-10 16:16:03 -05:00 committed by GitHub
commit 12070ca500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
219 changed files with 2157 additions and 2058 deletions

View File

@ -283,13 +283,14 @@ NUM_TMS = const_value - TM01 - 2 ; discount ITEM_C3 and ITEM_DC
add_hm WHIRLPOOL ; f8 add_hm WHIRLPOOL ; f8
add_hm WATERFALL ; f9 add_hm WATERFALL ; f9
NUM_HMS = const_value - HM01 NUM_HMS = const_value - HM01
const ITEM_FA ; fa
add_mt FLAMETHROWER add_mt FLAMETHROWER
add_mt THUNDERBOLT add_mt THUNDERBOLT
add_mt ICE_BEAM add_mt ICE_BEAM
NUM_TM_HM_TUTOR = __enum__ + -1 NUM_TM_HM_TUTOR = __enum__ + -1
const ITEM_FA ; fa
USE_SCRIPT_VAR EQU $00 USE_SCRIPT_VAR EQU $00
ITEM_FROM_MEM EQU $ff ITEM_FROM_MEM EQU $ff

View File

@ -37,6 +37,9 @@ MAX_LINK_RECORD EQU 9999
; day-care ; day-care
MAX_DAY_CARE_EXP EQU $500000 MAX_DAY_CARE_EXP EQU $500000
; hall of fame
HOF_MASTER_COUNT EQU 200
; bug-catching contest ; bug-catching contest
BUG_CONTEST_MINUTES EQU 20 BUG_CONTEST_MINUTES EQU 20
BUG_CONTEST_SECONDS EQU 0 BUG_CONTEST_SECONDS EQU 0

View File

@ -16,6 +16,7 @@ CURRENT_MAP_HEIGHT = \2_HEIGHT
db \4 db \4
ENDM ENDM
; Connections go in order: north, south, west, east
connection: MACRO connection: MACRO
;\1: direction ;\1: direction
;\2: map name ;\2: map name

View File

@ -28,7 +28,7 @@ BillPhoneNiteGreetingText: ; 0x1b44b5
line "SERVICE." line "SERVICE."
done done
BillPhoneGeneriText: ; 0x1b44fe BillPhoneGenericText: ; 0x1b44fe
text "Who's calling?" text "Who's calling?"
para "<PLAY_G>, is it?" para "<PLAY_G>, is it?"

View File

@ -8,6 +8,18 @@ INCLUDE "data/pokemon/evos_attacks_pointers.asm"
EvosAttacks:: EvosAttacks::
; Evos+attacks data structure:
; - Evolution methods:
; * db EVOLVE_LEVEL, level, species
; * db EVOLVE_ITEM, used item, species
; * db EVOLVE_TRADE, held item (or -1 for none), species
; * db EVOLVE_HAPPINESS, TR_* constant (ANYTIME, MORNDAY, NITE), species
; * db EVOLVE_STAT, level, ATK_*_DEF constant (LT, GT, EQ), species
; - db 0 ; no more evolutions
; - Learnset (in increasing level order):
; * db level, move
; - db 0 ; no more level-up moves
BulbasaurEvosAttacks: BulbasaurEvosAttacks:
db EVOLVE_LEVEL, 16, IVYSAUR db EVOLVE_LEVEL, 16, IVYSAUR
@ -831,7 +843,7 @@ AbraEvosAttacks:
db 0 ; no more level-up moves db 0 ; no more level-up moves
KadabraEvosAttacks: KadabraEvosAttacks:
db EVOLVE_TRADE, $ff, ALAKAZAM db EVOLVE_TRADE, -1, ALAKAZAM
db 0 ; no more evolutions db 0 ; no more evolutions
db 1, TELEPORT db 1, TELEPORT
db 1, KINESIS db 1, KINESIS
@ -875,7 +887,7 @@ MachopEvosAttacks:
db 0 ; no more level-up moves db 0 ; no more level-up moves
MachokeEvosAttacks: MachokeEvosAttacks:
db EVOLVE_TRADE, $ff, MACHAMP db EVOLVE_TRADE, -1, MACHAMP
db 0 ; no more evolutions db 0 ; no more evolutions
db 1, LOW_KICK db 1, LOW_KICK
db 1, LEER db 1, LEER
@ -989,7 +1001,7 @@ GeodudeEvosAttacks:
db 0 ; no more level-up moves db 0 ; no more level-up moves
GravelerEvosAttacks: GravelerEvosAttacks:
db EVOLVE_TRADE, $ff, GOLEM db EVOLVE_TRADE, -1, GOLEM
db 0 ; no more evolutions db 0 ; no more evolutions
db 1, TACKLE db 1, TACKLE
db 1, DEFENSE_CURL db 1, DEFENSE_CURL
@ -1248,7 +1260,7 @@ GastlyEvosAttacks:
db 0 ; no more level-up moves db 0 ; no more level-up moves
HaunterEvosAttacks: HaunterEvosAttacks:
db EVOLVE_TRADE, $ff, GENGAR db EVOLVE_TRADE, -1, GENGAR
db 0 ; no more evolutions db 0 ; no more evolutions
db 1, HYPNOSIS db 1, HYPNOSIS
db 1, LICK db 1, LICK

View File

@ -1,12 +1,12 @@
Trainers: Trainers:
; Trainer data structure: ; Trainer data structure:
; db "NAME@", TRAINERTYPE_* constant ; - db "NAME@", TRAINERTYPE_* constant
; 1 to 6 Pokémon: ; - 1 to 6 Pokémon:
; * for TRAINERTYPE_NORMAL: db level, species ; * for TRAINERTYPE_NORMAL: db level, species
; * for TRAINERTYPE_ITEM: db level, species, item ; * for TRAINERTYPE_ITEM: db level, species, item
; * for TRAINERTYPE_MOVES: db level, species, 4 moves ; * for TRAINERTYPE_MOVES: db level, species, 4 moves
; * for TRAINERTYPE_ITEM_MOVES: db level, species, item, 4 moves ; * for TRAINERTYPE_ITEM_MOVES: db level, species, item, 4 moves
; db -1 ; end ; - db -1 ; end
FalknerGroup: FalknerGroup:

View File

@ -33,6 +33,7 @@ These are known bugs and glitches in the original Pokémon Crystal game: code th
- [Magikarp length limits have a unit conversion error](#magikarp-length-limits-have-a-unit-conversion-error) - [Magikarp length limits have a unit conversion error](#magikarp-length-limits-have-a-unit-conversion-error)
- [Magikarp lengths can be miscalculated](#magikarp-lengths-can-be-miscalculated) - [Magikarp lengths can be miscalculated](#magikarp-lengths-can-be-miscalculated)
- [Battle transitions fail to account for the enemy's level](#battle-transitions-fail-to-account-for-the-enemys-level) - [Battle transitions fail to account for the enemy's level](#battle-transitions-fail-to-account-for-the-enemys-level)
- [A "HOF Master!" title for 200-Time Famers is defined but inaccessible](#a-hof-master-title-for-200-time-famers-is-defined-but-inaccessible)
- [Slot machine payout sound effects cut each other off](#slot-machine-payout-sound-effects-cut-each-other-off) - [Slot machine payout sound effects cut each other off](#slot-machine-payout-sound-effects-cut-each-other-off)
- [Team Rocket battle music is not used for Executives or Scientists](#team-rocket-battle-music-is-not-used-for-executives-or-scientists) - [Team Rocket battle music is not used for Executives or Scientists](#team-rocket-battle-music-is-not-used-for-executives-or-scientists)
- [No bump noise if standing on tile `$3E`](#no-bump-noise-if-standing-on-tile-3e) - [No bump noise if standing on tile `$3E`](#no-bump-noise-if-standing-on-tile-3e)
@ -47,6 +48,7 @@ These are known bugs and glitches in the original Pokémon Crystal game: code th
- [Using a Park Ball in normal battles has a corrupt animation](#using-a-park-ball-in-normal-battles-has-a-corrupt-animation) - [Using a Park Ball in normal battles has a corrupt animation](#using-a-park-ball-in-normal-battles-has-a-corrupt-animation)
- [`HELD_CATCH_CHANCE` has no effect](#held_catch_chance-has-no-effect) - [`HELD_CATCH_CHANCE` has no effect](#held_catch_chance-has-no-effect)
- [Only the first three `EvosAttacks` evolution entries can have Stone compatibility reported correctly](#only-the-first-three-evosattacks-evolution-entries-can-have-stone-compatibility-reported-correctly) - [Only the first three `EvosAttacks` evolution entries can have Stone compatibility reported correctly](#only-the-first-three-evosattacks-evolution-entries-can-have-stone-compatibility-reported-correctly)
- [`EVOLVE_STAT` can break Stone compatibility reporting](#evolve_stat-can-break-stone-compatibility-reporting)
- [`ScriptCall` can overflow `wScriptStack` and crash](#scriptcall-can-overflow-wscriptstack-and-crash) - [`ScriptCall` can overflow `wScriptStack` and crash](#scriptcall-can-overflow-wscriptstack-and-crash)
- [`LoadSpriteGFX` does not limit the capacity of `UsedSprites`](#loadspritegfx-does-not-limit-the-capacity-of-usedsprites) - [`LoadSpriteGFX` does not limit the capacity of `UsedSprites`](#loadspritegfx-does-not-limit-the-capacity-of-usedsprites)
- [`ChooseWildEncounter` doesn't really validate the wild Pokémon species](#choosewildencounter-doesnt-really-validate-the-wild-pokémon-species) - [`ChooseWildEncounter` doesn't really validate the wild Pokémon species](#choosewildencounter-doesnt-really-validate-the-wild-pokémon-species)
@ -897,6 +899,26 @@ StartTrainerBattle_DetermineWhichAnimation: ; 8c365 (23:4365)
*To do:* Fix this bug. *To do:* Fix this bug.
## A "HOF Master!" title for 200-Time Famers is defined but inaccessible
([Video](https://www.youtube.com/watch?v=iHkWubvxmSg))
This is a bug with `_HallOfFamePC.DisplayMonAndStrings` in [engine/events/halloffame.asm](/engine/events/halloffame.asm):
```asm
ld a, [wHallOfFameTempWinCount]
cp HOF_MASTER_COUNT + 1 ; should be HOF_MASTER_COUNT
jr c, .print_num_hof
ld de, .HOFMaster
hlcoord 1, 2
call PlaceString
hlcoord 13, 2
jr .finish
```
**Fix:** Change `HOF_MASTER_COUNT + 1` to `HOF_MASTER_COUNT`.
## Slot machine payout sound effects cut each other off ## Slot machine payout sound effects cut each other off
([Video](https://www.youtube.com/watch?v=ojq3xqfRF6I)) ([Video](https://www.youtube.com/watch?v=ojq3xqfRF6I))
@ -1280,6 +1302,39 @@ This is a bug with `PlacePartyMonEvoStoneCompatibility.DetermineCompatibility` i
**Fix:** Change `ld bc, 10` to `ld bc, wStringBuffer2 - wStringBuffer1` to support up to six Stone entries. **Fix:** Change `ld bc, 10` to `ld bc, wStringBuffer2 - wStringBuffer1` to support up to six Stone entries.
## `EVOLVE_STAT` can break Stone compatibility reporting
This is a bug with `PlacePartyMonEvoStoneCompatibility.DetermineCompatibility` in [engine/party_menu.asm](/engine/party_menu.asm):
```asm
.loop2
ld a, [hli]
and a
jr z, .nope
inc hl
inc hl
cp EVOLVE_ITEM
jr nz, .loop2
```
**Fix:**
```asm
.loop2
ld a, [hli]
and a
jr z, .nope
cp EVOLVE_STAT
jr nz, .not_four_bytes
inc hl
.not_four_bytes
inc hl
inc hl
cp EVOLVE_ITEM
jr nz, .loop2
```
## `ScriptCall` can overflow `wScriptStack` and crash ## `ScriptCall` can overflow `wScriptStack` and crash
In [engine/scripting.asm](/engine/scripting.asm): In [engine/scripting.asm](/engine/scripting.asm):

View File

@ -220,8 +220,8 @@ RestartClock: ; 20021 (8:4021)
ret ret
; 20160 (8:4160) ; 20160 (8:4160)
; unused
.unreferenced ; 20160 .unreferenced ; 20160
; unused
ld a, [wBuffer3] ld a, [wBuffer3]
ld b, a ld b, a
call Coord2Tile call Coord2Tile
@ -243,10 +243,12 @@ RestartClock: ; 20021 (8:4021)
ret ret
; 2017c (8:417c) ; 2017c (8:417c)
String_2017c: ; 2017c UnreferencedString_HourJP: ; 2017c
; unused
db "じ@" ; HR db "じ@" ; HR
; 2017e ; 2017e
String_2017e: ; 2017e UnreferencedString_MinuteJP: ; 2017e
; unused
db "ふん@" ; MIN db "ふん@" ; MIN
; 20181 ; 20181

View File

@ -482,11 +482,11 @@ IntroScene1: ; e495b (39:495b)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -555,11 +555,11 @@ IntroScene3: ; e49fd (39:49fd)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -621,11 +621,11 @@ IntroScene5: ; e4a7a (39:4a7a)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -728,12 +728,12 @@ IntroScene7: ; e4b3f (39:4b3f)
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -886,11 +886,11 @@ IntroScene11: ; e4c86 (39:4c86)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_365ad ld hl, IntroPalette2
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -1013,11 +1013,11 @@ IntroScene13: ; e4d6d (39:4d6d)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e5edd ld hl, IntroPalette1
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -1122,11 +1122,11 @@ IntroScene15: ; e4e40 (39:4e40)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e77dd ld hl, IntroPalette5
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e77dd ld hl, IntroPalette5
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -1196,11 +1196,11 @@ IntroScene17: ; e4ef5 (39:4ef5)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e6d6d ld hl, IntroPalette4
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e6d6d ld hl, IntroPalette4
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -1270,11 +1270,11 @@ IntroScene19: ; e4f7e (39:4f7e)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e77dd ld hl, IntroPalette5
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e77dd ld hl, IntroPalette5
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -1440,11 +1440,11 @@ IntroScene26: ; e50bb (39:50bb)
push af push af
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_e679d ld hl, IntroPalette3
ld de, wBGPals1 ld de, wBGPals1
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld hl, Palette_e679d ld hl, IntroPalette3
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
@ -2086,7 +2086,7 @@ IntroTilemap003: ; e5ecd
INCBIN "gfx/intro/003.tilemap.lz" INCBIN "gfx/intro/003.tilemap.lz"
; e5edd ; e5edd
Palette_e5edd: ; e5edd IntroPalette1: ; e5edd
INCLUDE "gfx/intro/intro_1.pal" INCLUDE "gfx/intro/intro_1.pal"
; e5f5d ; e5f5d
@ -2122,7 +2122,7 @@ IntroTilemap007: ; e655d
INCBIN "gfx/intro/007.tilemap.lz" INCBIN "gfx/intro/007.tilemap.lz"
; e65ad ; e65ad
Palette_365ad: ; e65ad IntroPalette2: ; e65ad
INCLUDE "gfx/intro/intro_2.pal" INCLUDE "gfx/intro/intro_2.pal"
; e662d ; e662d
@ -2138,7 +2138,7 @@ IntroTilemap015: ; e676d
INCBIN "gfx/intro/015.tilemap.lz" INCBIN "gfx/intro/015.tilemap.lz"
; e679d ; e679d
Palette_e679d: ; e679d IntroPalette3: ; e679d
INCLUDE "gfx/intro/intro_3.pal" INCLUDE "gfx/intro/intro_3.pal"
; e681d ; e681d
@ -2154,7 +2154,7 @@ IntroTilemap011: ; e6d0d
INCBIN "gfx/intro/011.tilemap.lz" INCBIN "gfx/intro/011.tilemap.lz"
; e6d6d ; e6d6d
Palette_e6d6d: ; e6d6d IntroPalette4: ; e6d6d
INCLUDE "gfx/intro/intro_4.pal" INCLUDE "gfx/intro/intro_4.pal"
; e6ded ; e6ded
@ -2182,7 +2182,7 @@ IntroTilemap013: ; e778d
INCBIN "gfx/intro/013.tilemap.lz" INCBIN "gfx/intro/013.tilemap.lz"
; e77dd ; e77dd
Palette_e77dd: ; e77dd IntroPalette5: ; e77dd
INCLUDE "gfx/intro/intro_5.pal" INCLUDE "gfx/intro/intro_5.pal"
IntroUnownBackGFX: ; e785d IntroUnownBackGFX: ; e785d

View File

@ -54,7 +54,7 @@ MG_Mobile_Layout_WipeAttrMap: ; 49346 (12:5346)
MG_Mobile_Layout_LoadPals: ; 49351 (12:5351) MG_Mobile_Layout_LoadPals: ; 49351 (12:5351)
ld de, wBGPals1 ld de, wBGPals1
ld hl, Palette_493e1 ld hl, Palette_MysteryGiftMobile
ld bc, 5 palettes ld bc, 5 palettes
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
call FarCopyWRAM call FarCopyWRAM
@ -111,7 +111,7 @@ MG_Mobile_Layout_CreatePalBoxes: ; 49384 (12:5384)
ret ret
; 493e1 (12:53e1) ; 493e1 (12:53e1)
Palette_493e1: ; 493e1 Palette_MysteryGiftMobile: ; 493e1
INCLUDE "gfx/mystery_gift/mg_mobile.pal" INCLUDE "gfx/mystery_gift/mg_mobile.pal"
; 49409 ; 49409

View File

@ -181,13 +181,13 @@ Function819a7: ; 819a7
push af push af
ld a, BANK(wBGPals2) ld a, BANK(wBGPals2)
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_819f4 ld hl, Palette_DebugBG
ld de, wBGPals2 ld de, wBGPals2
ld bc, 16 palettes ld bc, 16 palettes
call CopyBytes call CopyBytes
ld a, 1 << rBGPI_AUTO_INCREMENT ld a, 1 << rBGPI_AUTO_INCREMENT
ld [rBGPI], a ld [rBGPI], a
ld hl, Palette_819f4 ld hl, Palette_DebugBG
ld c, 8 palettes ld c, 8 palettes
xor a xor a
.asm_819c8 .asm_819c8
@ -196,7 +196,7 @@ Function819a7: ; 819a7
jr nz, .asm_819c8 jr nz, .asm_819c8
ld a, 1 << rOBPI_AUTO_INCREMENT ld a, 1 << rOBPI_AUTO_INCREMENT
ld [rOBPI], a ld [rOBPI], a
ld hl, Palette_81a34 ld hl, Palette_DebugOB
ld c, 8 palettes ld c, 8 palettes
.asm_819d6 .asm_819d6
ld a, [hli] ld a, [hli]
@ -216,10 +216,10 @@ Function819a7: ; 819a7
ret ret
; 819f4 ; 819f4
Palette_819f4: ; 819f4 Palette_DebugBG: ; 819f4
INCLUDE "gfx/debug/bg.pal" INCLUDE "gfx/debug/bg.pal"
Palette_81a34: ; 81a34 Palette_DebugOB: ; 81a34
INCLUDE "gfx/debug/ob.pal" INCLUDE "gfx/debug/ob.pal"
; 81a74 ; 81a74

View File

@ -1334,7 +1334,7 @@ BattleTowerAction_EggTicket: ; 17093c (5c:493c) BattleTowerAction $0e
dec a dec a
jr nz, .loop2 jr nz, .loop2
.skip .skip
ld de, String_1709a4 ld de, String_MysteryJP
ld a, NAME_LENGTH_JAPANESE ld a, NAME_LENGTH_JAPANESE
.compare_loop .compare_loop
push af push af
@ -1375,8 +1375,8 @@ endr
ret ret
; 1709a4 (5c:49a4) ; 1709a4 (5c:49a4)
String_1709a4: ; 1709a4 String_MysteryJP: ; 1709a4
db "なぞナゾ@@" db "なぞナゾ@@" ; MYSTERY
Function1709aa: ; 1709aa (5c:49aa) BattleTowerAction $0f Function1709aa: ; 1709aa (5c:49aa) BattleTowerAction $0f
ld a, [rSVBK] ld a, [rSVBK]
@ -1400,7 +1400,7 @@ Function1709bb: ; 1709bb (5c:49bb) BattleTowerAction $10
jr nc, .invalid jr nc, .invalid
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, Jumptable_1709e7 ld hl, .jumptable
add hl, de add hl, de
add hl, de add hl, de
ld a, [hli] ld a, [hli]
@ -1417,7 +1417,7 @@ Function1709bb: ; 1709bb (5c:49bb) BattleTowerAction $10
ret ret
; 1709e7 (5c:49e7) ; 1709e7 (5c:49e7)
Jumptable_1709e7: ; 1709e7 .jumptable: ; 1709e7
dw .NoAction dw .NoAction
dw .NoAction dw .NoAction
dw .DoAction1 dw .DoAction1
@ -1519,11 +1519,11 @@ Jumptable_1709e7: ; 1709e7
; 170a9c ; 170a9c
Function170a9c: ; 170a9c (5c:4a9c) BattleTowerAction $11 Function170a9c: ; 170a9c (5c:4a9c) BattleTowerAction $11
ld c, $0 ld c, FALSE
jr asm_170aa2 jr asm_170aa2
Function170aa0: ; 170aa0 (5c:4aa0) BattleTowerAction $12 Function170aa0: ; 170aa0 (5c:4aa0) BattleTowerAction $12
ld c, $1 ld c, TRUE
asm_170aa2: ; 170aa2 (5c:4aa2) asm_170aa2: ; 170aa2 (5c:4aa2)
ld a, $5 ld a, $5
call GetSRAMBank call GetSRAMBank

View File

@ -35,5 +35,5 @@ _CardKey: ; 50779
.CardKeyScript: ; 0x507af .CardKeyScript: ; 0x507af
closetext closetext
farjump MapRadioTower3FSignpost2Script farjump CardKeySlotScript
; 0x507b4 ; 0x507b4

View File

@ -18,7 +18,7 @@ HallOfFame:: ; 0x8640e
ld hl, wHallOfFameCount ld hl, wHallOfFameCount
ld a, [hl] ld a, [hl]
cp 200 cp HOF_MASTER_COUNT
jr nc, .ok jr nc, .ok
inc [hl] inc [hl]
.ok .ok
@ -355,7 +355,7 @@ _HallOfFamePC: ; 86650
.DisplayMonAndStrings: .DisplayMonAndStrings:
; Print the number of times the player has entered the Hall of Fame. ; Print the number of times the player has entered the Hall of Fame.
; If that number is above 200, print "HOF Master!" instead. ; If that number is at least HOF_MASTER_COUNT, print "HOF Master!" instead.
ld a, [wHallOfFameMonCounter] ld a, [wHallOfFameMonCounter]
cp PARTY_LENGTH cp PARTY_LENGTH
jr nc, .fail jr nc, .fail
@ -376,7 +376,7 @@ _HallOfFamePC: ; 86650
pop hl pop hl
call DisplayHOFMon call DisplayHOFMon
ld a, [wHallOfFameTempWinCount] ld a, [wHallOfFameTempWinCount]
cp 200 + 1 cp HOF_MASTER_COUNT + 1 ; should be HOF_MASTER_COUNT
jr c, .print_num_hof jr c, .print_num_hof
ld de, .HOFMaster ld de, .HOFMaster
hlcoord 1, 2 hlcoord 1, 2

View File

@ -11,7 +11,7 @@ __LoadTradeScreenBorder: ; 16d421
; 16d42e ; 16d42e
Function16d42e: ; 16d42e Function16d42e: ; 16d42e
ld hl, Tilemap_16d465 ld hl, Tilemap_MobileTradeBorderFullscreen
decoord 0, 0 decoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call CopyBytes call CopyBytes
@ -34,13 +34,13 @@ Function16d43b: ; 16d43b
ret ret
; 16d465 ; 16d465
Tilemap_16d465: Tilemap_MobileTradeBorderFullscreen:
INCBIN "gfx/trade/border_mobile_fullscreen.tilemap" INCBIN "gfx/trade/border_mobile_fullscreen.tilemap"
Tilemap_16d5cd: Tilemap_CableTradeBorderTop:
INCBIN "gfx/trade/border_cable_top.tilemap" INCBIN "gfx/trade/border_cable_top.tilemap"
Tilemap_16d5f5: Tilemap_CableTradeBorderBottom:
INCBIN "gfx/trade/border_cable_bottom.tilemap" INCBIN "gfx/trade/border_cable_bottom.tilemap"
_LinkTextbox: ; 16d61d _LinkTextbox: ; 16d61d
@ -152,11 +152,11 @@ LoadTradeRoomBGPals_: ; 16d6a7
Function16d6ae: ; 16d6ae Function16d6ae: ; 16d6ae
call Function16d42e call Function16d42e
ld hl, Tilemap_16d5cd ld hl, Tilemap_CableTradeBorderTop
decoord 0, 0 decoord 0, 0
ld bc, 2 * SCREEN_WIDTH ld bc, 2 * SCREEN_WIDTH
call CopyBytes call CopyBytes
ld hl, Tilemap_16d5f5 ld hl, Tilemap_CableTradeBorderBottom
decoord 0, 16 decoord 0, 16
ld bc, 2 * SCREEN_WIDTH ld bc, 2 * SCREEN_WIDTH
call CopyBytes call CopyBytes

View File

@ -1420,7 +1420,7 @@ Function105688: ; 105688 (41:5688)
call WaitBGMap call WaitBGMap
call Function1057d7 call Function1057d7
hlcoord 3, 8 hlcoord 3, 8
ld de, String_10572e ld de, String_PressAToLink_BToCancel_JP
call PlaceString call PlaceString
call WaitBGMap call WaitBGMap
call Function10578c call Function10578c
@ -1451,9 +1451,9 @@ Function105688: ; 105688 (41:5688)
ld a, c ld a, c
ld [wd265], a ld [wd265], a
ld hl, Text_CardNotRegistered ld hl, Text_CardNotRegistered
jr c, asm_105726 jr c, PrintTextAndExit_JP
ld hl, Text_ListedCardAsNumber ld hl, Text_ListedCardAsNumber
jr asm_105726 jr PrintTextAndExit_JP
Function1056eb: ; 1056eb (41:56eb) Function1056eb: ; 1056eb (41:56eb)
ld c, 16 ld c, 16
@ -1487,7 +1487,7 @@ endr
Function105712: ; 105712 (41:5712) Function105712: ; 105712 (41:5712)
call Function105777 call Function105777
ld hl, Text_MGLinkCanceled ld hl, Text_MGLinkCanceled
jr asm_105726 jr PrintTextAndExit_JP
Function10571a: ; 10571a (41:571a) Function10571a: ; 10571a (41:571a)
call Function105777 call Function105777
@ -1495,18 +1495,18 @@ Function10571a: ; 10571a (41:571a)
call PrintText call PrintText
jp Function105688 jp Function105688
asm_105726: ; 105726 (41:5726) PrintTextAndExit_JP: ; 105726 (41:5726)
call PrintText call PrintText
ld a, LCDC_DEFAULT ld a, LCDC_DEFAULT
ld [rLCDC], a ld [rLCDC], a
ret ret
; 10572e (41:572e) ; 10572e (41:572e)
String_10572e: ; 10572e String_PressAToLink_BToCancel_JP: ; 10572e
db "エーボタン¯おすと" db "エーボタン<WO>おすと"
next "つうしん<PKMN>おこなわれるよ!" next "つうしん<PKMN>おこなわれるよ!"
next "ビーボタン¯おすと" next "ビーボタン<WO>おすと"
next "つうしん¯ちゅうし します" next "つうしん<WO>ちゅうし します"
db "@" db "@"
; 10575e ; 10575e

View File

@ -169,7 +169,7 @@ BillPhoneScript1: ; 0xbcfc5
jump .main jump .main
.main ; 0xbcfe7 .main ; 0xbcfe7
farwritetext BillPhoneGeneriText farwritetext BillPhoneGenericText
buttonsound buttonsound
checkcode VAR_BOXSPACE checkcode VAR_BOXSPACE
vartomem MEM_BUFFER_0 vartomem MEM_BUFFER_0

View File

@ -211,7 +211,8 @@ DisplayDexEntry: ; 4424d
call FarString call FarString
ret ret
String_44331: ; 44331 UnreferencedPOKeString: ; 44331
; unused
db "#@" db "#@"
GetDexEntryPointer: ; 44333 GetDexEntryPointer: ; 44333

View File

@ -1595,7 +1595,7 @@ MoveScreenLoop: ; 12fd5
lb bc, 5, SCREEN_WIDTH - 2 lb bc, 5, SCREEN_WIDTH - 2
call ClearBox call ClearBox
hlcoord 1, 12 hlcoord 1, 12
ld de, String_1316b ld de, String_MoveWhere
call PlaceString call PlaceString
jp .joy_loop jp .joy_loop
.b_button .b_button
@ -1771,7 +1771,7 @@ MoveScreenAttributes: ; 13163
db D_UP | D_DOWN | D_LEFT | D_RIGHT | A_BUTTON | B_BUTTON db D_UP | D_DOWN | D_LEFT | D_RIGHT | A_BUTTON | B_BUTTON
; 1316b ; 1316b
String_1316b: ; 1316b String_MoveWhere: ; 1316b
db "Where?@" db "Where?@"
; 13172 ; 13172
@ -1871,13 +1871,13 @@ PlaceMoveData: ; 13256
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
hlcoord 0, 10 hlcoord 0, 10
ld de, String_132ba ld de, String_MoveType_Top
call PlaceString call PlaceString
hlcoord 0, 11 hlcoord 0, 11
ld de, String_132c2 ld de, String_MoveType_Bottom
call PlaceString call PlaceString
hlcoord 12, 12 hlcoord 12, 12
ld de, String_132ca ld de, String_MoveAtk
call PlaceString call PlaceString
ld a, [wCurMove] ld a, [wCurMove]
ld b, a ld b, a
@ -1900,7 +1900,7 @@ PlaceMoveData: ; 13256
jr .description jr .description
.no_power .no_power
ld de, String_132cf ld de, String_MoveNoPower
call PlaceString call PlaceString
.description .description
@ -1911,16 +1911,16 @@ PlaceMoveData: ; 13256
ret ret
; 132ba ; 132ba
String_132ba: ; 132ba String_MoveType_Top: ; 132ba
db "┌─────┐@" db "┌─────┐@"
; 132c2 ; 132c2
String_132c2: ; 132c2 String_MoveType_Bottom: ; 132c2
db "│TYPE/└@" db "│TYPE/└@"
; 132ca ; 132ca
String_132ca: ; 132ca String_MoveAtk: ; 132ca
db "ATK/@" db "ATK/@"
; 132cf ; 132cf
String_132cf: ; 132cf String_MoveNoPower: ; 132cf
db "---@" db "---@"
; 132d3 ; 132d3

Some files were not shown because too many files have changed in this diff Show More