summaryrefslogtreecommitdiff
path: root/engine/battle/misc.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/misc.asm')
-rw-r--r--engine/battle/misc.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/engine/battle/misc.asm b/engine/battle/misc.asm
index 8985385a0..5a7b44cb1 100644
--- a/engine/battle/misc.asm
+++ b/engine/battle/misc.asm
@@ -1,7 +1,7 @@
_DisappearUser:
xor a
- ld [hBGMapMode], a
- ld a, [hBattleTurn]
+ ldh [hBGMapMode], a
+ ldh a, [hBattleTurn]
and a
jr z, .player
call GetEnemyFrontpicCoords
@@ -21,8 +21,8 @@ _AppearUserLowerSub:
AppearUser:
xor a
- ld [hBGMapMode], a
- ld a, [hBattleTurn]
+ ldh [hBGMapMode], a
+ ldh a, [hBattleTurn]
and a
jr z, .player
call GetEnemyFrontpicCoords
@@ -32,11 +32,11 @@ AppearUser:
call GetPlayerBackpicCoords
ld a, $31
.okay
- ld [hGraphicStartTile], a
+ ldh [hGraphicStartTile], a
predef PlaceGraphic
FinishAppearDisappearUser:
ld a, $1
- ld [hBGMapMode], a
+ ldh [hBGMapMode], a
ret
GetEnemyFrontpicCoords:
@@ -101,32 +101,32 @@ DoWeatherModifiers:
.ApplyModifier:
xor a
- ld [hMultiplicand + 0], a
+ ldh [hMultiplicand + 0], a
ld hl, wCurDamage
ld a, [hli]
- ld [hMultiplicand + 1], a
+ ldh [hMultiplicand + 1], a
ld a, [hl]
- ld [hMultiplicand + 2], a
+ ldh [hMultiplicand + 2], a
inc de
ld a, [de]
- ld [hMultiplier], a
+ ldh [hMultiplier], a
call Multiply
ld a, 10
- ld [hDivisor], a
+ ldh [hDivisor], a
ld b, 4
call Divide
- ld a, [hQuotient + 0]
+ ldh a, [hQuotient + 0]
and a
ld bc, -1
jr nz, .Update
- ld a, [hQuotient + 1]
+ ldh a, [hQuotient + 1]
ld b, a
- ld a, [hQuotient + 2]
+ ldh a, [hQuotient + 2]
ld c, a
or b
jr nz, .Update
@@ -153,7 +153,7 @@ DoBadgeTypeBoosts:
and a
ret nz
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
ret nz