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 maskbits some more
This commit is contained in:
@ -614,7 +614,7 @@ GetPocketName:
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
dec a
|
||||
ld hl, .Pockets
|
||||
and 3
|
||||
maskbits NUM_POCKETS +- 1
|
||||
add a
|
||||
ld e, a
|
||||
ld d, 0
|
||||
@ -2474,7 +2474,7 @@ Script_warpfacing:
|
||||
; parameters: facing, map_group, map_id, x, y
|
||||
|
||||
call GetScriptByte
|
||||
and $3
|
||||
maskbits NUM_DIRECTIONS +- 1
|
||||
ld c, a
|
||||
ld a, [wPlayerSpriteSetupFlags]
|
||||
set 5, a
|
||||
|
Reference in New Issue
Block a user