Mercurial > vba-clojure
view clojure/com/aurellem/gb/hxc.clj @ 222:c9a855de1d07
enabled pokedex printing.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 24 Mar 2012 03:10:56 -0500 |
parents | ca9d2897435b |
children | 5b59c6f17cd5 |
line wrap: on
line source
1 (ns com.aurellem.gb.hxc2 (:use (com.aurellem.gb assembly characters gb-driver util3 constants))4 (:use (com.aurellem.world practice))5 (:import [com.aurellem.gb.gb_driver SaveState]))8 (def hxc-pokenames9 "The hardcoded names of the 190 species in memory. List begins at ROM@E8000."10 (let [count-species 19011 name-length 10]12 (map character-codes->str13 (partition name-length14 (take (* count-species name-length)15 (drop 0xE800016 (rom(root))))))))18 (def hxc-items19 "The hardcoded names of the items in memory. List begins at ROM@45B7 "20 (map character-codes->str21 (take-nth 222 (partition-by #(= % 0x50)23 (take 120024 (drop 0x45B7 (rom (root))))))))25 (def hxc-titles26 "The hardcoded names of the trainer titles in memory. List begins at27 ROM@27E77"28 (map character-codes->str29 (take-nth 230 (partition-by #(= 0x50 %)31 (take 19632 (drop 0x27E7733 (rom (root))))))))36 (def hxc-pokedex37 "The hardcoded pokedex entries in memory. List begins at38 ROM@B8000, shortly before move names."39 (map character-codes->str40 (take-nth 241 (partition-by #(= % 0x50)42 (take 1475443 (drop 0xB800044 (rom (root))))))))45 (def hxc-moves46 "The hardcoded move names in memory. List begins at ROM@BC000"47 (map character-codes->str48 (take-nth 249 (partition-by #(= % 0x50)50 (take 155151 (drop 0xBC00052 (rom (root))))))))56 (def hxc-places57 "The hardcoded place names in memory. List begins at58 ROM@71500. Cinnabar Mansion is dynamically calculated."59 (map character-codes->str60 (take-nth 261 (partition-by #(= % 0x50)62 (take 56063 (drop 0x7150064 (rom (root))))))))67 (def hxc-dialog68 "The hardcoded dialogue in memory, including in-game alerts. List begins at ROM@98000."69 (character-codes->str(take 0x0F72870 (drop (+ 0x98000)71 (rom (root))))))73 (def hxc-later74 "Running this code produces, e.g. hardcoded names NPCs give75 their pokemon. Will sort through it later."76 (print (character-codes->str(take 1000077 (drop 0x7159778 (rom (root)))))))80 (let [dex81 (partition-by #(= 0x50 %)82 (take 254083 (drop 0x4068784 (rom (root)))))]85 (def dex dex)86 (def hxc-species87 (map character-codes->str88 (take-nth 4 dex))))