shithub: pokecrystal

Download patch

ref: 8aa08addbaa20969a8a4fafb7d6f91091e5d1cac
parent: 0c746447e709a9bcbfc57985abb463cc1eacc9a2
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Jul 28 21:13:25 EDT 2018

wLuckyNumberDigitsBuffer

--- a/engine/events/lucky_number.asm
+++ b/engine/events/lucky_number.asm
@@ -127,14 +127,14 @@
 	ld hl, wBuffer1
 	lb bc, PRINTNUM_LEADINGZEROS | 2, 5
 	call PrintNum
-	ld hl, wLuckyNumberDigit1Buffer
+	ld hl, wLuckyNumberDigitsBuffer
 	ld de, wLuckyIDNumber
 	lb bc, PRINTNUM_LEADINGZEROS | 2, 5
 	call PrintNum
 	ld b, 5
 	ld c, 0
-	ld hl, wLuckyNumberDigit5Buffer
-	ld de, wBuffer5
+	ld hl, wLuckyNumberDigitsBuffer + 4
+	ld de, wBuffer1 + 4
 .loop
 	ld a, [de]
 	cp [hl]
--- a/mobile/mobile_12_2.asm
+++ b/mobile/mobile_12_2.asm
@@ -268,7 +268,7 @@
 	call GetNick
 	ld h, d
 	ld l, e
-	ld de, wEndFlypoint
+	ld de, wd006
 	ld bc, 6
 	call CopyBytes
 	ld a, [wd003]
--- a/wram.asm
+++ b/wram.asm
@@ -1675,11 +1675,7 @@
 
 NEXTU ; d002
 ; lucky number show
-wLuckyNumberDigit1Buffer:: db
-wLuckyNumberDigit2Buffer:: db
-wLuckyNumberDigit3Buffer:: db
-wLuckyNumberDigit4Buffer:: db
-wLuckyNumberDigit5Buffer:: db
+wLuckyNumberDigitsBuffer:: ds 5
 
 NEXTU ; d002
 ; movement buffer data
@@ -1731,7 +1727,8 @@
 wd004:: db
 
 ; mobile?
-	ds 3
+	ds 1
+wd006:: ds 2
 wd008:: ds 2
 	ds 2
 wd00c:: ds 1