Advertisement
Guest User

Untitled

a guest
Jan 14th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 22.56 KB | None | 0 0
  1.  
  2.  
  3. #python3
  4.  
  5. tmp1 = "atk def satk sdef spe acc eva all".split()
  6. tmp2 = ("Attack;Defense;Special Attack;Special Defense;"+
  7.     "Speed;Accuracy;Evasion;").split(';')
  8. statText = {short:long for short,long in zip(tmp1,tmp2)}
  9. statText['all'] = ("stats (Attack, Defense, " +
  10.     "Special Attack, Special Defense, and Speed)")
  11.  
  12.  
  13.  
  14. tmp1 = 'brn frz par slp psn tox cfn atr fln tri'.split()
  15. tmp2 = 'Burn;Freeze;Paralysis;Sleep;Poison;Toxic;Confusion;Attract;Flinch'.split(';')
  16. statusText = {short:long for short,long in zip(tmp1,tmp2)}
  17. statusText['tri'] = 'Burn, Freeze, or Paralysis (equal odds)'
  18.  
  19.  
  20. def effect_text(eff, stages):
  21.     if eff[1:] in statText:
  22.         if not stages:
  23.             stages = '1'
  24.         direction = 'Raises' if eff[0] == '+' else 'Lowers'
  25.         victim = "user's" if eff[0] == '+' else "target's"
  26.         eff = eff[1:]
  27.         if eff == 'all':
  28.             direction += ' all of'
  29.         eff = statText[eff];
  30.        
  31.         amount = '1 stage' if stages == '1' else '%s stages'%stages;
  32.        
  33.         return "%s the %s %s by %s."%(
  34.                 direction, victim, eff,amount)
  35.     elif eff in statusText:
  36.         return "Inflicts %s on the target."%statusText[eff]
  37.     elif eff[1:] in statusText:
  38.         return "Inflicts Flinch and %s on the target."%statusText[eff[1:]]
  39.     elif eff == 'secret':
  40.         return "Special: See {{m|Secret Power}}."
  41.     else:
  42.         return '<Unknown>'
  43.  
  44. import re
  45. # {{m|Movename}} Chance Effect Stages
  46. linepattern = re.compile(r"^ \{\{m\|([^}]+)\}\}[ \t]+([^ \t]+)[ \t]+([^ \t]*)[ \t]*(\d*)")
  47. outpattern = '''|-
  48. | {{m|%s}}
  49. {{typetable|%s}}
  50. {{statustable|%s}}
  51. | %s%%
  52. | style="text-align:left"|%s
  53. '''
  54. def make_row(s):
  55.     try:
  56.         match = re.match(linepattern,s);
  57.         move = match.group(1);
  58.         chance = match.group(2)
  59.         effect = match.group(3)
  60.         stages = match.group(4)
  61.     except AttributeError as err:
  62.         print(s)
  63.         raise err
  64.    
  65.     return outpattern %(move, typeof[move],statusof[move], chance,effect_text(effect,stages))
  66.  
  67.  
  68. data=''' {{m|Acid}} 10 -sdef
  69. {{m|Acid Spray}} 100 -sdef 2
  70. {{m|Air Slash}} 30 fln
  71. {{m|Ancient Power}} 10 +all
  72. {{m|Astonish}} 30 fln
  73. {{m|Aurora Beam}} 10 -atk
  74. {{m|Bite}} 30 fln
  75. {{m|Blaze Kick}} 10 brn
  76. {{m|Blizzard}} 10 frz
  77. {{m|Blue Flare}} 20 brn
  78. {{m|Body Slam}} 30 par
  79. {{m|Bolt Strike}} 20 par
  80. {{m|Bone Club}} 10 fln
  81. {{m|Bounce}} 30 par
  82. {{m|Bubble}} 10 -spe
  83. {{m|Bubble Beam}} 10 -spe
  84. {{m|Bug Buzz}} 10 -sdef
  85. {{m|Bulldoze}} 100 -spe
  86. {{m|Charge Beam}} 70 +satk
  87. {{m|Chatter}} 100 cfn
  88. {{m|Confusion}} 10 cfn
  89. {{m|Constrict}} 10 -spe
  90. {{m|Cross Poison}} 10 psn
  91. {{m|Crunch}} 20 -def
  92. {{m|Crush Claw}} 50 -def
  93. {{m|Dark Pulse}} 20 fln
  94. {{m|Discharge}} 30 par
  95. {{m|Dizzy Punch}} 20 cfn
  96. {{m|Dragon Rush}} 20 fln
  97. {{m|Dragon Breath}} 30 par
  98. {{m|Dynamic Punch}} 100 cfn
  99. {{m|Earth Power}} 10 -sdef
  100. {{m|Electroweb}} 100 -spe
  101. {{m|Ember}} 10 brn
  102. {{m|Energy Ball}} 10 -sdef
  103. {{m|Extrasensory}} 10 fln
  104. {{m|Fake Out}} 100 fln
  105. {{m|Fiery Dance}} 50 +satk
  106. {{m|Fire Blast}} 10 brn
  107. {{m|Fire Fang}} 10 fbrn
  108. {{m|Fire Punch}} 10 brn
  109. {{m|Flame Charge}} 100 +spe
  110. {{m|Flame Wheel}} 10 brn
  111. {{m|Flamethrower}} 10 brn
  112. {{m|Flare Blitz}} 10 brn
  113. {{m|Flash Cannon}} 10 -sdef
  114. {{m|Focus Blast}} 10 -sdef
  115. {{m|Force Palm}} 30 par
  116. {{m|Freeze-Dry}} 10 frz
  117. {{m|Freeze Shock}} 30 par
  118. {{m|Glaciate}} 100 -spe
  119. {{m|Gunk Shot}} 30 psn
  120. {{m|Headbutt}} 30 fln
  121. {{m|Heart Stamp}} 30 fln
  122. {{m|Heat Wave}} 10 brn
  123. {{m|Hurricane}} 30 cfn
  124. {{m|Hyper Fang}} 10 fln
  125. {{m|Ice Beam}} 10 frz
  126. {{m|Ice Burn}} 30 brn
  127. {{m|Ice Fang}} 10 ffrz
  128. {{m|Ice Punch}} 10 frz
  129. {{m|Icicle Crash}} 30 fln
  130. {{m|Icy Wind}} 100 -spe
  131. {{m|Inferno}} 100 brn
  132. {{m|Iron Head}} 30 fln
  133. {{m|Iron Tail}} 10 -def
  134. {{m|Lava Plume}} 30 brn
  135. {{m|Leaf Tornado}} 30 -acc
  136. {{m|Lick}} 30 par
  137. {{m|Low Sweep}} 100 -spe
  138. {{m|Luster Purge}} 50 -sdef
  139. {{m|Metal Claw}} 10 +atk
  140. {{m|Meteor Mash}} 20 +atk
  141. {{m|Mirror Shot}} 30 -acc
  142. {{m|Mist Ball}} 50 -satk
  143. {{m|Moonblast}} ?? -satk
  144. {{m|Mud Bomb}} 30 -acc
  145. {{m|Mud Shot}} 100 -spe
  146. {{m|Mud-Slap}} 100 -acc
  147. {{m|Muddy Water}} 30 -acc
  148. {{m|Mystical Fire}} ?? -satk
  149. {{m|Needle Arm}} 30 fln
  150. {{m|Night Daze}} 40 -acc
  151. {{m|Nuzzle}} 100 par
  152. {{m|Octazooka}} 50 -acc
  153. {{m|Ominous Wind}} 10 +all
  154. {{m|Play Nice}} 100? -atk
  155. {{m|Play Rough}} ?? -atk
  156. {{m|Poison Fang}} 50 tox
  157. {{m|Poison Jab}} 30 psn
  158. {{m|Poison Sting}} 30 psn
  159. {{m|Poison Tail}} 10 psn
  160. {{m|Powder Snow}} 10 frz
  161. {{m|Power-Up Punch}} 100 +atk
  162. {{m|Psybeam}} 10 cfn
  163. {{m|Psychic}} 10 -sdef
  164. {{m|Razor Shell}} 50 -def
  165. {{m|Relic Song}} 10 slp #Does Shield Dust prevent the forme change?
  166. {{m|Rock Climb}} 20 cfn
  167. {{m|Rock Slide}} 30 fln
  168. {{m|Rock Smash}} 50 -def
  169. {{m|Rock Tomb}} 100 -spe
  170. {{m|Rolling Kick}} 30 fln
  171. {{m|Sacred Fire}} 50 brn
  172. {{m|Scald}} 30 brn
  173. {{m|Searing Shot}} 30 brn
  174. {{m|Secret Power}} 30 secret
  175. {{m|Seed Flare}} 40 -sdef 2
  176. {{m|Shadow Ball}} 20 -sdef
  177. {{m|Signal Beam}} 10 cfn
  178. {{m|Silver Wind}} 10 +all
  179. {{m|Sky Attack}} 30 fln
  180. {{m|Sludge}} 30 psn
  181. {{m|Sludge Bomb}} 30 psn
  182. {{m|Sludge Wave}} 10 psn
  183. {{m|Smog}} 40 psn
  184. {{m|Snarl}} 100 -satk
  185. {{m|Snore}} 30 fln
  186. {{m|Spark}} 33 par
  187. {{m|Steamroller}} 30 fln
  188. {{m|Steel Wing}} 10 +def
  189. {{m|Stomp}} 30 fln
  190. {{m|Struggle Bug}} 100 satk
  191. {{m|Thunder}} 30 par
  192. {{m|Thunder Fang}} 10 fpar
  193. {{m|Thunder Punch}} 10 par
  194. {{m|Thunder Shock}} 10 par
  195. {{m|Thunderbolt}} 10 par
  196. {{m|Tri Attack}} 20 tri
  197. {{m|Twineedle}} 20 psn
  198. {{m|Twister}} 20 fln
  199. {{m|Volt Tackle}} 10 par
  200. {{m|Water Pulse}} 20 cfn
  201. {{m|Waterfall}} 20 fln
  202. {{m|Zap Cannon}} 100 par
  203. {{m|Zen Headbutt}} 20 fln'''.split('\n');
  204.  
  205.  
  206. movetable = '''Name     Type    Category
  207. Pound   Normal  Physical
  208. Karate Chop     Fighting    Physical
  209. Double Slap     Normal  Physical
  210. Comet Punch     Normal  Physical
  211. Mega Punch  Normal  Physical
  212. Pay Day     Normal  Physical
  213. Fire Punch  Fire    Physical
  214. Ice Punch   Ice     Physical
  215. Thunder Punch   Electric    Physical
  216. Scratch     Normal  Physical
  217. Vice Grip   Normal  Physical
  218. Guillotine  Normal  Physical
  219. Razor Wind  Normal  Special
  220. Swords Dance    Normal  Status
  221. Cut     Normal  Physical
  222. Gust    Flying  Special
  223. Wing Attack     Flying  Physical
  224. Whirlwind   Normal  Status
  225. Fly     Flying  Physical
  226. Bind    Normal  Physical
  227. Slam    Normal  Physical
  228. Vine Whip   Grass   Physical
  229. Stomp   Normal  Physical
  230. Double Kick     Fighting    Physical
  231. Mega Kick   Normal  Physical
  232. Jump Kick   Fighting    Physical
  233. Rolling Kick    Fighting    Physical
  234. Sand Attack     Ground  Status
  235. Headbutt    Normal  Physical
  236. Horn Attack     Normal  Physical
  237. Fury Attack     Normal  Physical
  238. Horn Drill  Normal  Physical
  239. Tackle  Normal  Physical
  240. Body Slam   Normal  Physical
  241. Wrap    Normal  Physical
  242. Take Down   Normal  Physical
  243. Thrash  Normal  Physical
  244. Double-Edge     Normal  Physical
  245. Tail Whip   Normal  Status
  246. Poison Sting    Poison  Physical
  247. Twineedle   Bug     Physical
  248. Pin Missile     Bug     Physical
  249. Leer    Normal  Status
  250. Bite    Dark    Physical
  251. Growl   Normal  Status
  252. Roar    Normal  Status
  253. Sing    Normal  Status
  254. Supersonic  Normal  Status
  255. Sonic Boom  Normal  Special
  256. Disable     Normal  Status
  257. Acid    Poison  Special
  258. Ember   Fire    Special
  259. Flamethrower    Fire    Special
  260. Mist    Ice     Status
  261. Water Gun   Water   Special
  262. Hydro Pump  Water   Special
  263. Surf    Water   Special
  264. Ice Beam    Ice     Special
  265. Blizzard    Ice     Special
  266. Psybeam     Psychic     Special
  267. Bubble Beam     Water   Special
  268. Aurora Beam     Ice     Special
  269. Hyper Beam  Normal  Special
  270. Peck    Flying  Physical
  271. Drill Peck  Flying  Physical
  272. Submission  Fighting    Physical
  273. Low Kick    Fighting    Physical
  274. Counter     Fighting    Physical
  275. Seismic Toss    Fighting    Physical
  276. Strength    Normal  Physical
  277. Absorb  Grass   Special
  278. Mega Drain  Grass   Special
  279. Leech Seed  Grass   Status
  280. Growth  Normal  Status
  281. Razor Leaf  Grass   Physical
  282. Solar Beam  Grass   Special
  283. Poison Powder   Poison  Status
  284. Stun Spore  Grass   Status
  285. Sleep Powder    Grass   Status
  286. Petal Dance     Grass   Special
  287. String Shot     Bug     Status
  288. Dragon Rage     Dragon  Special
  289. Fire Spin   Fire    Special
  290. Thunder Shock   Electric    Special
  291. Thunderbolt     Electric    Special
  292. Thunder Wave    Electric    Status
  293. Thunder     Electric    Special
  294. Rock Throw  Rock    Physical
  295. Earthquake  Ground  Physical
  296. Fissure     Ground  Physical
  297. Dig     Ground  Physical
  298. Toxic   Poison  Status
  299. Confusion   Psychic     Special
  300. Psychic     Psychic     Special
  301. Hypnosis    Psychic     Status
  302. Meditate    Psychic     Status
  303. Agility     Psychic     Status
  304. Quick Attack    Normal  Physical
  305. Rage    Normal  Physical
  306. Teleport    Psychic     Status
  307. Night Shade     Ghost   Special
  308. Mimic   Normal  Status
  309. Screech     Normal  Status
  310. Double Team     Normal  Status
  311. Recover     Normal  Status
  312. Harden  Normal  Status
  313. Minimize    Normal  Status
  314. Smokescreen     Normal  Status
  315. Confuse Ray     Ghost   Status
  316. Withdraw    Water   Status
  317. Defense Curl    Normal  Status
  318. Barrier     Psychic     Status
  319. Light Screen    Psychic     Status
  320. Haze    Ice     Status
  321. Reflect     Psychic     Status
  322. Focus Energy    Normal  Status
  323. Bide    Normal  Physical
  324. Metronome   Normal  Status
  325. Mirror Move     Flying  Status
  326. Self-Destruct   Normal  Physical
  327. Egg Bomb    Normal  Physical
  328. Lick    Ghost   Physical
  329. Smog    Poison  Special
  330. Sludge  Poison  Special
  331. Bone Club   Ground  Physical
  332. Fire Blast  Fire    Special
  333. Waterfall   Water   Physical
  334. Clamp   Water   Physical
  335. Swift   Normal  Special
  336. Skull Bash  Normal  Physical
  337. Spike Cannon    Normal  Physical
  338. Constrict   Normal  Physical
  339. Amnesia     Psychic     Status
  340. Kinesis     Psychic     Status
  341. Soft-Boiled     Normal  Status
  342. High Jump Kick  Fighting    Physical
  343. Glare   Normal  Status
  344. Dream Eater     Psychic     Special
  345. Poison Gas  Poison  Status
  346. Barrage     Normal  Physical
  347. Leech Life  Bug     Physical
  348. Lovely Kiss     Normal  Status
  349. Sky Attack  Flying  Physical
  350. Transform   Normal  Status
  351. Bubble  Water   Special
  352. Dizzy Punch     Normal  Physical
  353. Spore   Grass   Status
  354. Flash   Normal  Status
  355. Psywave     Psychic     Special
  356. Splash  Normal  Status
  357. Acid Armor  Poison  Status
  358. Crabhammer  Water   Physical
  359. Explosion   Normal  Physical
  360. Fury Swipes     Normal  Physical
  361. Bonemerang  Ground  Physical
  362. Rest    Psychic     Status
  363. Rock Slide  Rock    Physical
  364. Hyper Fang  Normal  Physical
  365. Sharpen     Normal  Status
  366. Conversion  Normal  Status
  367. Tri Attack  Normal  Special
  368. Super Fang  Normal  Physical
  369. Slash   Normal  Physical
  370. Substitute  Normal  Status
  371. Struggle    Normal  Physical
  372. Sketch  Normal  Status
  373. Triple Kick     Fighting    Physical
  374. Thief   Dark    Physical
  375. Spider Web  Bug     Status
  376. Mind Reader     Normal  Status
  377. Nightmare   Ghost   Status
  378. Flame Wheel     Fire    Physical
  379. Snore   Normal  Special
  380. Curse   Ghost   Status
  381. Flail   Normal  Physical
  382. Conversion 2    Normal  Status
  383. Aeroblast   Flying  Special
  384. Cotton Spore    Grass   Status
  385. Reversal    Fighting    Physical
  386. Spite   Ghost   Status
  387. Powder Snow     Ice     Special
  388. Protect     Normal  Status
  389. Mach Punch  Fighting    Physical
  390. Scary Face  Normal  Status
  391. Feint Attack    Dark    Physical
  392. Sweet Kiss  Fairy   Status
  393. Belly Drum  Normal  Status
  394. Sludge Bomb     Poison  Special
  395. Mud-Slap    Ground  Special
  396. Octazooka   Water   Special
  397. Spikes  Ground  Status
  398. Zap Cannon  Electric    Special
  399. Foresight   Normal  Status
  400. Destiny Bond    Ghost   Status
  401. Perish Song     Normal  Status
  402. Icy Wind    Ice     Special
  403. Detect  Fighting    Status
  404. Bone Rush   Ground  Physical
  405. Lock-On     Normal  Status
  406. Outrage     Dragon  Physical
  407. Sandstorm   Rock    Status
  408. Giga Drain  Grass   Special
  409. Endure  Normal  Status
  410. Charm   Fairy   Status
  411. Rollout     Rock    Physical
  412. False Swipe     Normal  Physical
  413. Swagger     Normal  Status
  414. Milk Drink  Normal  Status
  415. Spark   Electric    Physical
  416. Fury Cutter     Bug     Physical
  417. Steel Wing  Steel   Physical
  418. Mean Look   Normal  Status
  419. Attract     Normal  Status
  420. Sleep Talk  Normal  Status
  421. Heal Bell   Normal  Status
  422. Return  Normal  Physical
  423. Present     Normal  Physical
  424. Frustration     Normal  Physical
  425. Safeguard   Normal  Status
  426. Pain Split  Normal  Status
  427. Sacred Fire     Fire    Physical
  428. Magnitude   Ground  Physical
  429. Dynamic Punch   Fighting    Physical
  430. Megahorn    Bug     Physical
  431. Dragon Breath   Dragon  Special
  432. Baton Pass  Normal  Status
  433. Encore  Normal  Status
  434. Pursuit     Dark    Physical
  435. Rapid Spin  Normal  Physical
  436. Sweet Scent     Normal  Status
  437. Iron Tail   Steel   Physical
  438. Metal Claw  Steel   Physical
  439. Vital Throw     Fighting    Physical
  440. Morning Sun     Normal  Status
  441. Synthesis   Grass   Status
  442. Moonlight   Fairy   Status
  443. Hidden Power    Normal  Special
  444. Cross Chop  Fighting    Physical
  445. Twister     Dragon  Special
  446. Rain Dance  Water   Status
  447. Sunny Day   Fire    Status
  448. Crunch  Dark    Physical
  449. Mirror Coat     Psychic     Special
  450. Psych Up    Normal  Status
  451. Extreme Speed   Normal  Physical
  452. Ancient Power   Rock    Special
  453. Shadow Ball     Ghost   Special
  454. Future Sight    Psychic     Special
  455. Rock Smash  Fighting    Physical
  456. Whirlpool   Water   Special
  457. Beat Up     Dark    Physical
  458. Fake Out    Normal  Physical
  459. Uproar  Normal  Special
  460. Stockpile   Normal  Status
  461. Spit Up     Normal  Special
  462. Swallow     Normal  Status
  463. Heat Wave   Fire    Special
  464. Hail    Ice     Status
  465. Torment     Dark    Status
  466. Flatter     Dark    Status
  467. Will-O-Wisp     Fire    Status
  468. Memento     Dark    Status
  469. Facade  Normal  Physical
  470. Focus Punch     Fighting    Physical
  471. Smelling Salts  Normal  Physical
  472. Follow Me   Normal  Status
  473. Nature Power    Normal  Status
  474. Charge  Electric    Status
  475. Taunt   Dark    Status
  476. Helping Hand    Normal  Status
  477. Trick   Psychic     Status
  478. Role Play   Psychic     Status
  479. Wish    Normal  Status
  480. Assist  Normal  Status
  481. Ingrain     Grass   Status
  482. Superpower  Fighting    Physical
  483. Magic Coat  Psychic     Status
  484. Recycle     Normal  Status
  485. Revenge     Fighting    Physical
  486. Brick Break     Fighting    Physical
  487. Yawn    Normal  Status
  488. Knock Off   Dark    Physical
  489. Endeavor    Normal  Physical
  490. Eruption    Fire    Special
  491. Skill Swap  Psychic     Status
  492. Imprison    Psychic     Status
  493. Refresh     Normal  Status
  494. Grudge  Ghost   Status
  495. Snatch  Dark    Status
  496. Secret Power    Normal  Physical
  497. Dive    Water   Physical
  498. Arm Thrust  Fighting    Physical
  499. Camouflage  Normal  Status
  500. Tail Glow   Bug     Status
  501. Luster Purge    Psychic     Special
  502. Mist Ball   Psychic     Special
  503. Feather Dance   Flying  Status
  504. Teeter Dance    Normal  Status
  505. Blaze Kick  Fire    Physical
  506. Mud Sport   Ground  Status
  507. Ice Ball    Ice     Physical
  508. Needle Arm  Grass   Physical
  509. Slack Off   Normal  Status
  510. Hyper Voice     Normal  Special
  511. Poison Fang     Poison  Physical
  512. Crush Claw  Normal  Physical
  513. Blast Burn  Fire    Special
  514. Hydro Cannon    Water   Special
  515. Meteor Mash     Steel   Physical
  516. Astonish    Ghost   Physical
  517. Weather Ball    Normal  Special
  518. Aromatherapy    Grass   Status
  519. Fake Tears  Dark    Status
  520. Air Cutter  Flying  Special
  521. Overheat    Fire    Special
  522. Odor Sleuth     Normal  Status
  523. Rock Tomb   Rock    Physical
  524. Silver Wind     Bug     Special
  525. Metal Sound     Steel   Status
  526. Grass Whistle   Grass   Status
  527. Tickle  Normal  Status
  528. Cosmic Power    Psychic     Status
  529. Water Spout     Water   Special
  530. Signal Beam     Bug     Special
  531. Shadow Punch    Ghost   Physical
  532. Extrasensory    Psychic     Special
  533. Sky Uppercut    Fighting    Physical
  534. Sand Tomb   Ground  Physical
  535. Sheer Cold  Ice     Special
  536. Muddy Water     Water   Special
  537. Bullet Seed     Grass   Physical
  538. Aerial Ace  Flying  Physical
  539. Icicle Spear    Ice     Physical
  540. Iron Defense    Steel   Status
  541. Block   Normal  Status
  542. Howl    Normal  Status
  543. Dragon Claw     Dragon  Physical
  544. Frenzy Plant    Grass   Special
  545. Bulk Up     Fighting    Status
  546. Bounce  Flying  Physical
  547. Mud Shot    Ground  Special
  548. Poison Tail     Poison  Physical
  549. Covet   Normal  Physical
  550. Volt Tackle     Electric    Physical
  551. Magical Leaf    Grass   Special
  552. Water Sport     Water   Status
  553. Calm Mind   Psychic     Status
  554. Leaf Blade  Grass   Physical
  555. Dragon Dance    Dragon  Status
  556. Rock Blast  Rock    Physical
  557. Shock Wave  Electric    Special
  558. Water Pulse     Water   Special
  559. Doom Desire     Steel   Special
  560. Psycho Boost    Psychic     Special
  561. Roost   Flying  Status
  562. Gravity     Psychic     Status
  563. Miracle Eye     Psychic     Status
  564. Wake-Up Slap    Fighting    Physical
  565. Hammer Arm  Fighting    Physical
  566. Gyro Ball   Steel   Physical
  567. Healing Wish    Psychic     Status
  568. Brine   Water   Special
  569. Natural Gift    Normal  Physical
  570. Feint   Normal  Physical
  571. Pluck   Flying  Physical
  572. Tailwind    Flying  Status
  573. Acupressure     Normal  Status
  574. Metal Burst     Steel   Physical
  575. U-turn  Bug     Physical
  576. Close Combat    Fighting    Physical
  577. Payback     Dark    Physical
  578. Assurance   Dark    Physical
  579. Embargo     Dark    Status
  580. Fling   Dark    Physical
  581. Psycho Shift    Psychic     Status
  582. Trump Card  Normal  Special
  583. Heal Block  Psychic     Status
  584. Wring Out   Normal  Special
  585. Power Trick     Psychic     Status
  586. Gastro Acid     Poison  Status
  587. Lucky Chant     Normal  Status
  588. Me First    Normal  Status
  589. Copycat     Normal  Status
  590. Power Swap  Psychic     Status
  591. Guard Swap  Psychic     Status
  592. Punishment  Dark    Physical
  593. Last Resort     Normal  Physical
  594. Worry Seed  Grass   Status
  595. Sucker Punch    Dark    Physical
  596. Toxic Spikes    Poison  Status
  597. Heart Swap  Psychic     Status
  598. Aqua Ring   Water   Status
  599. Magnet Rise     Electric    Status
  600. Flare Blitz     Fire    Physical
  601. Force Palm  Fighting    Physical
  602. Aura Sphere     Fighting    Special
  603. Rock Polish     Rock    Status
  604. Poison Jab  Poison  Physical
  605. Dark Pulse  Dark    Special
  606. Night Slash     Dark    Physical
  607. Aqua Tail   Water   Physical
  608. Seed Bomb   Grass   Physical
  609. Air Slash   Flying  Special
  610. X-Scissor   Bug     Physical
  611. Bug Buzz    Bug     Special
  612. Dragon Pulse    Dragon  Special
  613. Dragon Rush     Dragon  Physical
  614. Power Gem   Rock    Special
  615. Drain Punch     Fighting    Physical
  616. Vacuum Wave     Fighting    Special
  617. Focus Blast     Fighting    Special
  618. Energy Ball     Grass   Special
  619. Brave Bird  Flying  Physical
  620. Earth Power     Ground  Special
  621. Switcheroo  Dark    Status
  622. Giga Impact     Normal  Physical
  623. Nasty Plot  Dark    Status
  624. Bullet Punch    Steel   Physical
  625. Avalanche   Ice     Physical
  626. Ice Shard   Ice     Physical
  627. Shadow Claw     Ghost   Physical
  628. Thunder Fang    Electric    Physical
  629. Ice Fang    Ice     Physical
  630. Fire Fang   Fire    Physical
  631. Shadow Sneak    Ghost   Physical
  632. Mud Bomb    Ground  Special
  633. Psycho Cut  Psychic     Physical
  634. Zen Headbutt    Psychic     Physical
  635. Mirror Shot     Steel   Special
  636. Flash Cannon    Steel   Special
  637. Rock Climb  Normal  Physical
  638. Defog   Flying  Status
  639. Trick Room  Psychic     Status
  640. Draco Meteor    Dragon  Special
  641. Discharge   Electric    Special
  642. Lava Plume  Fire    Special
  643. Leaf Storm  Grass   Special
  644. Power Whip  Grass   Physical
  645. Rock Wrecker    Rock    Physical
  646. Cross Poison    Poison  Physical
  647. Gunk Shot   Poison  Physical
  648. Iron Head   Steel   Physical
  649. Magnet Bomb     Steel   Physical
  650. Stone Edge  Rock    Physical
  651. Captivate   Normal  Status
  652. Stealth Rock    Rock    Status
  653. Grass Knot  Grass   Special
  654. Chatter     Flying  Special
  655. Judgment    Normal  Special
  656. Bug Bite    Bug     Physical
  657. Charge Beam     Electric    Special
  658. Wood Hammer     Grass   Physical
  659. Aqua Jet    Water   Physical
  660. Attack Order    Bug     Physical
  661. Defend Order    Bug     Status
  662. Heal Order  Bug     Status
  663. Head Smash  Rock    Physical
  664. Double Hit  Normal  Physical
  665. Roar of Time    Dragon  Special
  666. Spacial Rend    Dragon  Special
  667. Lunar Dance     Psychic     Status
  668. Crush Grip  Normal  Physical
  669. Magma Storm     Fire    Special
  670. Dark Void   Dark    Status
  671. Seed Flare  Grass   Special
  672. Ominous Wind    Ghost   Special
  673. Shadow Force    Ghost   Physical
  674. Hone Claws  Dark    Status
  675. Wide Guard  Rock    Status
  676. Guard Split     Psychic     Status
  677. Power Split     Psychic     Status
  678. Wonder Room     Psychic     Status
  679. Psyshock    Psychic     Special
  680. Venoshock   Poison  Special
  681. Autotomize  Steel   Status
  682. Rage Powder     Bug     Status
  683. Telekinesis     Psychic     Status
  684. Magic Room  Psychic     Status
  685. Smack Down  Rock    Physical
  686. Storm Throw     Fighting    Physical
  687. Flame Burst     Fire    Special
  688. Sludge Wave     Poison  Special
  689. Quiver Dance    Bug     Status
  690. Heavy Slam  Steel   Physical
  691. Synchronoise    Psychic     Special
  692. Electro Ball    Electric    Special
  693. Soak    Water   Status
  694. Flame Charge    Fire    Physical
  695. Coil    Poison  Status
  696. Low Sweep   Fighting    Physical
  697. Acid Spray  Poison  Special
  698. Foul Play   Dark    Physical
  699. Simple Beam     Normal  Status
  700. Entrainment     Normal  Status
  701. After You   Normal  Status
  702. Round   Normal  Special
  703. Echoed Voice    Normal  Special
  704. Chip Away   Normal  Physical
  705. Clear Smog  Poison  Special
  706. Stored Power    Psychic     Special
  707. Quick Guard     Fighting    Status
  708. Ally Switch     Psychic     Status
  709. Scald   Water   Special
  710. Shell Smash     Normal  Status
  711. Heal Pulse  Psychic     Status
  712. Hex     Ghost   Special
  713. Sky Drop    Flying  Physical
  714. Shift Gear  Steel   Status
  715. Circle Throw    Fighting    Physical
  716. Incinerate  Fire    Special
  717. Quash   Dark    Status
  718. Acrobatics  Flying  Physical
  719. Reflect Type    Normal  Status
  720. Retaliate   Normal  Physical
  721. Final Gambit    Fighting    Special
  722. Bestow  Normal  Status
  723. Inferno     Fire    Special
  724. Water Pledge    Water   Special
  725. Fire Pledge     Fire    Special
  726. Grass Pledge    Grass   Special
  727. Volt Switch     Electric    Special
  728. Struggle Bug    Bug     Special
  729. Bulldoze    Ground  Physical
  730. Frost Breath    Ice     Special
  731. Dragon Tail     Dragon  Physical
  732. Work Up     Normal  Status
  733. Electroweb  Electric    Special
  734. Wild Charge     Electric    Physical
  735. Drill Run   Ground  Physical
  736. Dual Chop   Dragon  Physical
  737. Heart Stamp     Psychic     Physical
  738. Horn Leech  Grass   Physical
  739. Sacred Sword    Fighting    Physical
  740. Razor Shell     Water   Physical
  741. Heat Crash  Fire    Physical
  742. Leaf Tornado    Grass   Special
  743. Steamroller     Bug     Physical
  744. Cotton Guard    Grass   Status
  745. Night Daze  Dark    Special
  746. Psystrike   Psychic     Special
  747. Tail Slap   Normal  Physical
  748. Hurricane   Flying  Special
  749. Head Charge     Normal  Physical
  750. Gear Grind  Steel   Physical
  751. Searing Shot    Fire    Special
  752. Techno Blast    Normal  Special
  753. Relic Song  Normal  Special
  754. Secret Sword    Fighting    Special
  755. Glaciate    Ice     Special
  756. Bolt Strike     Electric    Physical
  757. Blue Flare  Fire    Special
  758. Fiery Dance     Fire    Special
  759. Freeze Shock    Ice     Physical
  760. Ice Burn    Ice     Special
  761. Snarl   Dark    Special
  762. Icicle Crash    Ice     Physical
  763. V-create    Fire    Physical
  764. Fusion Flare    Fire    Special
  765. Fusion Bolt     Electric    Physical
  766. Flying Press    Fighting    Physical
  767. Mat Block   Fighting    Status
  768. Belch   Poison  Special
  769. Rototiller  Ground  Status
  770. Sticky Web  Bug     Status
  771. Fell Stinger    Bug     Physical
  772. Phantom Force   Ghost   Physical
  773. Trick-or-Treat  Ghost   Status
  774. Noble Roar  Normal  Status
  775. Ion Deluge  Electric    Status
  776. Parabolic Charge    Electric    Special
  777. Forest's Curse  Grass   Status
  778. Petal Blizzard  Grass   Physical
  779. Freeze-Dry  Ice     Special
  780. Disarming Voice     Fairy   Special
  781. Parting Shot    Dark    Status
  782. Topsy-Turvy     Dark    Status
  783. Draining Kiss   Fairy   Special
  784. Crafty Shield   Fairy   Status
  785. Flower Shield   Fairy   Status
  786. Grassy Terrain  Grass   Status
  787. Misty Terrain   Fairy   Status
  788. Electrify   Electric    Status
  789. Play Rough  Fairy   Physical
  790. Fairy Wind  Fairy   Special
  791. Moonblast   Fairy   Special
  792. Boomburst   Normal  Special
  793. Fairy Lock  Fairy   Status
  794. King's Shield   Steel   Status
  795. Play Nice   Normal  Status
  796. Confide     Normal  Status
  797. ???     ???     ???
  798. ???     ???     ???
  799. ???     ???     ???
  800. Water Shuriken  Water   Physical
  801. Mystical Fire   Fire    Special
  802. Spiky Shield    Grass   Status
  803. Aromatic Mist   Fairy   Status
  804. Eerie Impulse   Electric    Status
  805. Venom Drench    Poison  Status
  806. Powder  Bug     Status
  807. Geomancy    Fairy   Status
  808. Magnetic Flux   Electric    Status
  809. Happy Hour  Normal  Status
  810. Electric Terrain    Electric    Status
  811. Dazzling Gleam  Fairy   Special
  812. Celebrate   Normal  Status
  813. ???     ???     ???
  814. Baby-Doll Eyes  Fairy   Status
  815. Nuzzle  Electric    Physical
  816. ???     ???     ???
  817. Infestation     Bug     Special
  818. Power-Up Punch  Fighting    Physical
  819. Oblivion Wing   Flying  Special
  820. ???     ???     ???
  821. ???     ???     ???
  822. Land's Wrath    Ground  Physical
  823. Hold Back   Normal  Physical '''.split('\n')
  824.  
  825. movetable = [[s.strip() for s in line.split('\t')] for line in movetable]
  826. typeof = {move[0]:move[1] for move in movetable}
  827. statusof = {move[0]:move[2] for move in movetable}
  828.  
  829.  
  830. print(*[make_row(line) for line in data],sep='',file=open('temp.out','w'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement