You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Replace $0 with 0 for "ld l, a / ld h, 0" idiom
This commit is contained in:
@@ -679,7 +679,7 @@ BattleAnimCmd_5GFX:
|
||||
push bc
|
||||
push hl
|
||||
ld l, a
|
||||
ld h, $0
|
||||
ld h, 0
|
||||
rept 4
|
||||
add hl, hl
|
||||
endr
|
||||
|
@@ -1990,7 +1990,7 @@ BattleBGEffect_FadeMonsToBlackRepeating:
|
||||
swap a
|
||||
sla a
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld d, 0
|
||||
push bc
|
||||
call BGEffect_CheckBattleTurn
|
||||
jr nz, .player
|
||||
@@ -2614,7 +2614,7 @@ BattleBGEffect_GetFirstDMGPal:
|
||||
inc [hl]
|
||||
BattleBGEffect_GetNextDMGPal:
|
||||
ld l, a
|
||||
ld h, $0
|
||||
ld h, 0
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
cp -1
|
||||
@@ -2823,7 +2823,7 @@ DeformWater:
|
||||
ld a, [wBattleSineWaveTempProgress]
|
||||
add e
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld d, 0
|
||||
ret
|
||||
|
||||
BattleBGEffect_WavyScreenFX:
|
||||
|
@@ -778,7 +778,7 @@ BattleAnimFunction_FireBlast:
|
||||
call DeinitBattleAnimation
|
||||
ret
|
||||
|
||||
.one
|
||||
.one
|
||||
; Flame that moves upward
|
||||
ld hl, BATTLEANIMSTRUCT_YOFFSET
|
||||
add hl, bc
|
||||
@@ -2145,13 +2145,13 @@ BattleAnimFunction_Egg:
|
||||
call BattleAnim_IncAnonJumptableIndex ; jumps to three
|
||||
ret
|
||||
|
||||
.egg_bomb_done
|
||||
.egg_bomb_done
|
||||
; Increases jumptable index twice to four
|
||||
call BattleAnim_IncAnonJumptableIndex
|
||||
inc [hl]
|
||||
ret
|
||||
|
||||
.three
|
||||
.three
|
||||
; Waits in place
|
||||
ld hl, BATTLEANIMSTRUCT_VAR2
|
||||
add hl, bc
|
||||
@@ -3387,7 +3387,7 @@ BattleAnimFunction_SkyAttack:
|
||||
call DeinitBattleAnimation
|
||||
ret
|
||||
|
||||
.SkyAttack_CyclePalette:
|
||||
.SkyAttack_CyclePalette:
|
||||
; Cycles wOBP0 pallete
|
||||
ld hl, BATTLEANIMSTRUCT_VAR2
|
||||
add hl, bc
|
||||
@@ -3396,7 +3396,7 @@ BattleAnimFunction_SkyAttack:
|
||||
inc [hl]
|
||||
srl a
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld d, 0
|
||||
ldh a, [hSGB]
|
||||
and a
|
||||
jr nz, .sgb
|
||||
|
Reference in New Issue
Block a user