Groundwork

Letter is there, post-game warp is done, new post-game event where you receive the letter isn't working properly
This commit is contained in:
Llinos Evans 2023-07-12 17:44:25 +01:00
parent 0852d5f725
commit c4afafb9ac
17 changed files with 206 additions and 12 deletions

View file

@ -187,9 +187,9 @@ DebugPikachuEevee:
jr .loop
DebugPikachuEeveeShows:
db HS_DAMIEN ; Charmander guy
db HS_VERMILION_JENNY ; Squirtle
db -1 ; end
db HS_DAMIEN ; Charmander guy
db HS_VERMILION_JENNY ; Squirtle
db -1 ; end
DebugSetPokedexEntries:
ld b, wPokedexOwnedEnd - wPokedexOwned
@ -203,6 +203,7 @@ DebugSetPokedexEntries:
DebugItemsList:
db MASTER_BALL, 99
db SILPHLETTER, 1
db MYSTERY_BOX, 1
db CANDY_JAR, 1
db BICYCLE, 1

View file

@ -111,6 +111,7 @@ ItemUsePtrTable:
dw ItemUseEvoStone ; METAL_COAT
dw ItemUseMysteryBox ; MYSTERY_BOX
dw UnusableItem ; TEA
dw ItemUseLetter ; SILPHLETTER
dw UnusableItem ; FLOOR_B2F
dw UnusableItem ; FLOOR_B1F
dw UnusableItem ; FLOOR_1F
@ -126,6 +127,16 @@ ItemUsePtrTable:
dw UnusableItem ; FLOOR_11F
dw UnusableItem ; FLOOR_14F
ItemUseLetter:
text_asm
ld hl, ChiefLetterText
call PrintText
jp TextScriptEnd
ChiefLetterText:
text_far _ChiefLetterText
text_end
ItemUseMysteryBox:
; Mystery Box can't be used in battle.
ld a, [wIsInBattle]

View file

@ -202,6 +202,8 @@ ItemDescriptionPointers:
text_end
text_far _TeaDescription
text_end
text_far _SilphLetterDescription
text_end
text_far _HM01Description
text_end
text_far _HM02Description

View file

@ -117,7 +117,7 @@ MainMenu:
ld a, [wCurMap] ; map ID
cp HALL_OF_FAME
jp nz, SpecialEnterMap
xor a
ld a, REDS_HOUSE_2F
ld [wDestinationMap], a
ld hl, wd732
set 2, [hl] ; fly warp or dungeon warp