shithub: pokecrystal

Download patch

ref: 2b882b1ef941a8d17e871b970fe3de360530177c
parent: 094e67f0a0fea8a664cef7577d93d352735c4c7d
author: yenatch <[email protected]>
date: Sun Feb 23 17:25:11 EST 2014

Trade graphics in gfx/trade.

binary files /dev/null b/gfx/trade/arrow.2bpp differ
binary files /dev/null b/gfx/trade/ball.2bpp differ
binary files /dev/null b/gfx/trade/bubble.2bpp differ
binary files /dev/null b/gfx/trade/cable.2bpp differ
binary files /dev/null b/gfx/trade/game_boy.lz differ
binary files /dev/null b/gfx/trade/poof.2bpp differ
--- a/main.asm
+++ b/main.asm
@@ -34470,18 +34470,18 @@
 	ld bc, $0800
 	ld a, $7f
 	call ByteFill
-	ld hl, $599b
+	ld hl, TradeGameBoyLZ
 	ld de, $9310
 	call Decompress
-	ld hl, $591b
+	ld hl, TradeArrowGFX
 	ld de, $8ed0
 	ld bc, $0010
-	ld a, $a
+	ld a, BANK(TradeArrowGFX)
 	call FarCopyBytes
-	ld hl, $592b
+	ld hl, TradeArrowGFX + $10
 	ld de, $8ee0
 	ld bc, $0010
-	ld a, $a
+	ld a, BANK(TradeArrowGFX)
 	call FarCopyBytes
 	xor a
 	ld [hSCX], a
@@ -35732,17 +35732,17 @@
 
 Function2982b: ; 2982b
 	call DelayFrame
-	ld de, $5adb
+	ld de, TradeBallGFX
 	ld hl, $8620
-	ld bc, $0a06
+	lb bc, BANK(TradeBallGFX), $6
 	call Request2bpp
-	ld de, $5b3b
+	ld de, TradePoofGFX
 	ld hl, $8680
-	ld bc, $0a0c
+	lb bc, BANK(TradePoofGFX), $c
 	call Request2bpp
-	ld de, $593b
+	ld de, TradeCableGFX
 	ld hl, $8740
-	ld bc, $0a04
+	lb bc, BANK(TradeCableGFX), $4
 	call Request2bpp
 	xor a
 	ld hl, $c300
@@ -35755,9 +35755,9 @@
 	call DelayFrame
 	ld e, $3
 	callab Function8e83f
-	ld de, $595b
+	ld de, TradeBubbleGFX
 	ld hl, $8720
-	ld bc, $0a04
+	lb bc, BANK(TradeBubbleGFX), $4
 	call Request2bpp
 	xor a
 	ld hl, $c300
@@ -35792,7 +35792,14 @@
 	ret
 ; 29893
 
-INCBIN "baserom.gbc", $29893, $29bfb - $29893
+INCBIN "baserom.gbc", $29893, $2991b - $29893
+
+TradeArrowGFX:  INCBIN "gfx/trade/arrow.2bpp"
+TradeCableGFX:  INCBIN "gfx/trade/cable.2bpp"
+TradeBubbleGFX: INCBIN "gfx/trade/bubble.2bpp"
+TradeGameBoyLZ: INCBIN "gfx/trade/game_boy.lz"
+TradeBallGFX:   INCBIN "gfx/trade/ball.2bpp"
+TradePoofGFX:   INCBIN "gfx/trade/poof.2bpp"
 
 Function29bfb: ; 29bfb
 	ld hl, PartySpecies