ref: f35da53f88de3d4307b12fb8f85df09259602684
parent: c5588d3b9c71e36977ec6ecfa8b633228540e53d
author: IIMarckus <iimarckus@gmail.com>
date: Tue Oct 26 18:46:59 EDT 2010
Add mart data. Still need to find the pointer/routine for it. hg-commit-id: a2daae171caa
--- a/pokered.asm
+++ b/pokered.asm
@@ -1081,7 +1081,54 @@
.GotBank\@
jp $24FD
-INCBIN "baserom.gbc",$1665,$3A87 - $1665
+INCBIN "baserom.gbc",$1665,$2442 - $1665
+; XXX where is the pointer to this data?
+MartInventories: ; 2442
+ ; first byte $FE, next byte # of items, last byte $FF
+; Viridian
+ db $FE,4,POKE_BALL,ANTIDOTE,PARLYZ_HEAL,BURN_HEAL,$FF
+; Pewter
+ db $FE,7,POKE_BALL,POTION,ESCAPE_ROPE,ANTIDOTE,BURN_HEAL,AWAKENING
+ db PARLYZ_HEAL,$FF
+; Cerulean
+ db $FE,7,POKE_BALL,POTION,REPEL,ANTIDOTE,BURN_HEAL,AWAKENING
+ db PARLYZ_HEAL,$FF
+; Bike shop
+ db $FE,1,BICYCLE,$FF
+; Vermilion
+ db $FE,6,POKE_BALL,SUPER_POTION,ICE_HEAL,AWAKENING,PARLYZ_HEAL
+ db REPEL,$FF
+; Lavender
+ db $FE,9,GREAT_BALL,SUPER_POTION,REVIVE,ESCAPE_ROPE,SUPER_REPEL
+ db ANTIDOTE,BURN_HEAL,ICE_HEAL,PARLYZ_HEAL,$FF
+; Celadon Dept. Store 2F (1)
+ db $FE,9,GREAT_BALL,SUPER_POTION,REVIVE,SUPER_REPEL,ANTIDOTE
+ db BURN_HEAL,ICE_HEAL,AWAKENING,PARLYZ_HEAL,$FF
+; Celadon Dept. Store 2F (2)
+ db $FE,9,TM_32,TM_33,TM_02,TM_07,TM_37,TM_01,TM_05,TM_09,TM_17,$FF
+; Celadon Dept. Store 4F
+ db $FE,5,POKE_DOLL,FIRE_STONE,THUNDER_STONE,WATER_STONE,LEAF_STONE,$FF
+; Celadon Dept. Store 5F (1)
+ db $FE,7,X_ACCURACY,GUARD_SPEC_,DIRE_HIT,X_ATTACK,X_DEFEND,X_SPEED
+ db X_SPECIAL,$FF
+; Celadon Dept. Store 5F (2)
+ db $FE,5,HP_UP,PROTEIN,IRON,CARBOS,CALCIUM,$FF
+; Fuchsia
+ db $FE,6,ULTRA_BALL,GREAT_BALL,SUPER_POTION,REVIVE,FULL_HEAL
+ db SUPER_REPEL,$FF
+; unused?
+ db $FE,5,GREAT_BALL,HYPER_POTION,SUPER_POTION,FULL_HEAL,REVIVE,$FF
+; Cinnabar
+ db $FE,7,ULTRA_BALL,GREAT_BALL,HYPER_POTION,MAX_REPEL,ESCAPE_ROPE
+ db FULL_HEAL,REVIVE,$FF
+; Saffron
+ db $FE,6,GREAT_BALL,HYPER_POTION,MAX_REPEL,ESCAPE_ROPE,FULL_HEAL
+ db REVIVE,$FF
+; Indigo
+ db $FE,7,ULTRA_BALL,GREAT_BALL,FULL_RESTORE,MAX_POTION,FULL_HEAL
+ db REVIVE,MAX_REPEL,$FF
+
+INCBIN "baserom.gbc",$24D6,$3A87 - $24D6
AddNTimes: ; 3A87
; add bc to hl a times