2015-11-09 22:00:25 +00:00
|
|
|
SelectMonFromParty: ; 50000
|
|
|
|
call DisableSpriteUpdates
|
|
|
|
xor a
|
|
|
|
ld [PartyMenuActionText], a
|
2015-11-12 04:38:57 +00:00
|
|
|
call ClearBGPalettes
|
2015-11-09 22:00:25 +00:00
|
|
|
call Function5003f
|
|
|
|
call WaitBGMap
|
2015-11-12 04:38:57 +00:00
|
|
|
call SetPalettes
|
2015-11-09 22:00:25 +00:00
|
|
|
call DelayFrame
|
|
|
|
call PartyMenuSelect
|
2015-12-19 01:07:09 +00:00
|
|
|
call ReturnToMapWithSpeechTextbox
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5001d
|
|
|
|
|
|
|
|
|
2015-12-14 01:33:56 +00:00
|
|
|
SelectTradeOrDaycareMon: ; 5001d
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, b
|
|
|
|
ld [PartyMenuActionText], a
|
|
|
|
call DisableSpriteUpdates
|
2015-11-12 04:38:57 +00:00
|
|
|
call ClearBGPalettes
|
2015-11-09 22:00:25 +00:00
|
|
|
call Function5003f
|
|
|
|
call WaitBGMap
|
2015-11-20 20:15:32 +00:00
|
|
|
ld b, SCGB_0A
|
2015-11-09 22:00:25 +00:00
|
|
|
call GetSGBLayout
|
2015-11-12 04:38:57 +00:00
|
|
|
call SetPalettes
|
2015-11-09 22:00:25 +00:00
|
|
|
call DelayFrame
|
|
|
|
call PartyMenuSelect
|
2015-12-19 01:07:09 +00:00
|
|
|
call ReturnToMapWithSpeechTextbox
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5003f
|
|
|
|
|
|
|
|
Function5003f: ; 5003f
|
2015-11-19 04:16:25 +00:00
|
|
|
call LoadPartyMenuGFX
|
|
|
|
call InitPartyMenuWithCancel
|
|
|
|
call InitPartyMenuGFX
|
2015-11-09 22:00:25 +00:00
|
|
|
call WritePartyMenuTilemap
|
|
|
|
call PrintPartyMenuText
|
|
|
|
ret
|
|
|
|
; 5004f
|
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
LoadPartyMenuGFX: ; 5004f
|
2015-11-09 22:00:25 +00:00
|
|
|
call LoadFontsBattleExtra
|
|
|
|
callab Function8ad1 ; engine/color.asm
|
2015-12-02 02:54:11 +00:00
|
|
|
callab ClearSpriteAnims2
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5005f
|
|
|
|
|
|
|
|
|
|
|
|
WritePartyMenuTilemap: ; 0x5005f
|
|
|
|
ld hl, Options
|
|
|
|
ld a, [hl]
|
|
|
|
push af
|
|
|
|
set 4, [hl] ; Disable text delay
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
hlcoord 0, 0
|
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
|
|
ld a, " "
|
|
|
|
call ByteFill ; blank the tilemap
|
2015-11-12 04:38:57 +00:00
|
|
|
call GetPartyMenuTilemapPointers ; This reads from a pointer table???
|
2015-11-09 22:00:25 +00:00
|
|
|
.loop
|
|
|
|
ld a, [hli]
|
2015-11-12 04:38:57 +00:00
|
|
|
cp $ff
|
|
|
|
jr z, .end ; 0x5007a $8
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld hl, .Jumptable
|
2015-11-09 22:00:25 +00:00
|
|
|
rst JumpTable
|
|
|
|
pop hl
|
|
|
|
jr .loop ; 0x50082 $f3
|
2015-11-12 04:38:57 +00:00
|
|
|
.end
|
2015-11-09 22:00:25 +00:00
|
|
|
pop af
|
|
|
|
ld [Options], a
|
|
|
|
ret
|
|
|
|
; 0x50089
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.Jumptable: ; 50089
|
|
|
|
dw PlacePartyNicknames
|
|
|
|
dw PlacePartyHPBar
|
|
|
|
dw PlacePartyMenuHPDigits
|
|
|
|
dw PlacePartyMonLevel
|
|
|
|
dw PlacePartyMonStatus
|
|
|
|
dw PlacePartyMonTMHMCompatibility
|
|
|
|
dw PlacePartyMonEvoStoneCompatibility
|
|
|
|
dw PlacePartyMonGender
|
|
|
|
dw PlacePartyMonMobileBattleSelection
|
2015-11-09 22:00:25 +00:00
|
|
|
; 5009b
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyNicknames: ; 5009b
|
2015-11-09 22:00:25 +00:00
|
|
|
hlcoord 3, 1
|
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
2015-11-12 04:38:57 +00:00
|
|
|
jr z, .end
|
2015-11-09 22:00:25 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
|
|
|
push hl
|
|
|
|
ld hl, PartyMonNicknames
|
|
|
|
ld a, b
|
|
|
|
call GetNick
|
|
|
|
pop hl
|
|
|
|
call PlaceString
|
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.end
|
2015-11-09 22:00:25 +00:00
|
|
|
rept 2
|
|
|
|
dec hl
|
|
|
|
endr
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, .CANCEL
|
2015-11-09 22:00:25 +00:00
|
|
|
call PlaceString
|
|
|
|
ret
|
|
|
|
; 500c8
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.CANCEL: ; 500c8
|
2015-11-09 22:00:25 +00:00
|
|
|
db "CANCEL@"
|
|
|
|
; 500cf
|
|
|
|
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyHPBar: ; 500cf
|
2015-11-09 22:00:25 +00:00
|
|
|
xor a
|
2015-12-22 23:03:00 +00:00
|
|
|
ld [wSGBPals], a
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
hlcoord 11, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
2015-11-09 22:00:25 +00:00
|
|
|
jr z, .skip
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PlacePartymonHPBar
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld d, $6
|
|
|
|
ld b, $0
|
|
|
|
call DrawBattleHPBar
|
2015-12-23 03:19:33 +00:00
|
|
|
ld hl, wHPPals
|
2015-12-22 23:03:00 +00:00
|
|
|
ld a, [wSGBPals]
|
2015-11-09 22:00:25 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
add hl, bc
|
|
|
|
call SetHPPal
|
2015-12-23 03:19:33 +00:00
|
|
|
ld b, SCGB_PARTY_MENU_HP_PALS
|
2015-11-09 22:00:25 +00:00
|
|
|
call GetSGBLayout
|
|
|
|
.skip
|
2015-12-22 23:03:00 +00:00
|
|
|
ld hl, wSGBPals
|
2015-11-09 22:00:25 +00:00
|
|
|
inc [hl]
|
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-20 20:15:32 +00:00
|
|
|
ld b, SCGB_0A
|
2015-11-09 22:00:25 +00:00
|
|
|
call GetSGBLayout
|
|
|
|
ret
|
|
|
|
; 50117
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartymonHPBar: ; 50117
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, b
|
2015-11-12 04:38:57 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyMon1HP
|
|
|
|
call AddNTimes
|
|
|
|
ld a, [hli]
|
|
|
|
or [hl]
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .not_fainted
|
2015-11-09 22:00:25 +00:00
|
|
|
xor a
|
|
|
|
ld e, a
|
|
|
|
ld c, a
|
|
|
|
ret
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.not_fainted
|
2015-11-09 22:00:25 +00:00
|
|
|
dec hl
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld c, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
2015-12-14 16:12:18 +00:00
|
|
|
predef ComputeHPBarPixels
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50138
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMenuHPDigits: ; 50138
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
hlcoord 13, 1
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
ld a, b
|
2015-11-12 04:38:57 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyMon1HP
|
|
|
|
call AddNTimes
|
|
|
|
ld e, l
|
|
|
|
ld d, h
|
|
|
|
pop hl
|
|
|
|
push de
|
|
|
|
lb bc, 2, 3
|
|
|
|
call PrintNum
|
|
|
|
pop de
|
2015-11-12 04:38:57 +00:00
|
|
|
ld a, "/"
|
2015-11-09 22:00:25 +00:00
|
|
|
ld [hli], a
|
|
|
|
rept 2
|
|
|
|
inc de
|
|
|
|
endr
|
|
|
|
lb bc, 2, 3
|
|
|
|
call PrintNum
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50176
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonLevel: ; 50176
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 8, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
ld a, b
|
2015-11-12 04:38:57 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyMon1Level
|
|
|
|
call AddNTimes
|
|
|
|
ld e, l
|
|
|
|
ld d, h
|
|
|
|
pop hl
|
|
|
|
ld a, [de]
|
|
|
|
cp 100 ; This is distinct from MAX_LEVEL.
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nc, .ThreeDigits
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, "<LV>"
|
|
|
|
ld [hli], a
|
2015-11-12 04:38:57 +00:00
|
|
|
lb bc, PRINTNUM_RIGHTALIGN | 1, 2
|
|
|
|
; jr .okay
|
|
|
|
.ThreeDigits
|
2015-11-09 22:00:25 +00:00
|
|
|
lb bc, PRINTNUM_RIGHTALIGN | 1, 3
|
2015-11-12 04:38:57 +00:00
|
|
|
; .okay
|
2015-11-09 22:00:25 +00:00
|
|
|
call PrintNum
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
ld de, SCREEN_WIDTH * 2
|
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 501b2
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonStatus: ; 501b2
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 5, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
ld a, b
|
2015-11-12 04:38:57 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyMon1Status
|
|
|
|
call AddNTimes
|
|
|
|
ld e, l
|
|
|
|
ld d, h
|
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PlaceStatusString
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
ld de, SCREEN_WIDTH * 2
|
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 501e0
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonTMHMCompatibility: ; 501e0
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 12, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
ld hl, PartySpecies
|
|
|
|
ld e, b
|
|
|
|
ld d, 0
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
|
|
|
ld [CurPartySpecies], a
|
|
|
|
predef CanLearnTMHMMove
|
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call .PlaceAbleNotAble
|
2015-11-09 22:00:25 +00:00
|
|
|
call PlaceString
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
ld de, SCREEN_WIDTH * 2
|
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50215
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.PlaceAbleNotAble: ; 50215
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, c
|
|
|
|
and a
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .able
|
|
|
|
ld de, .string_not_able
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.able
|
|
|
|
ld de, .string_able
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50221
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.string_able: ; 50221
|
2015-11-09 22:00:25 +00:00
|
|
|
db "ABLE@"
|
|
|
|
; 50226
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.string_not_able: ; 50226
|
2015-11-09 22:00:25 +00:00
|
|
|
db "NOT ABLE@"
|
|
|
|
; 5022f
|
|
|
|
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonEvoStoneCompatibility: ; 5022f
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 12, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
ld a, b
|
2015-11-12 04:38:57 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyMon1Species
|
|
|
|
call AddNTimes
|
|
|
|
ld a, [hl]
|
|
|
|
dec a
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, EvosAttacksPointers
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
2015-11-12 04:38:57 +00:00
|
|
|
call .DetermineCompatibility
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
call PlaceString
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50268
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.DetermineCompatibility: ; 50268
|
2015-11-09 22:00:25 +00:00
|
|
|
ld de, StringBuffer1
|
|
|
|
ld a, BANK(EvosAttacksPointers)
|
|
|
|
ld bc, 2
|
|
|
|
call FarCopyBytes
|
|
|
|
ld hl, StringBuffer1
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
ld de, StringBuffer1
|
|
|
|
ld a, BANK(EvosAttacks)
|
|
|
|
ld bc, $a
|
|
|
|
call FarCopyBytes
|
|
|
|
ld hl, StringBuffer1
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop2
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [hli]
|
|
|
|
and a
|
2015-11-12 04:38:57 +00:00
|
|
|
jr z, .nope
|
2015-11-09 22:00:25 +00:00
|
|
|
rept 2
|
|
|
|
inc hl
|
|
|
|
endr
|
|
|
|
cp EVOLVE_ITEM
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop2
|
2015-11-09 22:00:25 +00:00
|
|
|
rept 2
|
|
|
|
dec hl
|
|
|
|
endr
|
|
|
|
ld a, [CurItem]
|
|
|
|
cp [hl]
|
|
|
|
rept 2
|
|
|
|
inc hl
|
|
|
|
endr
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop2
|
|
|
|
ld de, .string_able
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.nope
|
|
|
|
ld de, .string_not_able
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 502a3
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.string_able: ; 502a3
|
2015-11-09 22:00:25 +00:00
|
|
|
db "ABLE@"
|
|
|
|
; 502a8
|
2015-11-12 04:38:57 +00:00
|
|
|
.string_not_able: ; 502a8
|
2015-11-09 22:00:25 +00:00
|
|
|
db "NOT ABLE@"
|
|
|
|
; 502b1
|
|
|
|
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonGender: ; 502b1
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 12, 2
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
call PartyMenuCheckEgg
|
|
|
|
jr z, .next
|
2015-11-09 22:00:25 +00:00
|
|
|
ld [CurPartySpecies], a
|
|
|
|
push hl
|
|
|
|
ld a, b
|
|
|
|
ld [CurPartyMon], a
|
|
|
|
xor a
|
|
|
|
ld [MonType], a
|
|
|
|
call GetGender
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, .unknown
|
|
|
|
jr c, .got_gender
|
|
|
|
ld de, .male
|
|
|
|
jr nz, .got_gender
|
|
|
|
ld de, .female
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.got_gender
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
call PlaceString
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.next
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 502ee
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.male: ; 502ee
|
2015-11-09 22:00:25 +00:00
|
|
|
db "♂…MALE@"
|
|
|
|
; 502f5
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.female: ; 502f5
|
2015-11-09 22:00:25 +00:00
|
|
|
db "♀…FEMALE@"
|
|
|
|
; 502fe
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.unknown: ; 502fe
|
2015-11-09 22:00:25 +00:00
|
|
|
db "…UNKNOWN@"
|
|
|
|
; 50307
|
|
|
|
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PlacePartyMonMobileBattleSelection: ; 50307
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
hlcoord 12, 1
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, .String_Sanka_Shinai
|
2015-11-09 22:00:25 +00:00
|
|
|
call PlaceString
|
|
|
|
pop hl
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
pop bc
|
|
|
|
inc b
|
|
|
|
dec c
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .loop
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, l
|
2015-11-12 04:38:57 +00:00
|
|
|
ld e, PKMN_NAME_LENGTH
|
2015-11-09 22:00:25 +00:00
|
|
|
sub e
|
|
|
|
ld l, a
|
|
|
|
ld a, h
|
|
|
|
sbc $0
|
|
|
|
ld h, a
|
2015-11-12 04:38:57 +00:00
|
|
|
ld de, .String_Kettei_Yameru
|
2015-11-09 22:00:25 +00:00
|
|
|
call PlaceString
|
|
|
|
ld b, $3
|
|
|
|
ld c, $0
|
2015-11-11 00:51:13 +00:00
|
|
|
ld hl, wd002
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [hl]
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop2
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
push bc
|
|
|
|
hlcoord 12, 1
|
2015-11-12 04:38:57 +00:00
|
|
|
.loop3
|
2015-11-09 22:00:25 +00:00
|
|
|
and a
|
2015-11-12 04:38:57 +00:00
|
|
|
jr z, .done
|
|
|
|
ld de, 2 * SCREEN_WIDTH
|
2015-11-09 22:00:25 +00:00
|
|
|
add hl, de
|
|
|
|
dec a
|
2015-11-12 04:38:57 +00:00
|
|
|
jr .loop3
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.done
|
|
|
|
ld de, .String_Banme
|
2015-11-09 22:00:25 +00:00
|
|
|
push hl
|
|
|
|
call PlaceString
|
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
push bc
|
|
|
|
push hl
|
|
|
|
ld a, c
|
2015-11-12 04:38:57 +00:00
|
|
|
ld hl, .Strings_1_2_3
|
2015-11-09 22:00:25 +00:00
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
pop hl
|
|
|
|
call PlaceString
|
|
|
|
pop bc
|
|
|
|
pop hl
|
|
|
|
inc hl
|
|
|
|
ld a, [hl]
|
|
|
|
inc c
|
|
|
|
dec b
|
|
|
|
ret z
|
2015-11-12 04:38:57 +00:00
|
|
|
jr .loop2
|
2015-11-09 22:00:25 +00:00
|
|
|
; 5036b
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.String_Banme: ; 5036b
|
2015-11-09 22:00:25 +00:00
|
|
|
db " ばんめ @" ; Place
|
|
|
|
; 50372
|
2015-11-12 04:38:57 +00:00
|
|
|
.String_Sanka_Shinai: ; 50372
|
2015-11-09 22:00:25 +00:00
|
|
|
db "さんかしない@" ; Cancel
|
|
|
|
; 50379
|
2015-11-12 04:38:57 +00:00
|
|
|
.String_Kettei_Yameru: ; 50379
|
2015-11-09 22:00:25 +00:00
|
|
|
db "けってい やめる@" ; Quit
|
|
|
|
; 50383
|
2015-11-12 04:38:57 +00:00
|
|
|
.Strings_1_2_3: ; 50383
|
2015-11-09 22:00:25 +00:00
|
|
|
db "1@", "2@", "3@" ; 1st, 2nd, 3rd
|
|
|
|
; 50389
|
|
|
|
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
PartyMenuCheckEgg: ; 50389
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, PartySpecies % $100
|
|
|
|
add b
|
|
|
|
ld e, a
|
|
|
|
ld a, PartySpecies / $100
|
|
|
|
adc 0
|
|
|
|
ld d, a
|
|
|
|
ld a, [de]
|
|
|
|
cp EGG
|
|
|
|
ret
|
|
|
|
; 50396
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
GetPartyMenuTilemapPointers: ; 50396
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyMenuActionText]
|
|
|
|
and $f0
|
2015-11-12 04:38:57 +00:00
|
|
|
jr nz, .skip
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyMenuActionText]
|
|
|
|
and $f
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2015-11-12 04:38:57 +00:00
|
|
|
ld hl, .Pointers
|
2015-11-09 22:00:25 +00:00
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
ret
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.skip
|
|
|
|
ld hl, .Default
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 503b2
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.Pointers: ; 503b2
|
|
|
|
dw .Default
|
|
|
|
dw .Default
|
|
|
|
dw .Default
|
|
|
|
dw .TMHM
|
|
|
|
dw .Default
|
|
|
|
dw .EvoStone
|
|
|
|
dw .Gender
|
|
|
|
dw .Gender
|
|
|
|
dw .Default
|
|
|
|
dw .Mobile
|
2015-11-09 22:00:25 +00:00
|
|
|
; 503c6
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
.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
|
2015-11-09 22:00:25 +00:00
|
|
|
; 503e0
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
InitPartyMenuGFX: ; 503e0
|
2015-11-09 22:00:25 +00:00
|
|
|
ld hl, PartyCount
|
|
|
|
ld a, [hli]
|
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
ld c, a
|
|
|
|
xor a
|
2015-11-12 04:38:57 +00:00
|
|
|
ld [hObjectStructIndexBuffer], a
|
2015-11-19 04:16:25 +00:00
|
|
|
.loop
|
2015-11-09 22:00:25 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
|
|
|
ld hl, Function8e83f
|
|
|
|
ld a, BANK(Function8e83f)
|
|
|
|
ld e, $0
|
|
|
|
rst FarCall
|
2015-11-12 04:38:57 +00:00
|
|
|
ld a, [hObjectStructIndexBuffer]
|
2015-11-09 22:00:25 +00:00
|
|
|
inc a
|
2015-11-12 04:38:57 +00:00
|
|
|
ld [hObjectStructIndexBuffer], a
|
2015-11-09 22:00:25 +00:00
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
dec c
|
2015-11-19 04:16:25 +00:00
|
|
|
jr nz, .loop
|
2015-11-28 20:13:40 +00:00
|
|
|
callab PlaySpriteAnimations
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 50405
|
2015-11-12 04:38:57 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
InitPartyMenuWithCancel: ; 50405
|
|
|
|
; with cancel
|
2015-11-09 22:00:25 +00:00
|
|
|
xor a
|
2015-11-19 04:16:25 +00:00
|
|
|
ld [wSwitchMon], a
|
|
|
|
ld de, PartyMenuAttributes
|
2015-12-23 19:00:29 +00:00
|
|
|
call SetMenuAttributes
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
inc a
|
2015-12-19 19:48:30 +00:00
|
|
|
ld [w2DMenuNumRows], a ; list length
|
2015-11-09 22:00:25 +00:00
|
|
|
dec a
|
|
|
|
ld b, a
|
2015-11-19 04:16:25 +00:00
|
|
|
ld a, [wPartyMenuCursor]
|
2015-11-09 22:00:25 +00:00
|
|
|
and a
|
2015-11-19 04:16:25 +00:00
|
|
|
jr z, .skip
|
2015-11-09 22:00:25 +00:00
|
|
|
inc b
|
|
|
|
cp b
|
2015-11-19 04:16:25 +00:00
|
|
|
jr c, .done
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
.skip
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 1
|
2015-11-09 22:00:25 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
.done
|
2015-12-15 23:59:49 +00:00
|
|
|
ld [wMenuCursorY], a
|
2015-11-19 04:16:25 +00:00
|
|
|
ld a, A_BUTTON | B_BUTTON
|
2015-12-20 17:54:08 +00:00
|
|
|
ld [wMenuJoypadFilter], a
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5042d
|
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
InitPartyMenuNoCancel: ; 0x5042d
|
|
|
|
; no cancel
|
|
|
|
ld de, PartyMenuAttributes
|
2015-12-23 19:00:29 +00:00
|
|
|
call SetMenuAttributes
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
2015-12-19 19:48:30 +00:00
|
|
|
ld [w2DMenuNumRows], a ; list length
|
2015-11-09 22:00:25 +00:00
|
|
|
ld b, a
|
2015-11-19 04:16:25 +00:00
|
|
|
ld a, [wPartyMenuCursor]
|
2015-11-09 22:00:25 +00:00
|
|
|
and a
|
2015-11-19 04:16:25 +00:00
|
|
|
jr z, .skip
|
2015-11-09 22:00:25 +00:00
|
|
|
inc b
|
|
|
|
cp b
|
2015-11-19 04:16:25 +00:00
|
|
|
jr c, .done
|
|
|
|
.skip
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 1
|
2015-11-19 04:16:25 +00:00
|
|
|
.done
|
2015-12-15 23:59:49 +00:00
|
|
|
ld [wMenuCursorY], a
|
2015-11-19 04:16:25 +00:00
|
|
|
ld a, A_BUTTON | B_BUTTON
|
2015-12-20 17:54:08 +00:00
|
|
|
ld [wMenuJoypadFilter], a
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5044f (14:444f)
|
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
PartyMenuAttributes: ; 5044f
|
2015-11-09 22:00:25 +00:00
|
|
|
; cursor y
|
|
|
|
; cursor x
|
2015-12-23 19:00:29 +00:00
|
|
|
; num rows
|
|
|
|
; num cols
|
2015-11-09 22:00:25 +00:00
|
|
|
; bit 6: animate sprites bit 5: wrap around
|
|
|
|
; ?
|
|
|
|
; distance between items (hi: y, lo: x)
|
|
|
|
; allowed buttons (mask)
|
2015-12-23 19:00:29 +00:00
|
|
|
db 1, 0
|
|
|
|
db 0, 1
|
|
|
|
db $60, $00
|
|
|
|
dn 2, 0
|
|
|
|
db 0
|
2015-11-09 22:00:25 +00:00
|
|
|
; 50457
|
|
|
|
|
|
|
|
PartyMenuSelect: ; 0x50457
|
|
|
|
; sets carry if exitted menu.
|
2015-12-15 23:59:49 +00:00
|
|
|
call StaticMenuJoypad
|
2015-12-18 03:31:16 +00:00
|
|
|
call PlaceHollowCursor
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [PartyCount]
|
|
|
|
inc a
|
|
|
|
ld b, a
|
2015-12-15 23:59:49 +00:00
|
|
|
ld a, [wMenuCursorY] ; menu selection?
|
2015-11-09 22:00:25 +00:00
|
|
|
cp b
|
|
|
|
jr z, .exitmenu ; CANCEL
|
2015-11-19 04:16:25 +00:00
|
|
|
ld [wPartyMenuCursor], a
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [hJoyLast]
|
|
|
|
ld b, a
|
|
|
|
bit 1, b
|
|
|
|
jr nz, .exitmenu ; B button?
|
2015-12-15 23:59:49 +00:00
|
|
|
ld a, [wMenuCursorY]
|
2015-11-09 22:00:25 +00:00
|
|
|
dec a
|
|
|
|
ld [CurPartyMon], a
|
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
ld hl, PartySpecies
|
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
|
|
|
ld [CurPartySpecies], a
|
|
|
|
|
|
|
|
ld de, SFX_READ_TEXT_2
|
|
|
|
call PlaySFX
|
|
|
|
call WaitSFX
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
|
|
|
.exitmenu
|
|
|
|
ld de, SFX_READ_TEXT_2
|
|
|
|
call PlaySFX
|
|
|
|
call WaitSFX
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
; 0x5049a
|
|
|
|
|
|
|
|
|
|
|
|
PrintPartyMenuText: ; 5049a
|
|
|
|
hlcoord 0, 14
|
2015-11-12 04:38:57 +00:00
|
|
|
lb bc, 2, 18
|
2015-11-09 22:00:25 +00:00
|
|
|
call TextBox
|
|
|
|
ld a, [PartyCount]
|
|
|
|
and a
|
|
|
|
jr nz, .haspokemon
|
|
|
|
ld de, YouHaveNoPKMNString
|
|
|
|
jr .gotstring
|
|
|
|
.haspokemon ; 504ae
|
|
|
|
ld a, [PartyMenuActionText]
|
|
|
|
and $f ; drop high nibble
|
|
|
|
ld hl, PartyMenuStrings
|
|
|
|
ld e, a
|
|
|
|
ld d, $0
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, [hl]
|
|
|
|
ld e, a
|
|
|
|
.gotstring ; 504be
|
|
|
|
ld a, [Options]
|
|
|
|
push af
|
|
|
|
set 4, a ; disable text delay
|
|
|
|
ld [Options], a
|
|
|
|
hlcoord 1, 16 ; Coord
|
|
|
|
call PlaceString
|
|
|
|
pop af
|
|
|
|
ld [Options], a
|
|
|
|
ret
|
|
|
|
; 0x504d2
|
|
|
|
|
|
|
|
PartyMenuStrings: ; 0x504d2
|
|
|
|
dw ChooseAMonString
|
|
|
|
dw UseOnWhichPKMNString
|
|
|
|
dw WhichPKMNString
|
|
|
|
dw TeachWhichPKMNString
|
|
|
|
dw MoveToWhereString
|
|
|
|
dw UseOnWhichPKMNString
|
|
|
|
dw ChooseAMonString ; Probably used to be ChooseAFemalePKMNString
|
|
|
|
dw ChooseAMonString ; Probably used to be ChooseAMalePKMNString
|
|
|
|
dw ToWhichPKMNString
|
|
|
|
|
|
|
|
ChooseAMonString: ; 0x504e4
|
|
|
|
db "Choose a #MON.@"
|
|
|
|
UseOnWhichPKMNString: ; 0x504f3
|
|
|
|
db "Use on which <PK><MN>?@"
|
|
|
|
WhichPKMNString: ; 0x50504
|
|
|
|
db "Which <PK><MN>?@"
|
|
|
|
TeachWhichPKMNString: ; 0x5050e
|
|
|
|
db "Teach which <PK><MN>?@"
|
|
|
|
MoveToWhereString: ; 0x5051e
|
|
|
|
db "Move to where?@"
|
|
|
|
ChooseAFemalePKMNString: ; 0x5052d ; UNUSED
|
|
|
|
db "Choose a ♀<PK><MN>.@"
|
|
|
|
ChooseAMalePKMNString: ; 0x5053b ; UNUSED
|
|
|
|
db "Choose a ♂<PK><MN>.@"
|
|
|
|
ToWhichPKMNString: ; 0x50549
|
|
|
|
db "To which <PK><MN>?@"
|
|
|
|
|
|
|
|
YouHaveNoPKMNString: ; 0x50556
|
|
|
|
db "You have no <PK><MN>!@"
|
|
|
|
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
PrintPartyMenuActionText: ; 50566
|
2015-11-09 22:00:25 +00:00
|
|
|
ld a, [CurPartyMon]
|
|
|
|
ld hl, PartyMonNicknames
|
|
|
|
call GetNick
|
|
|
|
ld a, [PartyMenuActionText]
|
|
|
|
and $f
|
2015-11-18 23:35:44 +00:00
|
|
|
ld hl, .MenuActionTexts
|
|
|
|
call .PrintText
|
2015-11-09 22:00:25 +00:00
|
|
|
ret
|
|
|
|
; 5057b
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.MenuActionTexts: ; 5057b
|
|
|
|
dw .Text_CuredOfPoison
|
|
|
|
dw .Text_BurnWasHealed
|
|
|
|
dw .Text_Defrosted
|
|
|
|
dw .Text_WokeUp
|
|
|
|
dw .Text_RidOfParalysis
|
|
|
|
dw .Text_RecoveredSomeHP
|
|
|
|
dw .Text_HealthReturned
|
|
|
|
dw .Text_Revitalized
|
|
|
|
dw .Text_GrewToLevel
|
|
|
|
dw .Text_CameToItsSenses
|
2015-11-09 22:00:25 +00:00
|
|
|
; 5058f
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_RecoveredSomeHP: ; 0x5058f
|
2015-11-09 22:00:25 +00:00
|
|
|
; recovered @ HP!
|
|
|
|
text_jump UnknownText_0x1bc0a2
|
|
|
|
db "@"
|
|
|
|
; 0x50594
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_CuredOfPoison: ; 0x50594
|
2015-11-09 22:00:25 +00:00
|
|
|
; 's cured of poison.
|
|
|
|
text_jump UnknownText_0x1bc0bb
|
|
|
|
db "@"
|
|
|
|
; 0x50599
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_RidOfParalysis: ; 0x50599
|
2015-11-09 22:00:25 +00:00
|
|
|
; 's rid of paralysis.
|
|
|
|
text_jump UnknownText_0x1bc0d2
|
|
|
|
db "@"
|
|
|
|
; 0x5059e
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_BurnWasHealed: ; 0x5059e
|
2015-11-09 22:00:25 +00:00
|
|
|
; 's burn was healed.
|
|
|
|
text_jump UnknownText_0x1bc0ea
|
|
|
|
db "@"
|
|
|
|
; 0x505a3
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_Defrosted: ; 0x505a3
|
2015-11-09 22:00:25 +00:00
|
|
|
; was defrosted.
|
|
|
|
text_jump UnknownText_0x1bc101
|
|
|
|
db "@"
|
|
|
|
; 0x505a8
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_WokeUp: ; 0x505a8
|
2015-11-09 22:00:25 +00:00
|
|
|
; woke up.
|
|
|
|
text_jump UnknownText_0x1bc115
|
|
|
|
db "@"
|
|
|
|
; 0x505ad
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_HealthReturned: ; 0x505ad
|
2015-11-09 22:00:25 +00:00
|
|
|
; 's health returned.
|
|
|
|
text_jump UnknownText_0x1bc123
|
|
|
|
db "@"
|
|
|
|
; 0x505b2
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_Revitalized: ; 0x505b2
|
2015-11-09 22:00:25 +00:00
|
|
|
; is revitalized.
|
|
|
|
text_jump UnknownText_0x1bc13a
|
|
|
|
db "@"
|
|
|
|
; 0x505b7
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_GrewToLevel: ; 0x505b7
|
2015-11-09 22:00:25 +00:00
|
|
|
; grew to level @ !@ @
|
|
|
|
text_jump UnknownText_0x1bc14f
|
|
|
|
db "@"
|
|
|
|
; 0x505bc
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.Text_CameToItsSenses: ; 0x505bc
|
2015-11-09 22:00:25 +00:00
|
|
|
; came to its senses.
|
|
|
|
text_jump UnknownText_0x1bc16e
|
|
|
|
db "@"
|
|
|
|
; 0x505c1
|
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
.PrintText: ; 505c1
|
2015-11-09 22:00:25 +00:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
ld a, [Options]
|
|
|
|
push af
|
2015-11-18 23:35:44 +00:00
|
|
|
set NO_TEXT_SCROLL, a
|
2015-11-09 22:00:25 +00:00
|
|
|
ld [Options], a
|
|
|
|
call PrintText
|
|
|
|
pop af
|
|
|
|
ld [Options], a
|
|
|
|
ret
|
|
|
|
; 505da
|