changeset 216:d7f2e0384d24

remove debug stuff from pokemon.clj
author Robert McIntyre <rlm@mit.edu>
date Fri, 23 Mar 2012 19:29:09 -0500
parents aba78e52faba
children 7ceaac84be57
files clojure/com/aurellem/exp/struggle.txt clojure/com/aurellem/gb/pokemon.clj
diffstat 2 files changed, 30 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/struggle.txt	Fri Mar 23 19:26:04 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/struggle.txt	Fri Mar 23 19:29:09 2012 -0500
     1.3 @@ -29,3 +29,32 @@
     1.4  syn-jiggly-3-pp syn-jiggly-2-pp syn-jiggly-1-pp syn-jiggly-0-pp))
     1.5  
     1.6  to generate the above, then filtered manually
     1.7 +
     1.8 +
     1.9 +
    1.10 +
    1.11 +(def jiggly-lvl-3 (read-state "jiggly-lvl-3"))
    1.12 +
    1.13 +(def jiggly-4-pp (read-state "jiggly-4-pp"))
    1.14 +
    1.15 +(def jiggly-3-pp (read-state "jiggly-3-pp"))
    1.16 +
    1.17 +(def jiggly-2-pp (read-state "jiggly-2-pp"))
    1.18 +
    1.19 +(def jiggly-1-pp (read-state "jiggly-1-pp"))
    1.20 +
    1.21 +(def jiggly-0-pp (read-state "jiggly-0-pp"))
    1.22 +
    1.23 +(def jiggly-struggle-once (read-state "jiggly-struggle-once"))
    1.24 +
    1.25 +
    1.26 +(def syn-jiggly-4-pp (read-state "syn-jiggly-4-pp"))
    1.27 +(def syn-jiggly-3-pp (read-state "syn-jiggly-3-pp"))
    1.28 +(def syn-jiggly-2-pp (read-state "syn-jiggly-2-pp"))
    1.29 +(def syn-jiggly-1-pp (read-state "syn-jiggly-1-pp"))
    1.30 +(def syn-jiggly-0-pp (read-state "syn-jiggly-0-pp")) 
    1.31 +
    1.32 +Turns out that the pp for the non-existent moves 
    1.33 +for the synthetic jigglypuff were not zeroed, causing 
    1.34 +struggle to fail. Not really an exciting conclusion, but 
    1.35 +there it is.
     2.1 --- a/clojure/com/aurellem/gb/pokemon.clj	Fri Mar 23 19:26:04 2012 -0500
     2.2 +++ b/clojure/com/aurellem/gb/pokemon.clj	Fri Mar 23 19:29:09 2012 -0500
     2.3 @@ -464,24 +464,7 @@
     2.4    ([poke-num new-pokemon-data]
     2.5       (edit-pokemon @current-state poke-num new-pokemon-data)))
     2.6  
     2.7 -
     2.8 -
     2.9 -(def jiggly-lvl-3 (read-state "jiggly-lvl-3"))
    2.10 -
    2.11 -(def jiggly-4-pp (read-state "jiggly-4-pp"))
    2.12 -
    2.13 -(def jiggly-3-pp (read-state "jiggly-3-pp"))
    2.14 -
    2.15 -(def jiggly-2-pp (read-state "jiggly-2-pp"))
    2.16 -
    2.17 -(def jiggly-1-pp (read-state "jiggly-1-pp"))
    2.18 -
    2.19 -(def jiggly-0-pp (read-state "jiggly-0-pp"))
    2.20 -
    2.21 -(def jiggly-struggle-once (read-state "jiggly-struggle-once"))
    2.22 -
    2.23 -
    2.24 -(def poke-syn-jiggly-4-pp
    2.25 +(def young-jigglypuff
    2.26    {:name "JIGGLYPUFF", :species :jigglypuff, :species2 :jigglypuff,
    2.27     :status :normal,
    2.28     :moves [[:sing {:pp-ups 0, :current-pp 4}]],
    2.29 @@ -493,10 +476,3 @@
    2.30     :stats {:level 3, :current-hp 5, :hp 20, :attack 8, :defense 6,
    2.31             :speed 6, :special 7}, 
    2.32     :ID 5195})
    2.33 -  
    2.34 -
    2.35 -(def syn-jiggly-4-pp (read-state "syn-jiggly-4-pp"))
    2.36 -(def syn-jiggly-3-pp (read-state "syn-jiggly-3-pp"))
    2.37 -(def syn-jiggly-2-pp (read-state "syn-jiggly-2-pp"))
    2.38 -(def syn-jiggly-1-pp (read-state "syn-jiggly-1-pp"))
    2.39 -(def syn-jiggly-0-pp (read-state "syn-jiggly-0-pp")) 
    2.40 \ No newline at end of file