Advertisement
IHATEMICROWAVEOVEN

big move relearner generator (node js)

Mar 10th, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.87 KB | None | 0 0
  1. const {Dex} = require('pokemon-showdown');
  2.  
  3. // const thing = Dex.data.Learnsets['scizor']['learnset'];
  4.  
  5. const monEquivalents: {[string: string]: string} = {
  6. "bulbasaur": "Bulbasaur",
  7. "ivysaur": "Ivysaur",
  8. "venusaur": "Venusaur",
  9. "charmander": "Charmander",
  10. "charmeleon": "Charmeleon",
  11. "charizard": "Charizard",
  12. "squirtle": "Squirtle",
  13. "wartortle": "Wartortle",
  14. "blastoise": "Blastoise",
  15. "caterpie": "Caterpie",
  16. "metapod": "Metapod",
  17. "butterfree": "Butterfree",
  18. "weedle": "Weedle",
  19. "kakuna": "Kakuna",
  20. "beedrill": "Beedrill",
  21. "pidgey": "Pidgey",
  22. "pidgeotto": "Pidgeotto",
  23. "pidgeot": "Pidgeot",
  24. "paras": "Paras",
  25. "parasect": "Parasect",
  26. "venonat": "Venonat",
  27. "venomoth": "Venomoth",
  28. "diglett": "Diglett",
  29. "dugtrio": "Dugtrio",
  30. "meowth": "Meowth",
  31. "persian": "Persian",
  32. "bellsprout": "Bellsprout",
  33. "weepinbell": "Weepinbell",
  34. "victreebel": "Victreebel",
  35. "geodude": "Geodude",
  36. "graveler": "Graveler",
  37. "golem": "Golem",
  38. "slowpoke": "Slowpoke",
  39. "slowking": "Slowking",
  40. "slowbro": "Slowbro",
  41. "magnemite": "Magnemite",
  42. "magneton": "Magneton",
  43. "magnezone": "Magnezone",
  44. "farfetchd": "Farfetch'd",
  45. "grimer": "Grimer",
  46. "muk": "Muk",
  47. "gastly": "Gastly",
  48. "haunter": "Haunter",
  49. "gengar": "Gengar",
  50. "voltorb": "Voltorb",
  51. "electrode": "Electrode",
  52. "exeggcute": "Exeggcute",
  53. "exeggutor": "Exeggutor",
  54. //"alolanexeggutor": "Alolan Exeggutor",
  55. "cubone": "Cubone",
  56. "marowak": "Marowak",
  57. //"alolanmarowak": "Alolan Marowak",
  58. "koffing": "Koffing",
  59. "weezing": "Weezing",
  60. "staryu": "Staryu",
  61. "starmie": "Starmie",
  62. "pinsir": "Pinsir",
  63. "magikarp": "Magikarp",
  64. "gyarados": "Gyarados",
  65. "lapras": "Lapras",
  66. "ditto": "Ditto",
  67. "eevee": "Eevee",
  68. "vaporeon": "Vaporeon",
  69. "flareon": "Flareon",
  70. "jolteon": "Jolteon",
  71. "espeon": "Espeon",
  72. "umbreon": "Umbreon",
  73. "glaceon": "Glaceon",
  74. "leafeon": "Leafeon",
  75. "sylveon": "Sylveon",
  76. "omanyte": "Omanyte",
  77. "omastar": "Omastar",
  78. "kabuto": "Kabuto",
  79. "kabutops": "Kabutops",
  80. "aerodactyl": "Aerodactyl",
  81. "dratini": "Dratini",
  82. "dragonair": "Dragonair",
  83. "dragonite": "Dragonite",
  84. "mewtwo": "Mewtwo",
  85. "mew": "Mew",
  86. "chikorita": "Chikorita",
  87. "bayleef": "Bayleef",
  88. "meganium": "Meganium",
  89. "cyndaquil": "Cyndaquil",
  90. "quilava": "Quilava",
  91. "typhlosion": "Typhlosion",
  92. "totodile": "Totodile",
  93. "croconaw": "Croconaw",
  94. "feraligatr": "Feraligatr",
  95. "hoothoot": "Hoothoot",
  96. "noctowl": "Noctowl",
  97. "ledyba": "Ledyba",
  98. "ledian": "Ledian",
  99. "spinarak": "Spinarak",
  100. "ariados": "Ariados",
  101. "pichu": "Pichu",
  102. "pikachu": "Pikachu",
  103. "raichu": "Raichu",
  104. //"alolanraichu": "Alolan Raichu",
  105. "cleffa": "Cleffa",
  106. "clefairy": "Clefairy",
  107. "clefable": "Clefable",
  108. "igglybuff": "Igglybuff",
  109. "jigglypuff": "Jigglypuff",
  110. "wigglytuff": "Wigglytuff",
  111. "togepi": "Togepi",
  112. "togetic": "Togetic",
  113. "togekiss": "Togekiss",
  114. "natu": "Natu",
  115. "xatu": "Xatu",
  116. "mareep": "Mareep",
  117. "flaaffy": "Flaaffy",
  118. "ampharos": "Ampharos",
  119. "aipom": "Aipom",
  120. "ambipom": "Ambipom",
  121. "yanma": "Yanma",
  122. "yanmega": "Yanmega",
  123. "wooper": "Wooper",
  124. "quagsire": "Quagsire",
  125. "dunsparce": "Dunsparce",
  126. "qwilfish": "Qwilfish",
  127. "heracross": "Heracross",
  128. "swinub": "Swinub",
  129. "piloswine": "Piloswine",
  130. "mamoswine": "Mamoswine",
  131. "corsola": "Corsola",
  132. "delibird": "Delibird",
  133. "skarmory": "Skarmory",
  134. "stantler": "Stantler",
  135. "smeargle": "Smeargle",
  136. "tyrogue": "Tyrogue",
  137. "hitmonlee": "Hitmonlee",
  138. "hitmonchan": "Hitmonchan",
  139. "hitmontop": "Hitmontop",
  140. "smoochum": "Smoochum",
  141. "jynx": "Jynx",
  142. "celebi": "Celebi",
  143. "mudkip": "Mudkip",
  144. "marshtomp": "Marshtomp",
  145. "swampert": "Swampert",
  146. "wurmple": "Wurmple",
  147. "silcoon": "Silcoon",
  148. "beautifly": "Beautifly",
  149. "cascoon": "Cascoon",
  150. "dustox": "Dustox",
  151. "surskit": "Surskit",
  152. "masquerain": "Masquerain",
  153. "nincada": "Nincada",
  154. "ninjask": "Ninjask",
  155. "shedinja": "Shedinja",
  156. "whismur": "Whismur",
  157. "loudred": "Loudred",
  158. "exploud": "Exploud",
  159. "azurill": "Azurill",
  160. "marill": "Marill",
  161. "azumarill": "Azumarill",
  162. "sableye": "Sableye",
  163. "aron": "Aron",
  164. "lairon": "Lairon",
  165. "aggron": "Aggron",
  166. "plusle": "Plusle",
  167. "minun": "Minun",
  168. "carvanha": "Carvanha",
  169. "sharpedo": "Sharpedo",
  170. "wailmer": "Wailmer",
  171. "numel": "Numel",
  172. "camerupt": "Camerupt",
  173. "torkoal": "Torkoal",
  174. "trapinch": "Trapinch",
  175. "vibrava": "Vibrava",
  176. "flygon": "Flygon",
  177. "lunatone": "Lunatone",
  178. "solrock": "Solrock",
  179. "barboach": "Barboach",
  180. "whiscash": "Whiscash",
  181. "lileep": "Lileep",
  182. "cradily": "Cradily",
  183. "anorith": "Anorith",
  184. "armaldo": "Armaldo",
  185. "kecleon": "Kecleon",
  186. "duskull": "Duskull",
  187. "dusclops": "Dusclops",
  188. "dusknoir": "Dusknoir",
  189. "snorunt": "Snorunt",
  190. "glalie": "Glalie",
  191. "froslass": "Froslass",
  192. "spheal": "Spheal",
  193. "sealeo": "Sealeo",
  194. "walrein": "Walrein",
  195. "luvdisc": "Luvdisc",
  196. "beldum": "Beldum",
  197. "metang": "Metang",
  198. "metagross": "Metagross",
  199. "regirock": "Regirock",
  200. "regice": "Regice",
  201. "registeel": "Registeel",
  202. "turtwig": "Turtwig",
  203. "grotle": "Grotle",
  204. "torterra": "Torterra",
  205. "piplup": "Piplup",
  206. "prinplup": "Prinplup",
  207. "empoleon": "Empoleon",
  208. "bidoof": "Bidoof",
  209. "bibarel": "Bibarel",
  210. "buneary": "Buneary",
  211. "lopunny": "Lopunny",
  212. "chingling": "Chingling",
  213. "chimecho": "Chimecho",
  214. "happiny": "Happiny",
  215. "chansey": "Chansey",
  216. "blissey": "Blissey",
  217. "munchlax": "Munchlax",
  218. "snorlax": "Snorlax",
  219. "hippopotas": "Hippopotas (M)",
  220. "hippowdon": "Hippowdon (M)",
  221. "heatran": "Heatran",
  222. "regigigas": "Regigigas",
  223. "phione": "Phione",
  224. "manaphy": "Manaphy",
  225. "oshawott": "Oshawott",
  226. "dewott": "Dewott",
  227. "samurott": "Samurott",
  228. "audino": "Audino",
  229. "dwebble": "Dwebble",
  230. "crustle": "Crustle",
  231. "scraggy": "Scraggy",
  232. "scrafty": "Scrafty",
  233. "yamask": "Yamask",
  234. "cofagrigus": "Cofagrigus",
  235. "emolga": "Emolga",
  236. "foongus": "Foongus",
  237. "amoonguss": "Amoonguss",
  238. "alomomola": "Alomomola",
  239. "litwick": "Litwick",
  240. "lampent": "Lampent",
  241. "chandelure": "Chandelure",
  242. "golett": "Golett",
  243. "golurk": "Golurk",
  244. "froakie": "Froakie",
  245. "frogadier": "Frogadier",
  246. "greninja": "Greninja",
  247. //"ashgreninja": "Ash-Greninja",
  248. "fletchling": "Fletchling",
  249. "fletchinder": "Fletchinder",
  250. "talonflame": "Talonflame",
  251. "dedenne": "Dedenne",
  252. "phantump": "Phantump",
  253. "trevenant": "Trevenant",
  254. "pumpkaboo": "Pumpkaboo",
  255. "gourgeist": "Gourgeist",
  256. "rowlet": "Rowlet",
  257. "dartrix": "Dartrix",
  258. "decidueye": "Decidueye",
  259. "popplio": "Popplio",
  260. "brionne": "Brionne",
  261. "primarina": "Primarina",
  262. "grubbin": "Grubbin",
  263. "charjabug": "Charjabug",
  264. "vikavolt": "Vikavolt",
  265. "dewpider": "Dewpider",
  266. "araquanid": "Araquanid",
  267. "fomantis": "Fomantis",
  268. "lurantis": "Lurantis",
  269. "stufful": "Stufful",
  270. "bewear": "Bewear",
  271. "sandygast": "Sandygast",
  272. "palossand": "Palossand",
  273. "minior": "Minior",
  274. "mimikyu": "Mimikyu",
  275. //"bustedmimikyu": "Busted Mimikyu",
  276. "marshadow": "Marshadow",
  277. //"alolandiglett": "Alolan Diglett",
  278. //"alolandugtrio": "Alolan Dugtrio",
  279. //"alolanmeowth": "Alolan Meowth",
  280. //"alolanpersian": "Alolan Persian",
  281. //"alolangeodude": "Alolan Geodude",
  282. //"alolangraveler": "Alolan Graveler",
  283. //"alolangolem": "Alolan Golem",
  284. //"alolangrimer": "Alolan Grimer",
  285. //"alolanmuk": "Alolan Muk",
  286. };
  287.  
  288. const moveEquivalents: {[string: string]: string} = {
  289. "acid": "Acid",
  290. "watershuriken": "WaterShuriken",
  291. "nightshade": "NightShade",
  292. "aurasphere": "AuraSphere",
  293. "aurorabeam": "AuroraBeam",
  294. "bite": "Bite",
  295. "bodyslam": "BodySlam",
  296. "bubble": "Bubble",
  297. "bulletseed": "BulletSeed",
  298. "confusion": "Confusion",
  299. "doubleedge": "Double-Edge",
  300. "dragonpulse": "DragonPulse",
  301. "dragonrage": "DragonRage",
  302. "drillpeck": "DrillPeck",
  303. "earthpower": "EarthPower",
  304. "electroball": "ElectroBall",
  305. "ember": "Ember",
  306. "feintattack": "FeintAttack",
  307. "firepunch": "FirePunch",
  308. "flameburst": "FlameBurst",
  309. "flamethrower": "Flamethrower",
  310. "flashcannon": "FlashCannon",
  311. "gust": "Gust",
  312. "hurricane": "Hurricane",
  313. "hydropump": "HydroPump",
  314. "icebeam": "IceBeam",
  315. "icepunch": "IcePunch",
  316. "icywind": "IcyWind",
  317. "leechseed": "LeechSeed",
  318. "magicalleaf": "MagicalLeaf",
  319. "mudslap": "Mud-Slap",
  320. "mudshot": "MudShot",
  321. "payday": "PayDay",
  322. "flareblitz": "FlareBlitz",
  323. "pound": "Pound",
  324. "razorleaf": "RazorLeaf",
  325. "razorshell": "RazorShell",
  326. "rockthrow": "RockThrow",
  327. "shadowclaw": "ShadowClaw",
  328. "slam": "Slam",
  329. "sonicboom": "SonicBoom",
  330. "stringshot": "StringShot",
  331. "tackle": "Tackle",
  332. "takedown": "TakeDown",
  333. "thunder": "Thunder",
  334. "thunderpunch": "ThunderPunch",
  335. "thundershock": "ThunderShock",
  336. "thunderbolt": "Thunderbolt",
  337. "uturn": "U-turn",
  338. "volttackle": "VoltTackle",
  339. "watergun": "WaterGun",
  340. "wingattack": "WingAttack",
  341. "woodhammer": "WoodHammer",
  342. "zapcannon": "ZapCannon",
  343. "zenheadbutt": "ZenHeadbutt",
  344. "yawn": "Yawn",
  345. "waterpulse": "WaterPulse",
  346. "spark": "Spark",
  347. "smog": "Smog",
  348. "sludgebomb": "SludgeBomb",
  349. "shadowball": "ShadowBall",
  350. "seedbomb": "SeedBomb",
  351. "scratch": "Scratch",
  352. "psychic": "Psychic",
  353. "poisonsting": "PoisonSting",
  354. "mudbomb": "MudBomb",
  355. "mistball": "MistBall",
  356. "leafstorm": "LeafStorm",
  357. "lavaplume": "LavaPlume",
  358. "bravebird": "BraveBird",
  359. "tailwhip": "TailWhip",
  360. "solarbeam": "SolarBeam",
  361. "charge": "Charge",
  362. "earthquake": "Earthquake",
  363. "softboiled": "Soft-Boiled",
  364. "sandattack": "SandAttack",
  365. "charm": "Charm",
  366. "darkpulse": "DarkPulse",
  367. "harden": "Harden",
  368. "healpulse": "HealPulse",
  369. "selfdestruct": "Self-Destruct",
  370. "rage": "Rage",
  371. "powdersnow": "PowderSnow",
  372. "roost": "Roost",
  373. "present": "Present",
  374. "irondefense": "IronDefense",
  375. "ironhead": "IronHead",
  376. "moonlight": "Moonlight",
  377. "aquatail": "AquaTail",
  378. "ancientpower": "AncientPower",
  379. "recover": "Recover",
  380. "psychocut": "PsychoCut",
  381. "psystrike": "Psystrike",
  382. "boneclub": "BoneClub",
  383. "flamewheel": "FlameWheel",
  384. "shadowbone": "ShadowBone",
  385. "inferno": "Inferno",
  386. "pinmissile": "PinMissile",
  387. "brickbreak": "BrickBreak",
  388. "aircutter": "AirCutter",
  389. "peck": "Peck",
  390. "hypnosis": "Hypnosis",
  391. "stormthrow": "StormThrow",
  392. "xscissor": "X-Scissor",
  393. "closecombat": "CloseCombat",
  394. "megahorn": "Megahorn",
  395. "poisonjab": "PoisonJab",
  396. "leafage": "Leafage",
  397. "airslash": "AirSlash",
  398. "nightmare": "Nightmare",
  399. "splash": "Splash",
  400. "synthesis": "Synthesis",
  401. "bubblebeam": "BubbleBeam",
  402. "boomburst": "Boomburst",
  403. "echoedvoice": "EchoedVoice",
  404. "agility": "Agility",
  405. "jumpkick": "JumpKick",
  406. "bounce": "Bounce",
  407. "highjumpkick": "HighJumpKick",
  408. "swift": "Swift",
  409. "lastresort": "LastResort",
  410. "megapunch": "MegaPunch",
  411. "steelwing": "SteelWing",
  412. "hammerarm": "HammerArm",
  413. "moonblast": "Moonblast",
  414. "bugbuzz": "BugBuzz",
  415. "superpower": "Superpower",
  416. "rockslide": "RockSlide",
  417. "psywave": "Psywave",
  418. "crunch": "Crunch",
  419. "bugbite": "BugBite",
  420. "playrough": "PlayRough",
  421. "shadowsneak": "ShadowSneak",
  422. "venoshock": "Venoshock",
  423. "sketch": "Sketch",
  424. "futuresight": "FutureSight",
  425. "whirlpool": "Whirlpool",
  426. "curse": "Curse",
  427. "avalanche": "Avalanche",
  428. "muddywater": "MuddyWater",
  429. "hypervoice": "HyperVoice",
  430. "defensecurl": "DefenseCurl",
  431. "nightslash": "NightSlash",
  432. "gigaimpact": "GigaImpact",
  433. "wish": "Wish",
  434. "absorb": "Absorb",
  435. "ingrain": "Ingrain",
  436. "gigadrain": "GigaDrain",
  437. "spore": "Spore",
  438. "discharge": "Discharge",
  439. "suckerpunch": "SuckerPunch",
  440. "skullbash": "SkullBash",
  441. "dragonrush": "DragonRush",
  442. "acidarmor": "AcidArmor",
  443. "hyperbeam": "HyperBeam",
  444. "megadrain": "MegaDrain",
  445. "frostbreath": "FrostBreath",
  446. "blizzard": "Blizzard",
  447. "sheercold": "SheerCold",
  448. "irontail": "IronTail",
  449. "autotomize": "Autotomize",
  450. "magmastorm": "MagmaStorm",
  451. "willowisp": "Will-O-Wisp",
  452. "withdraw": "Withdraw",
  453. "surf": "Surf",
  454. "hornattack": "HornAttack",
  455. "originpulse": "OriginPulse",
  456. "shellsmash": "ShellSmash",
  457. "fakeout": "FakeOut",
  458. "rollingkick": "RollingKick",
  459. "doublehit": "DoubleHit",
  460. "drainpunch": "DrainPunch",
  461. "petalblizzard": "PetalBlizzard",
  462. }
  463.  
  464. // console.log(thing);
  465. // console.log(thing['tackle']!=null);
  466.  
  467. var bigStringToPrint = "local learnsets = {\n";
  468.  
  469. for (const [mon, monEquivalent] of Object.entries(monEquivalents)){
  470. bigStringToPrint += " "+monEquivalent+" = {\n";
  471. const data = Dex.data.Learnsets[mon]['learnset']
  472. for (const [key, value] of Object.entries(data)) {
  473. let moveName = `${key}`;
  474. if(moveEquivalents[moveName]!=null){
  475. bigStringToPrint += " {\""+moveEquivalents[moveName]+"\", 0},\n"
  476. }
  477. }
  478. bigStringToPrint += " },\n";
  479. }
  480.  
  481. console.log(bigStringToPrint+"}\n\nreturn learnsets");
  482. console.log("All done!!!");
  483.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement