summaryrefslogtreecommitdiff
path: root/items
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-07-20 22:18:18 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2015-07-20 22:18:18 -0400
commit471492b775fc2a0f5162f3d1c13c5472359beb14 (patch)
treef230b4d37385ca7dfdd8a44cca97faa0202c9dbe /items
parentd1e11f77e525aa7a7751359db4e5380b420e882c (diff)
Reverted ld_hl_pointer macro
Diffstat (limited to 'items')
-rw-r--r--items/item_descriptions.asm3
-rw-r--r--items/item_effects.asm28
2 files changed, 20 insertions, 11 deletions
diff --git a/items/item_descriptions.asm b/items/item_descriptions.asm
index 40e91b2c9..7ff574d11 100644
--- a/items/item_descriptions.asm
+++ b/items/item_descriptions.asm
@@ -21,8 +21,9 @@ PrintItemDescription: ; 0x1c8955
dec a
ld c, a
ld b, 0
+rept 2
add hl, bc
- add hl, bc
+endr
ld e, [hl]
inc hl
ld d, [hl]
diff --git a/items/item_effects.asm b/items/item_effects.asm
index b65183ca2..5cffc6afb 100644
--- a/items/item_effects.asm
+++ b/items/item_effects.asm
@@ -253,8 +253,9 @@ ParkBall: ; e8a2
jr z, .asm_e906
cp c
jr z, .asm_e8fe
+rept 2
inc hl
- inc hl
+endr
jr .asm_e8f2
.asm_e8fe
@@ -287,8 +288,9 @@ ParkBall: ; e8a2
ld h, d
ld l, e
+rept 2
add hl, de
- add hl, de
+endr
ld d, h
ld e, l
ld a, d
@@ -802,8 +804,9 @@ HeavyBallMultiplier:
dec a
ld e, a
ld d, 0
+rept 2
add hl, de
- add hl, de
+endr
ld a, BANK(PokedexDataPointerTable)
call GetFarHalfword
@@ -816,8 +819,9 @@ HeavyBallMultiplier:
call GetPokedexEntryBank
push bc
+rept 2
inc hl
- inc hl
+endr
call GetFarHalfword
srl h
@@ -863,8 +867,9 @@ HeavyBallMultiplier:
ld a, c
cp [hl]
jr c, .heavymon
+rept 2
inc hl
- inc hl
+endr
jr .lookup
.heavymon
@@ -923,8 +928,9 @@ GLOBAL EvosAttacksPointers
ld c, a
ld b, 0
ld hl, EvosAttacksPointers
+rept 2
add hl, bc
- add hl, bc
+endr
ld a, BANK(EvosAttacksPointers)
call GetFarHalfword
pop bc
@@ -936,9 +942,9 @@ GLOBAL EvosAttacksPointers
pop bc
ret nz
+rept 3
inc hl
- inc hl
- inc hl
+endr
; Moon Stone's constant from Pokémon Red is used.
; No Pokémon evolve with Burn Heal,
@@ -2119,8 +2125,9 @@ Functionf395: ; f395 (3:7395)
jr z, .asm_f3a9
cp d
jr z, .done
+rept 2
inc hl
- inc hl
+endr
jr .next
.asm_f3a9
@@ -2322,8 +2329,9 @@ XSpecial: ; f4c5
.asm_f4ce
cp [hl]
jr z, .asm_f4d5
+rept 2
inc hl
- inc hl
+endr
jr .asm_f4ce
.asm_f4d5