mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use ~X instead of $ff ^ X
This commit is contained in:
parent
865d37e02a
commit
09e92c554c
6 changed files with 8 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ ViridianCityScript_1900b:
|
|||
CheckEvent EVENT_VIRIDIAN_GYM_OPEN
|
||||
ret nz
|
||||
ld a, [wObtainedBadges]
|
||||
cp $ff ^ (1 << BIT_EARTHBADGE)
|
||||
cp ~(1 << BIT_EARTHBADGE)
|
||||
jr nz, .gym_closed
|
||||
SetEvent EVENT_VIRIDIAN_GYM_OPEN
|
||||
ret
|
||||
|
|
@ -148,7 +148,7 @@ ViridianCityText1:
|
|||
ViridianCityText2:
|
||||
text_asm
|
||||
ld a, [wObtainedBadges]
|
||||
cp $ff ^ (1 << BIT_EARTHBADGE)
|
||||
cp ~(1 << BIT_EARTHBADGE)
|
||||
ld hl, ViridianCityText_19127
|
||||
jr z, .done
|
||||
CheckEvent EVENT_BEAT_VIRIDIAN_GYM_GIOVANNI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue