shithub: pokecrystal

Download patch

ref: 3a6e587121e4eed23545d1911bb5a05cd4f95f6b
parent: bb8990dc3cb19787e08c29409cfc674e2478fbc9
author: IIMarckus <[email protected]>
date: Thu Jul 25 02:33:28 EDT 2013

Add Time Capsule item conversions.

From http://forums.glitchcity.info/index.php/topic,6719.msg190623/topicseen.html#msg190623

--- a/main.asm
+++ b/main.asm
@@ -10053,7 +10053,28 @@
 
 SECTION "bankA",DATA,BANK[$A]
 
-INCBIN "baserom.gbc", $28000, $2a2a0 - $28000
+INCBIN "baserom.gbc", $28000, $28785 - $28000
+
+TimeCapsuleItemConversions: ; 0x28785
+; Pokémon traded from RBY do not have held items, so GSC usually interprets the
+; catch rate as an item. However, if the catch rate appears in this table, the
+; item associated with the table entry is used instead.
+
+	db 25, LEFTOVERS
+	db 45, BITTER_BERRY
+	db 50, GOLD_BERRY
+	db 90, BERRY
+	db 100, BERRY
+	db 120, BERRY
+	db 135, BERRY
+	db 190, BERRY
+	db 195, BERRY
+	db 220, BERRY
+	db 250, BERRY
+	db 255, BERRY
+	db 0
+
+INCBIN "baserom.gbc", $2879e, $2a2a0 - $2879e
 
 SpecialRoamMons: ; 2a2a0
 ; initialize RoamMon structs