diff clojure/com/aurellem/exp/item_bridge.clj @ 176:95b2758dd517

wrote functions to read and write pokemon DV values and status
author Robert McIntyre <rlm@mit.edu>
date Wed, 21 Mar 2012 22:13:43 -0500
parents 5ce074824fac
children d63886d63b2f
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/item_bridge.clj	Wed Mar 21 18:17:37 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/item_bridge.clj	Wed Mar 21 22:13:43 2012 -0500
     1.3 @@ -51,11 +51,12 @@
     1.4  
     1.5  (defn capture-program-counter
     1.6    [^SaveState state ticks]
     1.7 -  (set-state! state)
     1.8 +  (tick state)
     1.9 +  
    1.10    (loop [i 0
    1.11           pcs []]
    1.12      (if (= i ticks)
    1.13 -      pcs
    1.14 +      (set pcs)
    1.15        (do 
    1.16          (com.aurellem.gb.Gb/tick)
    1.17          (recur (inc i)