Mercurial > vba-clojure
diff org/rom.org @ 371:b477970d0b7a
Added more sandbox stuff in rom.org to show how the memory is laid out.
author | Dylan Holmes <ocsenave@gmail.com> |
---|---|
date | Mon, 09 Apr 2012 01:40:26 -0500 |
parents | 5aabbe326eb0 |
children | 998702f021e3 |
line wrap: on
line diff
1.1 --- a/org/rom.org Sun Apr 08 07:59:15 2012 -0500 1.2 +++ b/org/rom.org Mon Apr 09 01:40:26 2012 -0500 1.3 @@ -75,7 +75,7 @@ 1.4 1.5 Here you can see the raw data in three stages: in the first stage, we 1.6 just grab the first few bytes starting from position 0xE8000. In the 1.7 -second stage, we partition it into ten-letter chunks to show you 1.8 +second stage, we partition the bytes into ten-letter chunks to show you 1.9 where the names begin and end. In the final stage, we convert each 1.10 byte into the letter it represents using the =character-codes->str= 1.11 function. (0x50 is rendered as the symbol \ldquo{} =#= \rdquo{} for 1.12 @@ -87,6 +87,7 @@ 1.13 constants)) 1.14 (:import [com.aurellem.gb.gb_driver SaveState])) 1.15 1.16 + 1.17 (println (take 100 (drop 0xE8000 (rom)))) 1.18 1.19 (println (partition 10 (take 100 (drop 0xE8000 (rom))))) 1.20 @@ -157,8 +158,9 @@ 1.21 ([] (hxc-pokemon-base com.aurellem.gb.gb-driver/original-rom)) 1.22 ([rom] 1.23 (let [entry-size 28 1.24 - pkmn-count (count (hxc-pokedex-text rom)) 1.25 + 1.26 pokemon (rest (hxc-pokedex-names)) 1.27 + pkmn-count (inc(count pokemon)) 1.28 types (apply assoc {} 1.29 (interleave 1.30 (range) 1.31 @@ -557,6 +559,36 @@ 1.32 1.33 * Items 1.34 ** Item names 1.35 + 1.36 +*** See the data 1.37 +#+begin_src clojure :exports both :results output 1.38 +(ns com.aurellem.gb.hxc 1.39 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.40 + constants)) 1.41 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.42 + 1.43 +(println (take 100 (drop 0x045B7 (rom)))) 1.44 + 1.45 +(println 1.46 + (partition-by 1.47 + (partial = 0x50) 1.48 + (take 100 (drop 0x045B7 (rom))))) 1.49 + 1.50 +(println 1.51 + (map character-codes->str 1.52 + (partition-by 1.53 + (partial = 0x50) 1.54 + (take 100 (drop 0x045B7 (rom)))))) 1.55 + 1.56 + 1.57 +#+end_src 1.58 + 1.59 +#+results: 1.60 +: (140 128 146 147 132 145 127 129 128 139 139 80 148 139 147 145 128 127 129 128 139 139 80 134 145 132 128 147 127 129 128 139 139 80 143 142 138 186 127 129 128 139 139 80 147 142 150 141 127 140 128 143 80 129 136 130 152 130 139 132 80 230 230 230 230 230 80 146 128 133 128 145 136 127 129 128 139 139 80 143 142 138 186 131 132 151 80 140 142 142 141 127 146 147 142 141 132 80 128 141) 1.61 +: ((140 128 146 147 132 145 127 129 128 139 139) (80) (148 139 147 145 128 127 129 128 139 139) (80) (134 145 132 128 147 127 129 128 139 139) (80) (143 142 138 186 127 129 128 139 139) (80) (147 142 150 141 127 140 128 143) (80) (129 136 130 152 130 139 132) (80) (230 230 230 230 230) (80) (146 128 133 128 145 136 127 129 128 139 139) (80) (143 142 138 186 131 132 151) (80) (140 142 142 141 127 146 147 142 141 132) (80) (128 141)) 1.62 +: (MASTER BALL # ULTRA BALL # GREAT BALL # POKé BALL # TOWN MAP # BICYCLE # ????? # SAFARI BALL # POKéDEX # MOON STONE # AN) 1.63 + 1.64 +*** Automatically grab the data 1.65 #+name: item-names 1.66 #+begin_src clojure 1.67 1.68 @@ -572,6 +604,55 @@ 1.69 #+end_src 1.70 1.71 ** Item prices 1.72 + 1.73 +*** 1.74 +#+begin_src clojure :exports both :results output 1.75 +(ns com.aurellem.gb.hxc 1.76 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.77 + constants)) 1.78 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.79 + 1.80 +(println (take 90 (drop 0x4495 (rom)))) 1.81 + 1.82 +(println 1.83 + (partition 3 1.84 + (take 90 (drop 0x4495 (rom))))) 1.85 + 1.86 +(println 1.87 + (partition 3 1.88 + (map hex 1.89 + (take 90 (drop 0x4495 (rom)))))) 1.90 + 1.91 +(println 1.92 + (map decode-bcd 1.93 + (map butlast 1.94 + (partition 3 1.95 + (take 90 (drop 0x4495 (rom))))))) 1.96 + 1.97 +(println 1.98 + (map 1.99 + vector 1.100 + (hxc-items (rom)) 1.101 + (map decode-bcd 1.102 + (map butlast 1.103 + (partition 3 1.104 + (take 90 (drop 0x4495 (rom)))))))) 1.105 + 1.106 + 1.107 + 1.108 + 1.109 + 1.110 +#+end_src 1.111 + 1.112 +#+results: 1.113 +: (0 0 0 18 0 0 6 0 0 2 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 1 0 0 2 80 0 2 80 0 2 0 0 2 0 0 48 0 0 37 0 0 21 0 0 7 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 80 0 3 80 0) 1.114 +: ((0 0 0) (18 0 0) (6 0 0) (2 0 0) (0 0 0) (0 0 0) (0 0 0) (16 0 0) (0 0 0) (0 0 0) (1 0 0) (2 80 0) (2 80 0) (2 0 0) (2 0 0) (48 0 0) (37 0 0) (21 0 0) (7 0 0) (3 0 0) (0 0 0) (0 0 0) (0 0 0) (0 0 0) (0 0 0) (0 0 0) (0 0 0) (0 0 0) (5 80 0) (3 80 0)) 1.115 +: ((0x0 0x0 0x0) (0x12 0x0 0x0) (0x6 0x0 0x0) (0x2 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x10 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x1 0x0 0x0) (0x2 0x50 0x0) (0x2 0x50 0x0) (0x2 0x0 0x0) (0x2 0x0 0x0) (0x30 0x0 0x0) (0x25 0x0 0x0) (0x15 0x0 0x0) (0x7 0x0 0x0) (0x3 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x0 0x0 0x0) (0x5 0x50 0x0) (0x3 0x50 0x0)) 1.116 +: (0 1200 600 200 0 0 0 1000 0 0 100 250 250 200 200 3000 2500 1500 700 300 0 0 0 0 0 0 0 0 550 350) 1.117 +: ([:master-ball 0] [:ultra-ball 1200] [:great-ball 600] [:poké-ball 200] [:town-map 0] [:bicycle 0] [:????? 0] [:safari-ball 1000] [:pokédex 0] [:moon-stone 0] [:antidote 100] [:burn-heal 250] [:ice-heal 250] [:awakening 200] [:parlyz-heal 200] [:full-restore 3000] [:max-potion 2500] [:hyper-potion 1500] [:super-potion 700] [:potion 300] [:boulderbadge 0] [:cascadebadge 0] [:thunderbadge 0] [:rainbowbadge 0] [:soulbadge 0] [:marshbadge 0] [:volcanobadge 0] [:earthbadge 0] [:escape-rope 550] [:repel 350]) 1.118 + 1.119 + 1.120 +*** 1.121 #+name: item-prices 1.122 #+begin_src clojure 1.123 (defn hxc-item-prices 1.124 @@ -635,6 +716,33 @@ 1.125 1.126 * Types 1.127 ** Names of types 1.128 +*** 1.129 +#+begin_src clojure :exports both :results output 1.130 +(ns com.aurellem.gb.hxc 1.131 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.132 + constants)) 1.133 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.134 + 1.135 +(println (take 90 (drop 0x27D99 (rom)))) 1.136 + 1.137 +(println 1.138 + (partition-by (partial = 0x50) 1.139 + (take 90 (drop 0x27D99 (rom))))) 1.140 + 1.141 +(println 1.142 + (map character-codes->str 1.143 + (partition-by (partial = 0x50) 1.144 + (take 90 (drop 0x27D99 (rom)))))) 1.145 + 1.146 +#+end_src 1.147 + 1.148 +#+results: 1.149 +: (141 142 145 140 128 139 80 133 136 134 135 147 136 141 134 80 133 139 152 136 141 134 80 143 142 136 146 142 141 80 133 136 145 132 80 150 128 147 132 145 80 134 145 128 146 146 80 132 139 132 130 147 145 136 130 80 143 146 152 130 135 136 130 80 136 130 132 80 134 145 142 148 141 131 80 145 142 130 138 80 129 136 145 131 80 129 148 134 80 134) 1.150 +: ((141 142 145 140 128 139) (80) (133 136 134 135 147 136 141 134) (80) (133 139 152 136 141 134) (80) (143 142 136 146 142 141) (80) (133 136 145 132) (80) (150 128 147 132 145) (80) (134 145 128 146 146) (80) (132 139 132 130 147 145 136 130) (80) (143 146 152 130 135 136 130) (80) (136 130 132) (80) (134 145 142 148 141 131) (80) (145 142 130 138) (80) (129 136 145 131) (80) (129 148 134) (80) (134)) 1.151 +: (NORMAL # FIGHTING # FLYING # POISON # FIRE # WATER # GRASS # ELECTRIC # PSYCHIC # ICE # GROUND # ROCK # BIRD # BUG # G) 1.152 + 1.153 + 1.154 +*** 1.155 #+name: type-names 1.156 #+begin_src clojure 1.157 (def hxc-types 1.158 @@ -645,6 +753,63 @@ 1.159 #+end_src 1.160 1.161 ** Type effectiveness 1.162 +*** 1.163 +#+begin_src clojure :exports both :results output 1.164 +(ns com.aurellem.gb.hxc 1.165 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.166 + constants)) 1.167 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.168 + 1.169 + 1.170 +;; POKEMON TYPES 1.171 + 1.172 +(println pkmn-types) ;; these are the pokemon types 1.173 +(println (map vector (range) pkmn-types)) ;; each type has an id number. 1.174 + 1.175 +(newline) 1.176 + 1.177 + 1.178 + 1.179 + 1.180 +;;; TYPE EFFECTIVENESS 1.181 + 1.182 +(println (take 15 (drop 0x3E62D (rom)))) 1.183 +(println (partition 3 (take 15 (drop 0x3E62D (rom))))) 1.184 + 1.185 +(println 1.186 + (map 1.187 + (fn [[atk-type def-type multiplier]] 1.188 + (list atk-type def-type (/ multiplier 10.))) 1.189 + 1.190 + (partition 3 1.191 + (take 15 (drop 0x3E62D (rom)))))) 1.192 + 1.193 + 1.194 +(println 1.195 + (map 1.196 + (fn [[atk-type def-type multiplier]] 1.197 + [ 1.198 + (get pkmn-types atk-type) 1.199 + (get pkmn-types def-type) 1.200 + (/ multiplier 10.) 1.201 + ]) 1.202 + 1.203 + (partition 3 1.204 + (take 15 (drop 0x3E62D (rom)))))) 1.205 + 1.206 +#+end_src 1.207 + 1.208 +#+results: 1.209 +: [:normal :fighting :flying :poison :ground :rock :bird :bug :ghost :A :B :C :D :E :F :G :H :I :J :K :fire :water :grass :electric :psychic :ice :dragon] 1.210 +: ([0 :normal] [1 :fighting] [2 :flying] [3 :poison] [4 :ground] [5 :rock] [6 :bird] [7 :bug] [8 :ghost] [9 :A] [10 :B] [11 :C] [12 :D] [13 :E] [14 :F] [15 :G] [16 :H] [17 :I] [18 :J] [19 :K] [20 :fire] [21 :water] [22 :grass] [23 :electric] [24 :psychic] [25 :ice] [26 :dragon]) 1.211 +: 1.212 +: (0 5 5 0 8 0 8 8 20 20 7 20 20 5 5) 1.213 +: ((0 5 5) (0 8 0) (8 8 20) (20 7 20) (20 5 5)) 1.214 +: ((0 5 0.5) (0 8 0.0) (8 8 2.0) (20 7 2.0) (20 5 0.5)) 1.215 +: ([:normal :rock 0.5] [:normal :ghost 0.0] [:ghost :ghost 2.0] [:fire :bug 2.0] [:fire :rock 0.5]) 1.216 + 1.217 + 1.218 +*** 1.219 #+name: type-advantage 1.220 #+begin_src clojure 1.221 (defn hxc-advantage 1.222 @@ -669,6 +834,36 @@ 1.223 1.224 * Moves 1.225 ** Names of moves 1.226 +*** See the data 1.227 +#+begin_src clojure :exports both :results output 1.228 +(ns com.aurellem.gb.hxc 1.229 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.230 + constants)) 1.231 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.232 + 1.233 +(println (take 100 (drop 0xBC000 (rom)))) 1.234 + 1.235 +(println 1.236 + (partition-by 1.237 + (partial = 0x50) 1.238 + (take 100 (drop 0xBC000 (rom))))) 1.239 + 1.240 +(println 1.241 + (map character-codes->str 1.242 + (partition-by 1.243 + (partial = 0x50) 1.244 + (take 100 (drop 0xBC000 (rom)))))) 1.245 + 1.246 + 1.247 +#+end_src 1.248 + 1.249 +#+results: 1.250 +: (143 142 148 141 131 80 138 128 145 128 147 132 127 130 135 142 143 80 131 142 148 129 139 132 146 139 128 143 80 130 142 140 132 147 127 143 148 141 130 135 80 140 132 134 128 127 143 148 141 130 135 80 143 128 152 127 131 128 152 80 133 136 145 132 127 143 148 141 130 135 80 136 130 132 127 143 148 141 130 135 80 147 135 148 141 131 132 145 143 148 141 130 135 80 146 130 145 128 147 130) 1.251 +: ((143 142 148 141 131) (80) (138 128 145 128 147 132 127 130 135 142 143) (80) (131 142 148 129 139 132 146 139 128 143) (80) (130 142 140 132 147 127 143 148 141 130 135) (80) (140 132 134 128 127 143 148 141 130 135) (80) (143 128 152 127 131 128 152) (80) (133 136 145 132 127 143 148 141 130 135) (80) (136 130 132 127 143 148 141 130 135) (80) (147 135 148 141 131 132 145 143 148 141 130 135) (80) (146 130 145 128 147 130)) 1.252 +: (POUND # KARATE CHOP # DOUBLESLAP # COMET PUNCH # MEGA PUNCH # PAY DAY # FIRE PUNCH # ICE PUNCH # THUNDERPUNCH # SCRATC) 1.253 + 1.254 +*** Automatically grab the data 1.255 + 1.256 #+name: move-names 1.257 #+begin_src clojure 1.258 (def hxc-move-names 1.259 @@ -743,7 +938,38 @@ 1.260 #+end_src 1.261 1.262 ** TM and HM moves 1.263 +*** 1.264 +#+begin_src clojure :exports both :results output 1.265 +(ns com.aurellem.gb.hxc 1.266 + (:use (com.aurellem.gb assembly characters gb-driver util mem-util 1.267 + constants)) 1.268 + (:import [com.aurellem.gb.gb_driver SaveState])) 1.269 1.270 + 1.271 +(println (hxc-move-names)) 1.272 +(println (map vector (rest(range)) (hxc-move-names))) 1.273 + 1.274 +(newline) 1.275 + 1.276 +(println (take 55 (drop 0x1232D (rom)))) 1.277 + 1.278 +(println 1.279 + (interpose "." 1.280 + (map 1.281 + (zipmap (rest (range)) (hxc-move-names)) 1.282 + (take 55 (drop 0x1232D (rom)))))) 1.283 + 1.284 +#+end_src 1.285 + 1.286 +#+results: 1.287 +: (POUND KARATE CHOP DOUBLESLAP COMET PUNCH MEGA PUNCH PAY DAY FIRE PUNCH ICE PUNCH THUNDERPUNCH SCRATCH VICEGRIP GUILLOTINE RAZOR WIND SWORDS DANCE CUT GUST WING ATTACK WHIRLWIND FLY BIND SLAM VINE WHIP STOMP DOUBLE KICK MEGA KICK JUMP KICK ROLLING KICK SAND-ATTACK HEADBUTT HORN ATTACK FURY ATTACK HORN DRILL TACKLE BODY SLAM WRAP TAKE DOWN THRASH DOUBLE-EDGE TAIL WHIP POISON STING TWINEEDLE PIN MISSILE LEER BITE GROWL ROAR SING SUPERSONIC SONICBOOM DISABLE ACID EMBER FLAMETHROWER MIST WATER GUN HYDRO PUMP SURF ICE BEAM BLIZZARD PSYBEAM BUBBLEBEAM AURORA BEAM HYPER BEAM PECK DRILL PECK SUBMISSION LOW KICK COUNTER SEISMIC TOSS STRENGTH ABSORB MEGA DRAIN LEECH SEED GROWTH RAZOR LEAF SOLARBEAM POISONPOWDER STUN SPORE SLEEP POWDER PETAL DANCE STRING SHOT DRAGON RAGE FIRE SPIN THUNDERSHOCK THUNDERBOLT THUNDER WAVE THUNDER ROCK THROW EARTHQUAKE FISSURE DIG TOXIC CONFUSION PSYCHIC HYPNOSIS MEDITATE AGILITY QUICK ATTACK RAGE TELEPORT NIGHT SHADE MIMIC SCREECH DOUBLE TEAM RECOVER HARDEN MINIMIZE SMOKESCREEN CONFUSE RAY WITHDRAW DEFENSE CURL BARRIER LIGHT SCREEN HAZE REFLECT FOCUS ENERGY BIDE METRONOME MIRROR MOVE SELFDESTRUCT EGG BOMB LICK SMOG SLUDGE BONE CLUB FIRE BLAST WATERFALL CLAMP SWIFT SKULL BASH SPIKE CANNON CONSTRICT AMNESIA KINESIS SOFTBOILED HI JUMP KICK GLARE DREAM EATER POISON GAS BARRAGE LEECH LIFE LOVELY KISS SKY ATTACK TRANSFORM BUBBLE DIZZY PUNCH SPORE FLASH PSYWAVE SPLASH ACID ARMOR CRABHAMMER EXPLOSION FURY SWIPES BONEMERANG REST ROCK SLIDE HYPER FANG SHARPEN CONVERSION TRI ATTACK SUPER FANG SLASH SUBSTITUTE STRUGGLE) 1.288 +: ([1 POUND] [2 KARATE CHOP] [3 DOUBLESLAP] [4 COMET PUNCH] [5 MEGA PUNCH] [6 PAY DAY] [7 FIRE PUNCH] [8 ICE PUNCH] [9 THUNDERPUNCH] [10 SCRATCH] [11 VICEGRIP] [12 GUILLOTINE] [13 RAZOR WIND] [14 SWORDS DANCE] [15 CUT] [16 GUST] [17 WING ATTACK] [18 WHIRLWIND] [19 FLY] [20 BIND] [21 SLAM] [22 VINE WHIP] [23 STOMP] [24 DOUBLE KICK] [25 MEGA KICK] [26 JUMP KICK] [27 ROLLING KICK] [28 SAND-ATTACK] [29 HEADBUTT] [30 HORN ATTACK] [31 FURY ATTACK] [32 HORN DRILL] [33 TACKLE] [34 BODY SLAM] [35 WRAP] [36 TAKE DOWN] [37 THRASH] [38 DOUBLE-EDGE] [39 TAIL WHIP] [40 POISON STING] [41 TWINEEDLE] [42 PIN MISSILE] [43 LEER] [44 BITE] [45 GROWL] [46 ROAR] [47 SING] [48 SUPERSONIC] [49 SONICBOOM] [50 DISABLE] [51 ACID] [52 EMBER] [53 FLAMETHROWER] [54 MIST] [55 WATER GUN] [56 HYDRO PUMP] [57 SURF] [58 ICE BEAM] [59 BLIZZARD] [60 PSYBEAM] [61 BUBBLEBEAM] [62 AURORA BEAM] [63 HYPER BEAM] [64 PECK] [65 DRILL PECK] [66 SUBMISSION] [67 LOW KICK] [68 COUNTER] [69 SEISMIC TOSS] [70 STRENGTH] [71 ABSORB] [72 MEGA DRAIN] [73 LEECH SEED] [74 GROWTH] [75 RAZOR LEAF] [76 SOLARBEAM] [77 POISONPOWDER] [78 STUN SPORE] [79 SLEEP POWDER] [80 PETAL DANCE] [81 STRING SHOT] [82 DRAGON RAGE] [83 FIRE SPIN] [84 THUNDERSHOCK] [85 THUNDERBOLT] [86 THUNDER WAVE] [87 THUNDER] [88 ROCK THROW] [89 EARTHQUAKE] [90 FISSURE] [91 DIG] [92 TOXIC] [93 CONFUSION] [94 PSYCHIC] [95 HYPNOSIS] [96 MEDITATE] [97 AGILITY] [98 QUICK ATTACK] [99 RAGE] [100 TELEPORT] [101 NIGHT SHADE] [102 MIMIC] [103 SCREECH] [104 DOUBLE TEAM] [105 RECOVER] [106 HARDEN] [107 MINIMIZE] [108 SMOKESCREEN] [109 CONFUSE RAY] [110 WITHDRAW] [111 DEFENSE CURL] [112 BARRIER] [113 LIGHT SCREEN] [114 HAZE] [115 REFLECT] [116 FOCUS ENERGY] [117 BIDE] [118 METRONOME] [119 MIRROR MOVE] [120 SELFDESTRUCT] [121 EGG BOMB] [122 LICK] [123 SMOG] [124 SLUDGE] [125 BONE CLUB] [126 FIRE BLAST] [127 WATERFALL] [128 CLAMP] [129 SWIFT] [130 SKULL BASH] [131 SPIKE CANNON] [132 CONSTRICT] [133 AMNESIA] [134 KINESIS] [135 SOFTBOILED] [136 HI JUMP KICK] [137 GLARE] [138 DREAM EATER] [139 POISON GAS] [140 BARRAGE] [141 LEECH LIFE] [142 LOVELY KISS] [143 SKY ATTACK] [144 TRANSFORM] [145 BUBBLE] [146 DIZZY PUNCH] [147 SPORE] [148 FLASH] [149 PSYWAVE] [150 SPLASH] [151 ACID ARMOR] [152 CRABHAMMER] [153 EXPLOSION] [154 FURY SWIPES] [155 BONEMERANG] [156 REST] [157 ROCK SLIDE] [158 HYPER FANG] [159 SHARPEN] [160 CONVERSION] [161 TRI ATTACK] [162 SUPER FANG] [163 SLASH] [164 SUBSTITUTE] [165 STRUGGLE]) 1.289 +: 1.290 +: (5 13 14 18 25 92 32 34 36 38 61 55 58 59 63 6 66 68 69 99 72 76 82 85 87 89 90 91 94 100 102 104 115 117 118 120 121 126 129 130 135 138 143 156 86 149 153 157 161 164 15 19 57 70 148) 1.291 +: (MEGA PUNCH . RAZOR WIND . SWORDS DANCE . WHIRLWIND . MEGA KICK . TOXIC . HORN DRILL . BODY SLAM . TAKE DOWN . DOUBLE-EDGE . BUBBLEBEAM . WATER GUN . ICE BEAM . BLIZZARD . HYPER BEAM . PAY DAY . SUBMISSION . COUNTER . SEISMIC TOSS . RAGE . MEGA DRAIN . SOLARBEAM . DRAGON RAGE . THUNDERBOLT . THUNDER . EARTHQUAKE . FISSURE . DIG . PSYCHIC . TELEPORT . MIMIC . DOUBLE TEAM . REFLECT . BIDE . METRONOME . SELFDESTRUCT . EGG BOMB . FIRE BLAST . SWIFT . SKULL BASH . SOFTBOILED . DREAM EATER . SKY ATTACK . REST . THUNDER WAVE . PSYWAVE . EXPLOSION . ROCK SLIDE . TRI ATTACK . SUBSTITUTE . CUT . FLY . SURF . STRENGTH . FLASH) 1.292 + 1.293 + 1.294 +*** 1.295 #+name: machines 1.296 #+begin_src clojure 1.297 (defn hxc-machines 1.298 @@ -927,13 +1153,14 @@ 1.299 below. Here are some notes for reading it: 1.300 1.301 - Whenever an effect has a chance of doing something (like a chance of 1.302 - poisoning the opponent), I list the chance as a hexadecimal amount out of 256 to avoid rounding errors. To convert the hex amount into a percentage, divide by 256. 1.303 + poisoning the opponent), I list the chance as a hexadecimal amount 1.304 + out of 256; this is to avoid rounding errors. To convert the hex amount into a percentage, divide by 256. 1.305 - For some effects, the description is too cumbersome to 1.306 write. Instead, I just write a move name 1.307 in parentheses, like: (leech seed). That move gives a characteristic example 1.308 of the effect. 1.309 - I use the abbreviations =atk=, =def=, =spd=, =spc=, =acr=, =evd= for 1.310 - attack, defense, speed, special, accuracy, and evasion. 1.311 + attack, defense, speed, special, accuracy, and evasiveness. 1.312 . 1.313 1.314