mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-10 23:40:59 +13:00
extra optimisation
This commit is contained in:
parent
0c4d3c8731
commit
2ca3ea175f
|
|
@ -141,7 +141,6 @@ PostGameSetup:
|
||||||
ResetLegendaryPokemon:
|
ResetLegendaryPokemon:
|
||||||
ld a, DEX_ARTICUNO ; Load dex number
|
ld a, DEX_ARTICUNO ; Load dex number
|
||||||
ld [wd11e], a ; Store in wd11e (input for IsPokemonBitSet)
|
ld [wd11e], a ; Store in wd11e (input for IsPokemonBitSet)
|
||||||
ld hl, wPokedexOwned ; Grab the owned thing while you're at it
|
|
||||||
call HoFIsPokemonBitSet ; Is it owned?
|
call HoFIsPokemonBitSet ; Is it owned?
|
||||||
jr nz, .skipArticuno ; If owned, skip
|
jr nz, .skipArticuno ; If owned, skip
|
||||||
ResetEvent EVENT_BEAT_ARTICUNO ; If not, reset the event...
|
ResetEvent EVENT_BEAT_ARTICUNO ; If not, reset the event...
|
||||||
|
|
@ -244,6 +243,7 @@ ObjectsToHide:
|
||||||
; Farcalling this caused weird issues so I'm just using a clone
|
; Farcalling this caused weird issues so I'm just using a clone
|
||||||
; This is a function used in engine/menus/pokedex.asm to check if a Pokemon is in the dex.
|
; This is a function used in engine/menus/pokedex.asm to check if a Pokemon is in the dex.
|
||||||
; We use this to reset Legendary Pokemon after the Elite Four.
|
; We use this to reset Legendary Pokemon after the Elite Four.
|
||||||
|
; It does have the optimisation of loading wPokedexOwned for processing, anyway.
|
||||||
; tests if a pokemon's bit is set in the seen or owned pokemon bit fields
|
; tests if a pokemon's bit is set in the seen or owned pokemon bit fields
|
||||||
; INPUT:
|
; INPUT:
|
||||||
; [wd11e] = pokedex number
|
; [wd11e] = pokedex number
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue