ref: 696cffd3ae51d23855a7eb1fc5b62e69198dbf36
parent: b6ac1018c29592d667a559016baa18301f21dad4
author: YamaArashi <shadow962@live.com>
date: Fri Aug 14 00:11:53 EDT 2015
item name length constant
--- a/constants/misc_constants.asm
+++ b/constants/misc_constants.asm
@@ -15,6 +15,7 @@
HOF_TEAM_CAPACITY EQU 50
NAME_LENGTH EQU 11
+ITEM_NAME_LENGTH EQU 13
A_BUTTON EQU %00000001
B_BUTTON EQU %00000010
--- a/scripts/route11gateupstairs.asm
+++ b/scripts/route11gateupstairs.asm
@@ -28,7 +28,7 @@
ld h, d
ld l, e
ld de, wOaksAideRewardItemName
- ld bc, $000d
+ ld bc, ITEM_NAME_LENGTH
call CopyData
predef OaksAideScript
ld a, [hOaksAideResult]
--- a/scripts/route15gateupstairs.asm
+++ b/scripts/route15gateupstairs.asm
@@ -17,7 +17,7 @@
call GetItemName
ld hl, wcd6d
ld de, wOaksAideRewardItemName
- ld bc, $000d
+ ld bc, ITEM_NAME_LENGTH
call CopyData
predef OaksAideScript
ld a, [hOaksAideResult]
--- a/scripts/route2gate.asm
+++ b/scripts/route2gate.asm
@@ -17,7 +17,7 @@
call GetItemName
ld hl, wcd6d
ld de, wOaksAideRewardItemName
- ld bc, $000d
+ ld bc, ITEM_NAME_LENGTH
call CopyData
predef OaksAideScript
ld a, [hOaksAideResult]
--- a/wram.asm
+++ b/wram.asm
@@ -289,7 +289,7 @@
wRedrawRowOrColumnSrcTiles:: ; cbfc
; the tiles of the row or column to be redrawn by RedrawRowOrColumn
- ds 20 * 2
+ ds SCREEN_WIDTH * 2
; coordinates of the position of the cursor for the top menu item (id 0)
wTopMenuItemY:: ; cc24