2014-02-02 01:26:39 +00:00
|
|
|
SetSeenAndCaughtMon:: ; 3380
|
2013-09-19 01:54:31 +00:00
|
|
|
push af
|
|
|
|
ld c, a
|
|
|
|
ld hl, PokedexCaught
|
|
|
|
ld b, SET_FLAG
|
|
|
|
call PokedexFlagAction
|
|
|
|
pop af
|
|
|
|
; fallthrough
|
|
|
|
; 338b
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
SetSeenMon:: ; 338b
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
|
|
|
ld hl, PokedexSeen
|
|
|
|
ld b, SET_FLAG
|
|
|
|
jr PokedexFlagAction
|
|
|
|
; 3393
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
CheckCaughtMon:: ; 3393
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
|
|
|
ld hl, PokedexCaught
|
|
|
|
ld b, CHECK_FLAG
|
|
|
|
jr PokedexFlagAction
|
|
|
|
; 339b
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
CheckSeenMon:: ; 339b
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
|
|
|
ld hl, PokedexSeen
|
|
|
|
ld b, CHECK_FLAG
|
|
|
|
; fallthrough
|
|
|
|
; 33a1
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
PokedexFlagAction:: ; 33a1
|
2013-09-19 01:54:31 +00:00
|
|
|
ld d, 0
|
2014-06-16 18:20:01 +00:00
|
|
|
predef FlagPredef
|
2013-09-19 01:54:31 +00:00
|
|
|
ld a, c
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
; 33ab
|