You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-12-11 05:02:16 -08:00
wVramState -> wStateFlags and define flag constants (from pokecrystal f72f078c0e68736adf81f6c45c84f0c1e127a231)
This commit is contained in:
@@ -3,10 +3,10 @@ _DepositPKMN:
|
||||
ld a, [hl]
|
||||
push af
|
||||
set NO_TEXT_SCROLL, [hl]
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ldh a, [hInMenu]
|
||||
push af
|
||||
ld a, $1
|
||||
@@ -30,7 +30,7 @@ _DepositPKMN:
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
ret
|
||||
@@ -259,10 +259,10 @@ _WithdrawPKMN:
|
||||
ld a, [hl]
|
||||
push af
|
||||
set NO_TEXT_SCROLL, [hl]
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ldh a, [hInMenu]
|
||||
push af
|
||||
ld a, $1
|
||||
@@ -286,7 +286,7 @@ _WithdrawPKMN:
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
ret
|
||||
@@ -497,10 +497,10 @@ _MovePKMNWithoutMail:
|
||||
ld a, [hl]
|
||||
push af
|
||||
set NO_TEXT_SCROLL, [hl]
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ldh a, [hInMenu]
|
||||
push af
|
||||
ld a, $1
|
||||
@@ -527,7 +527,7 @@ _MovePKMNWithoutMail:
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
ret
|
||||
|
||||
@@ -348,7 +348,7 @@ HatchEggs:
|
||||
; Huh? @ @
|
||||
text_far Text_BreedHuh
|
||||
text_asm
|
||||
ld hl, wVramState
|
||||
ld hl, wStateFlags
|
||||
res 0, [hl]
|
||||
push hl
|
||||
push de
|
||||
|
||||
Reference in New Issue
Block a user