You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use constants for bit/set/res more
This commit is contained in:
@@ -537,7 +537,7 @@ PokeBallEffect: ; e8a2
|
||||
cp BATTLETYPE_CELEBI
|
||||
jr nz, .not_celebi
|
||||
ld hl, wBattleResult
|
||||
set 6, [hl]
|
||||
set BATTLERESULT_CAUGHT_CELEBI, [hl]
|
||||
.not_celebi
|
||||
|
||||
ld a, [wPartyCount]
|
||||
@@ -615,7 +615,7 @@ PokeBallEffect: ; e8a2
|
||||
cp MONS_PER_BOX
|
||||
jr nz, .BoxNotFullYet
|
||||
ld hl, wBattleResult
|
||||
set 7, [hl]
|
||||
set BATTLERESULT_BOX_FULL, [hl]
|
||||
.BoxNotFullYet:
|
||||
ld a, [wCurItem]
|
||||
cp FRIEND_BALL
|
||||
@@ -2196,8 +2196,8 @@ PokeDollEffect: ; f48f
|
||||
inc a
|
||||
ld [wForcedSwitch], a
|
||||
ld a, [wBattleResult]
|
||||
and $c0
|
||||
or $2
|
||||
and BATTLERESULT_BITMASK
|
||||
or DRAW
|
||||
ld [wBattleResult], a
|
||||
jp UseItemText
|
||||
|
||||
|
Reference in New Issue
Block a user