summaryrefslogtreecommitdiff
path: root/items
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-07-24 19:27:21 -0700
committeryenatch <yenatch@gmail.com>2014-07-24 19:27:21 -0700
commit3fb29975cac3027b7b7a0b52f58ae6e521045bd8 (patch)
tree95ab8597c1436a678c7cdf10a4fbcccbaefa1cce /items
parentab0ca2b16a6c9bdc00e54174498ab3c935cc2d70 (diff)
Relabel GetItemDescription -> PrintItemDescription.
Diffstat (limited to 'items')
-rw-r--r--items/item_descriptions.asm21
1 files changed, 12 insertions, 9 deletions
diff --git a/items/item_descriptions.asm b/items/item_descriptions.asm
index ee54c526d..85aa7de7b 100644
--- a/items/item_descriptions.asm
+++ b/items/item_descriptions.asm
@@ -1,23 +1,26 @@
-GetItemDescription: ; 0x1c8955
- ld a, [$cf60]
+PrintItemDescription: ; 0x1c8955
+; Print the description for item [CurSpecies] at de.
+
+ ld a, [CurSpecies]
cp TM_01
- jr c, .nomovedesc ; if not a TM, use a predefined string
- ld [$d106], a
+ jr c, .not_a_tm
+
+ ld [CurItem], a
push de
- callba Function2c7b6
+ callba GetTMHMItemMove
pop hl
ld a, [$d265]
- ld [$cf60], a
+ ld [CurSpecies], a
predef PrintMoveDesc
ret
-.nomovedesc
+.not_a_tm
push de
ld hl, ItemDescriptions
- ld a, [$cf60]
+ ld a, [CurSpecies]
dec a
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
add hl, bc
ld e, [hl]