2018-06-24 14:09:41 +00:00
|
|
|
Unreferenced_GetNthMove::
|
2018-04-05 04:35:14 +00:00
|
|
|
ld hl, wListMoves_MoveIndicesBuffer
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
GetBaseData::
|
2018-04-05 04:35:14 +00:00
|
|
|
push bc
|
|
|
|
push de
|
|
|
|
push hl
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hROMBank]
|
2018-04-05 04:35:14 +00:00
|
|
|
push af
|
|
|
|
ld a, BANK(BaseData)
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
; Egg doesn't have BaseData
|
|
|
|
ld a, [wCurSpecies]
|
|
|
|
cp EGG
|
|
|
|
jr z, .egg
|
|
|
|
|
|
|
|
; Get BaseData
|
|
|
|
dec a
|
|
|
|
ld bc, BASE_DATA_SIZE
|
|
|
|
ld hl, BaseData
|
|
|
|
call AddNTimes
|
|
|
|
ld de, wCurBaseData
|
|
|
|
ld bc, BASE_DATA_SIZE
|
|
|
|
call CopyBytes
|
|
|
|
jr .end
|
|
|
|
|
|
|
|
.egg
|
|
|
|
; ????
|
|
|
|
ld de, UnknownEggPic
|
|
|
|
|
|
|
|
; Sprite dimensions
|
|
|
|
ld b, $55 ; 5x5
|
|
|
|
ld hl, wBasePicSize
|
|
|
|
ld [hl], b
|
|
|
|
|
|
|
|
; ????
|
|
|
|
ld hl, wBasePadding
|
|
|
|
ld [hl], e
|
|
|
|
inc hl
|
|
|
|
ld [hl], d
|
|
|
|
inc hl
|
|
|
|
ld [hl], e
|
|
|
|
inc hl
|
|
|
|
ld [hl], d
|
|
|
|
jr .end
|
|
|
|
|
|
|
|
.end
|
|
|
|
; Replace Pokedex # with species
|
|
|
|
ld a, [wCurSpecies]
|
|
|
|
ld [wBaseDexNo], a
|
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
pop hl
|
|
|
|
pop de
|
|
|
|
pop bc
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
GetCurNick::
|
2018-04-05 04:35:14 +00:00
|
|
|
ld a, [wCurPartyMon]
|
|
|
|
ld hl, wPartyMonNicknames
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
GetNick::
|
2018-04-05 04:35:14 +00:00
|
|
|
; Get nickname a from list hl.
|
|
|
|
|
|
|
|
push hl
|
|
|
|
push bc
|
|
|
|
|
|
|
|
call SkipNames
|
|
|
|
ld de, wStringBuffer1
|
|
|
|
|
|
|
|
push de
|
|
|
|
ld bc, MON_NAME_LENGTH
|
|
|
|
call CopyBytes
|
|
|
|
pop de
|
|
|
|
|
|
|
|
callfar CorrectNickErrors
|
|
|
|
|
|
|
|
pop bc
|
|
|
|
pop hl
|
|
|
|
ret
|