2018-06-24 14:09:41 +00:00
|
|
|
SetSeenAndCaughtMon::
|
2013-09-19 01:54:31 +00:00
|
|
|
push af
|
|
|
|
ld c, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wPokedexCaught
|
2013-09-19 01:54:31 +00:00
|
|
|
ld b, SET_FLAG
|
|
|
|
call PokedexFlagAction
|
|
|
|
pop af
|
|
|
|
; fallthrough
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
SetSeenMon::
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wPokedexSeen
|
2013-09-19 01:54:31 +00:00
|
|
|
ld b, SET_FLAG
|
|
|
|
jr PokedexFlagAction
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
CheckCaughtMon::
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wPokedexCaught
|
2013-09-19 01:54:31 +00:00
|
|
|
ld b, CHECK_FLAG
|
|
|
|
jr PokedexFlagAction
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
CheckSeenMon::
|
2013-09-19 01:54:31 +00:00
|
|
|
ld c, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wPokedexSeen
|
2013-09-19 01:54:31 +00:00
|
|
|
ld b, CHECK_FLAG
|
|
|
|
; fallthrough
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
PokedexFlagAction::
|
2013-09-19 01:54:31 +00:00
|
|
|
ld d, 0
|
2018-01-16 19:30:10 +00:00
|
|
|
predef SmallFarFlagAction
|
2013-09-19 01:54:31 +00:00
|
|
|
ld a, c
|
|
|
|
and a
|
|
|
|
ret
|