diff clojure/com/aurellem/exp/pokemon.clj @ 149:79ffbd639b41

made a map of what I know about pokemon layout so far.
author Robert McIntyre <rlm@mit.edu>
date Mon, 19 Mar 2012 23:27:43 -0500
parents 06426d25c65b
children 544a97ac3d8a
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/pokemon.clj	Mon Mar 19 23:14:21 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/pokemon.clj	Mon Mar 19 23:27:43 2012 -0500
     1.3 @@ -120,7 +120,7 @@
     1.4        (map (fn [character-code line]
     1.5               (println
     1.6                (format "0x%04X: " line)
     1.7 -                      (str (character-code->character character-code))))
     1.8 +              (str (character-code->character character-code))))
     1.9             (subvec (vec (memory state)) begin end)
    1.10             (range begin end)))
    1.11       state)
    1.12 @@ -396,8 +396,6 @@
    1.13  ;; two canidates : 0xD162 or 0xDA7F
    1.14  ;; they seem to always sum to 6...
    1.15  
    1.16 -
    1.17 -
    1.18  ;; try to set both of them when having only one pokemon.
    1.19  
    1.20  (defn change-party-number [^SaveState state new-num]
    1.21 @@ -452,7 +450,6 @@
    1.22        (concat (str->character-codes new-name) [end-of-name-marker])))
    1.23    ([n new-name]
    1.24       (rename-pokemon @current-state n new-name)))
    1.25 -                      
    1.26  
    1.27  ;; on further analysis, it appears that the original
    1.28  ;; trainer info for each pokemon is also stored together,
    1.29 @@ -490,4 +487,5 @@
    1.30  ;; PIKACHU stops following if you set it's OT to another name
    1.31  ;; and then back to you own.
    1.32  ;; But not if you set it to your own name, obviously.
    1.33 -     
    1.34 \ No newline at end of file
    1.35 +
    1.36 +