summaryrefslogtreecommitdiff
path: root/items
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-12-24 18:35:26 -0500
committeryenatch <yenatch@gmail.com>2013-12-24 20:49:14 -0500
commitfa1e93a870bf385c104959318ceefea750be3559 (patch)
tree14fef7e6bbf146cd3d09d60990a53dd0ac296d21 /items
parent2172461a60604d4ae1dfbcca9159ba91531cf328 (diff)
evolution prerequisites and no more incbins in item effects
Diffstat (limited to 'items')
-rw-r--r--items/item_effects.asm46
1 files changed, 22 insertions, 24 deletions
diff --git a/items/item_effects.asm b/items/item_effects.asm
index 9a0fba8c2..2d176911f 100644
--- a/items/item_effects.asm
+++ b/items/item_effects.asm
@@ -474,7 +474,7 @@ ParkBall: ; e8a2
call CloseSRAM
- ld hl, $6deb
+ ld hl, UnknownText_0xedeb
call PrintText
call Function4b6
@@ -486,7 +486,7 @@ ParkBall: ; e8a2
jr .asm_ebe2
.asm_ebd9
- ld hl, $6dc9
+ ld hl, UnknownText_0xedc9
.asm_ebdc
call PrintText
@@ -701,41 +701,39 @@ Function_0xecdd: ; ecdd
ld a, [TempEnemyMonSpecies]
dec a
ld c, a
- ld b, $0
- ld hl, $65b1
+ ld b, 0
+ ld hl, EvosAttacksPointers
add hl, bc
add hl, bc
- ld a, $10
+ ld a, BANK(EvosAttacksPointers)
call GetFarHalfword
-
pop bc
+
push bc
- ld a, $10
+ ld a, BANK(EvosAttacks)
call GetFarByte
-
- cp $2
+ cp EVOLVE_ITEM
pop bc
ret nz
+
inc hl
inc hl
inc hl
+
push bc
- ld a, $10
+ ld a, BANK(EvosAttacks)
call GetFarByte
-
- cp $a
+ cp MOON_STONE + 2 ; BURN_HEAL
pop bc
ret nz
- sla b
- jr c, .asm_ed0f
sla b
- jr nc, .asm_ed11
-
-.asm_ed0f
+ jr c, .max
+ sla b
+ jr nc, .done
+.max
ld b, $ff
-
-.asm_ed11
+.done
ret
; ed12
@@ -1200,16 +1198,16 @@ RareCandy: ; ef14
call Predef
ld hl, $c4a9
- ld b, $a
- ld c, $9
- call $0fe8
+ ld b, 10
+ ld c, 9
+ call TextBox
ld hl, $c4bf
ld bc, $0004
ld a, $28
call Predef
- call $0a80
+ call Functiona80
xor a
ld [MonType], a
@@ -2019,7 +2017,7 @@ Functionf419: ; f419 (3:7419)
ret
.asm_f440
push bc
- ld hl, $744a
+ ld hl, UnknownText_0xf44a
call Function1d67
pop bc
jr Functionf419