Initial Modpack Upload

This commit is contained in:
Rbanh committed 2023-08-14 21:45:09 -04:00
1 parent 268b0650aa
commit 3d8b956ee4
1429 files changed
+820128

No files matched your search

+102
View File
@@ -0,0 +1,102 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var abilities_exports = {};
__export(abilities_exports, {
Abilities: () => Abilities
});
module.exports = __toCommonJS(abilities_exports);
const Abilities = {
anticipation: {
inherit: true,
onStart(pokemon) {
for (const target of pokemon.foes()) {
for (const moveSlot of target.moveSlots) {
const move = this.dex.moves.get(moveSlot.move);
if (move.category !== "Status" && (this.dex.getImmunity(move.type, pokemon) && this.dex.getEffectiveness(move.type, pokemon) > 0 || move.ohko)) {
this.add("-ability", pokemon, "Anticipation");
return;
}
}
}
}
},
frisk: {
inherit: true,
onStart(pokemon) {
const target = pokemon.side.randomFoe();
if (target?.item) {
this.add("-item", target, target.getItem().name, "[from] ability: Frisk", "[of] " + pokemon);
}
}
},
infiltrator: {
inherit: true,
rating: 1.5
},
keeneye: {
inherit: true,
onModifyMove() {
}
},
oblivious: {
inherit: true,
onUpdate(pokemon) {
if (pokemon.volatiles["attract"]) {
pokemon.removeVolatile("attract");
this.add("-end", pokemon, "move: Attract", "[from] ability: Oblivious");
}
},
onTryHit(pokemon, target, move) {
if (move.id === "captivate") {
this.add("-immune", pokemon, "[from] Oblivious");
return null;
}
},
rating: 0.5
},
overcoat: {
inherit: true,
onTryHit() {
},
rating: 0.5
},
sapsipper: {
inherit: true,
onAllyTryHitSide() {
}
},
serenegrace: {
inherit: true,
onModifyMove(move) {
if (move.secondaries && move.id !== "secretpower") {
this.debug("doubling secondary chance");
for (const secondary of move.secondaries) {
if (secondary.chance)
secondary.chance *= 2;
}
}
}
},
soundproof: {
inherit: true,
onAllyTryHitSide() {
}
}
};
//# sourceMappingURL=abilities.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/abilities.ts"],
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tanticipation: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tfor (const target of pokemon.foes()) {\r\n\t\t\t\tfor (const moveSlot of target.moveSlots) {\r\n\t\t\t\t\tconst move = this.dex.moves.get(moveSlot.move);\r\n\t\t\t\t\tif (move.category !== 'Status' && (\r\n\t\t\t\t\t\tthis.dex.getImmunity(move.type, pokemon) && this.dex.getEffectiveness(move.type, pokemon) > 0 ||\r\n\t\t\t\t\t\tmove.ohko\r\n\t\t\t\t\t)) {\r\n\t\t\t\t\t\tthis.add('-ability', pokemon, 'Anticipation');\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tfrisk: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tconst target = pokemon.side.randomFoe();\r\n\t\t\tif (target?.item) {\r\n\t\t\t\tthis.add('-item', target, target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tinfiltrator: {\r\n\t\tinherit: true,\r\n\t\trating: 1.5,\r\n\t},\r\n\tkeeneye: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove() {},\r\n\t},\r\n\toblivious: {\r\n\t\tinherit: true,\r\n\t\tonUpdate(pokemon) {\r\n\t\t\tif (pokemon.volatiles['attract']) {\r\n\t\t\t\tpokemon.removeVolatile('attract');\r\n\t\t\t\tthis.add('-end', pokemon, 'move: Attract', '[from] ability: Oblivious');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTryHit(pokemon, target, move) {\r\n\t\t\tif (move.id === 'captivate') {\r\n\t\t\t\tthis.add('-immune', pokemon, '[from] Oblivious');\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t\trating: 0.5,\r\n\t},\r\n\tovercoat: {\r\n\t\tinherit: true,\r\n\t\tonTryHit() {},\r\n\t\trating: 0.5,\r\n\t},\r\n\tsapsipper: {\r\n\t\tinherit: true,\r\n\t\tonAllyTryHitSide() {},\r\n\t},\r\n\tserenegrace: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move) {\r\n\t\t\tif (move.secondaries && move.id !== 'secretpower') {\r\n\t\t\t\tthis.debug('doubling secondary chance');\r\n\t\t\t\tfor (const secondary of move.secondaries) {\r\n\t\t\t\t\tif (secondary.chance) secondary.chance *= 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tsoundproof: {\r\n\t\tinherit: true,\r\n\t\tonAllyTryHitSide() {},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,cAAc;AAAA,IACb,SAAS;AAAA,IACT,QAAQ,SAAS;AAChB,iBAAW,UAAU,QAAQ,KAAK,GAAG;AACpC,mBAAW,YAAY,OAAO,WAAW;AACxC,gBAAM,OAAO,KAAK,IAAI,MAAM,IAAI,SAAS,IAAI;AAC7C,cAAI,KAAK,aAAa,aACrB,KAAK,IAAI,YAAY,KAAK,MAAM,OAAO,KAAK,KAAK,IAAI,iBAAiB,KAAK,MAAM,OAAO,IAAI,KAC5F,KAAK,OACH;AACF,iBAAK,IAAI,YAAY,SAAS,cAAc;AAC5C;AAAA,U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ACT,mBAAmB;AAAA,IAAC;AAAA,EACrB;AACD;",
"names": []
}
+77
View File
@@ -0,0 +1,77 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var conditions_exports = {};
__export(conditions_exports, {
Conditions: () => Conditions
});
module.exports = __toCommonJS(conditions_exports);
const Conditions = {
slp: {
inherit: true,
onSwitchIn(target) {
this.effectState.time = this.effectState.startTime;
}
},
partiallytrapped: {
inherit: true,
onStart(pokemon, source) {
this.add("-activate", pokemon, "move: " + this.effectState.sourceEffect, "[of] " + source);
this.effectState.boundDivisor = source.hasItem("bindingband") ? 8 : 16;
},
onResidual(pokemon) {
const trapper = this.effectState.source;
if (trapper && (!trapper.isActive || trapper.hp <= 0 || !trapper.activeTurns)) {
delete pokemon.volatiles["partiallytrapped"];
return;
}
this.damage(pokemon.baseMaxhp / this.effectState.boundDivisor);
}
},
stall: {
// Protect, Detect, Endure counter
duration: 2,
counterMax: 256,
onStart() {
this.effectState.counter = 2;
},
onStallMove() {
const counter = this.effectState.counter || 1;
if (counter >= 256) {
return this.random() * 4294967296 < 1;
}
this.debug("Success chance: " + Math.round(100 / counter) + "%");
return this.randomChance(1, counter);
},
onRestart() {
if (this.effectState.counter < this.effect.counterMax) {
this.effectState.counter *= 2;
}
this.effectState.duration = 2;
}
},
gem: {
duration: 1,
affectsFainted: true,
onBasePower(basePower, user, target, move) {
this.debug("Gem Boost");
return this.chainModify(1.5);
}
}
};
//# sourceMappingURL=conditions.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/conditions.ts"],
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tslp: {\r\n\t\tinherit: true,\r\n\t\tonSwitchIn(target) {\r\n\t\t\tthis.effectState.time = this.effectState.startTime;\r\n\t\t},\r\n\t},\r\n\tpartiallytrapped: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon, source) {\r\n\t\t\tthis.add('-activate', pokemon, 'move: ' + this.effectState.sourceEffect, '[of] ' + source);\r\n\t\t\tthis.effectState.boundDivisor = source.hasItem('bindingband') ? 8 : 16;\r\n\t\t},\r\n\t\tonResidual(pokemon) {\r\n\t\t\tconst trapper = this.effectState.source;\r\n\t\t\tif (trapper && (!trapper.isActive || trapper.hp <= 0 || !trapper.activeTurns)) {\r\n\t\t\t\tdelete pokemon.volatiles['partiallytrapped'];\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.damage(pokemon.baseMaxhp / this.effectState.boundDivisor);\r\n\t\t},\r\n\t},\r\n\tstall: {\r\n\t\t// Protect, Detect, Endure counter\r\n\t\tduration: 2,\r\n\t\tcounterMax: 256,\r\n\t\tonStart() {\r\n\t\t\tthis.effectState.counter = 2;\r\n\t\t},\r\n\t\tonStallMove() {\r\n\t\t\t// this.effectState.counter should never be undefined here.\r\n\t\t\t// However, just in case, use 1 if it is undefined.\r\n\t\t\tconst counter = this.effectState.counter || 1;\r\n\t\t\tif (counter >= 256) {\r\n\t\t\t\t// 2^32 - special-cased because Battle.random(n) can't handle n > 2^16 - 1\r\n\t\t\t\treturn (this.random() * 4294967296 < 1);\r\n\t\t\t}\r\n\t\t\tthis.debug(\"Success chance: \" + Math.round(100 / counter) + \"%\");\r\n\t\t\treturn this.randomChance(1, counter);\r\n\t\t},\r\n\t\tonRestart() {\r\n\t\t\tif (this.effectState.counter < (this.effect as Condition).counterMax!) {\r\n\t\t\t\tthis.effectState.counter *= 2;\r\n\t\t\t}\r\n\t\t\tthis.effectState.duration = 2;\r\n\t\t},\r\n\t},\r\n\tgem: {\r\n\t\tduration: 1,\r\n\t\taffectsFainted: true,\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tthis.debug('Gem Boost');\r\n\t\t\treturn this.chainModify(1.5);\r\n\t\t},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,WAAW,QAAQ;AAClB,WAAK,YAAY,OAAO,KAAK,YAAY;AAAA,IAC1C;AAAA,EACD;AAAA,EACA,kBAAkB;AAAA,IACjB,SAAS;AAAA,IACT,QAAQ,SAAS,QAAQ;AACxB,WAAK,IAAI,aAAa,SAAS,WAAW,KAAK,YAAY,cAAc,UAAU,MAAM;AACzF,WAAK,YAAY,eAAe,OAAO,QAAQ,aAAa,IAAI,IAAI;AAAA,IACrE;AAAA,IACA,WAAW,SAAS;AACnB,YAAM,UAAU,KAAK,YAAY;AACjC,UAAI,YAAY,CAAC,QAAQ,YAAY,QAAQ,MAAM,KAAK,CAAC,QAAQ,cAAc;AAC9E,eAAO,QAAQ,UAAU,kBAAkB;AAC3C;AAAA,MACD;AACA,WAAK,OAAO,QAAQ,YAAY,KAAK,YAAY,YAAY;AAAA,IAC9D;AAAA,EACD;AAAA,EACA,OAAO;AAAA;AAAA,IAEN,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,UAAU;AACT,WAAK,YAAY,UAAU;AAAA,IAC5B;AAAA,IACA,cAAc;AAGb,YAAM,UAAU,KAAK,YAAY,WAAW;AAC5C,UAAI,WAAW,KAAK;AAEnB,eAAQ,KAAK,OAAO,IAAI,aAAa;AAAA,MACtC;AACA,WAAK,MAAM,qBAAqB,KAAK,MAAM,MAAM,OAAO,IAAI,GAAG;AAC/D,aAAO,KAAK,aAAa,GAAG,OAAO;AAAA,IACpC;AAAA,IACA,YAAY;AACX,UAAI,KAAK,YAAY,UAAW,KAAK,OAAqB,YAAa;AACtE,aAAK,YAAY,WAAW;AAAA,MAC7B;AACA,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,YAAY,WAAW,MAAM,QAAQ,MAAM;AAC1C,WAAK,MAAM,WAAW;AACtB,aAAO,KAAK,YAAY,GAAG;AAAA,IAC5B;AAAA,EACD;AACD;",
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/formats-data.ts"],
"sourcesContent": ["export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\ttier: \"(OU)\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tpichu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"RU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tnidoranf: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorina: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoqueen: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tnidoranm: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorino: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoking: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tcleffa: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"RU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tigglybuff: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tjigglypuff: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\twigglytuff: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"NFE\",\r\n\t},\r\n\tcrobat: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"PU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tbellossom: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"RUBL\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"(OU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"(PU)\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"PU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tmankey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tprimeape: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"RU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tpolitoed: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"NFE\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tbellsprout: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tweepinbell: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvictreebel: {\r\n\t\ttier: \"PU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"PU\",\r\n\t\tdoublesTier: \"LC\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"NU\",\r\n\t\tdoublesTier: \"DUU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapiLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aA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ACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,MAAM;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,MAAM;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,SAASLine truncated
"names": []
}
+542
View File
@@ -0,0 +1,542 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var items_exports = {};
__export(items_exports, {
Items: () => Items
});
module.exports = __toCommonJS(items_exports);
const Items = {
aguavberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Dragon"
}
},
apicotberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Ground"
}
},
aspearberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ice"
}
},
babiriberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Steel"
}
},
belueberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Electric"
}
},
blukberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Fire"
}
},
buggem: {
inherit: true,
isNonstandard: null
},
chartiberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Rock"
}
},
cheriberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Fire"
}
},
chestoberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Water"
}
},
chilanberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Normal"
}
},
chopleberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Fighting"
}
},
cobaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Flying"
}
},
colburberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Dark"
}
},
cornnberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Bug"
}
},
custapberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Ghost"
}
},
darkgem: {
inherit: true,
isNonstandard: null
},
dragongem: {
inherit: true,
isNonstandard: null
},
durinberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Water"
}
},
electricgem: {
inherit: true,
isNonstandard: null
},
enigmaberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Bug"
}
},
fightinggem: {
inherit: true,
isNonstandard: null
},
figyberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Bug"
}
},
firegem: {
inherit: true,
isNonstandard: null
},
flyinggem: {
inherit: true,
isNonstandard: null
},
ganlonberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Ice"
}
},
ghostgem: {
inherit: true,
isNonstandard: null
},
grassgem: {
inherit: true,
isNonstandard: null
},
grepaberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Flying"
}
},
groundgem: {
inherit: true,
isNonstandard: null
},
habanberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Dragon"
}
},
hondewberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Ground"
}
},
iapapaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Dark"
}
},
icegem: {
inherit: true,
isNonstandard: null
},
jabocaberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Dragon"
}
},
kasibberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ghost"
}
},
kebiaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Poison"
}
},
kelpsyberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Fighting"
}
},
lansatberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Flying"
}
},
leppaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Fighting"
}
},
liechiberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Grass"
}
},
lumberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Flying"
}
},
mail: {
inherit: true,
isNonstandard: null
},
magoberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ghost"
}
},
magostberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Rock"
}
},
micleberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Rock"
}
},
nanabberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Water"
}
},
nomelberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Dragon"
}
},
occaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Fire"
}
},
oranberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Poison"
}
},
pamtreberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Steel"
}
},
passhoberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Water"
}
},
payapaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Psychic"
}
},
pechaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Electric"
}
},
persimberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ground"
}
},
petayaberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Poison"
}
},
pinapberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Grass"
}
},
poisongem: {
inherit: true,
isNonstandard: null
},
pomegberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Ice"
}
},
psychicgem: {
inherit: true,
isNonstandard: null
},
qualotberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Poison"
}
},
rabutaberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Ghost"
}
},
rawstberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Grass"
}
},
razzberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Steel"
}
},
rindoberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Grass"
}
},
rockgem: {
inherit: true,
isNonstandard: null
},
rowapberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Dark"
}
},
salacberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Fighting"
}
},
shucaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ground"
}
},
sitrusberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Psychic"
}
},
spelonberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Dark"
}
},
starfberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Psychic"
}
},
steelgem: {
inherit: true,
isNonstandard: null
},
tamatoberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Psychic"
}
},
tangaberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Bug"
}
},
wacanberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Electric"
}
},
watergem: {
inherit: true,
isNonstandard: null
},
watmelberry: {
inherit: true,
naturalGift: {
basePower: 80,
type: "Fire"
}
},
wepearberry: {
inherit: true,
naturalGift: {
basePower: 70,
type: "Electric"
}
},
wikiberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Rock"
}
},
yacheberry: {
inherit: true,
naturalGift: {
basePower: 60,
type: "Ice"
}
}
};
//# sourceMappingURL=items.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/items.ts"],
"sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\r\n\taguavberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Dragon\",\r\n\t\t},\r\n\t},\r\n\tapicotberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Ground\",\r\n\t\t},\r\n\t},\r\n\taspearberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Ice\",\r\n\t\t},\r\n\t},\r\n\tbabiriberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Steel\",\r\n\t\t},\r\n\t},\r\n\tbelueberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Electric\",\r\n\t\t},\r\n\t},\r\n\tblukberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 70,\r\n\t\t\ttype: \"Fire\",\r\n\t\t},\r\n\t},\r\n\tbuggem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tchartiberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Rock\",\r\n\t\t},\r\n\t},\r\n\tcheriberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Fire\",\r\n\t\t},\r\n\t},\r\n\tchestoberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Water\",\r\n\t\t},\r\n\t},\r\n\tchilanberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Normal\",\r\n\t\t},\r\n\t},\r\n\tchopleberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Fighting\",\r\n\t\t},\r\n\t},\r\n\tcobaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Flying\",\r\n\t\t},\r\n\t},\r\n\tcolburberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Dark\",\r\n\t\t},\r\n\t},\r\n\tcornnberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 70,\r\n\t\t\ttype: \"Bug\",\r\n\t\t},\r\n\t},\r\n\tcustapberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Ghost\",\r\n\t\t},\r\n\t},\r\n\tdarkgem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tdragongem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tdurinberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Water\",\r\n\t\t},\r\n\t},\r\n\telectricgem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tenigmaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Bug\",\r\n\t\t},\r\n\t},\r\n\tfightinggem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tfigyberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Bug\",\r\n\t\t},\r\n\t},\r\n\tfiregem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tflyinggem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tganlonberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Ice\",\r\n\t\t},\r\n\t},\r\n\tghostgem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tgrassgem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tgrepaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 70,\r\n\t\t\ttype: \"Flying\",\r\n\t\t},\r\n\t},\r\n\tgroundgem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\thabanberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Dragon\",\r\n\t\t},\r\n\t},\r\n\thondewberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 70,\r\n\t\t\ttype: \"Ground\",\r\n\t\t},\r\n\t},\r\n\tiapapaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Dark\",\r\n\t\t},\r\n\t},\r\n\ticegem: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tjabocaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Dragon\",\r\n\t\t},\r\n\t},\r\n\tkasibberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Ghost\",\r\n\t\t},\r\n\t},\r\n\tkebiaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Poison\",\r\n\t\t},\r\n\t},\r\n\tkelpsyberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 70,\r\n\t\t\ttype: \"Fighting\",\r\n\t\t},\r\n\t},\r\n\tlansatberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Flying\",\r\n\t\t},\r\n\t},\r\n\tleppaberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Fighting\",\r\n\t\t},\r\n\t},\r\n\tliechiberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Grass\",\r\n\t\t},\r\n\t},\r\n\tlumberry: {\r\n\t\tinherit: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 60,\r\n\t\t\ttype: \"Flying\",\r\n\t\t},\r\n\t},\r\n\tmail: {\rLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,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AAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,IACP;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,IACP;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,IACP;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,IACP;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,IACP;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,MALine truncated
"names": []
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/moves.ts"],
"sourcesContent": ["export const Moves: {[k: string]: ModdedMoveData} = {\r\n\tabsorb: {\r\n\t\tinherit: true,\r\n\t\tflags: {protect: 1, mirror: 1},\r\n\t},\r\n\tacidarmor: {\r\n\t\tinherit: true,\r\n\t\tpp: 40,\r\n\t},\r\n\taircutter: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 55,\r\n\t},\r\n\tairslash: {\r\n\t\tinherit: true,\r\n\t\tpp: 20,\r\n\t},\r\n\taromatherapy: {\r\n\t\tinherit: true,\r\n\t\tonHit(target, source) {\r\n\t\t\tthis.add('-activate', source, 'move: Aromatherapy');\r\n\t\t\tconst allies = [...target.side.pokemon, ...target.side.allySide?.pokemon || []];\r\n\t\t\tfor (const ally of allies) {\r\n\t\t\t\tally.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tassurance: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 50,\r\n\t},\r\n\taurasphere: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 90,\r\n\t},\r\n\tautotomize: {\r\n\t\tinherit: true,\r\n\t\tvolatileStatus: 'autotomize',\r\n\t\tonHit(pokemon) {\r\n\t\t},\r\n\t\tcondition: {\r\n\t\t\tnoCopy: true, // doesn't get copied by Baton Pass\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tif (pokemon.species.weighthg > 1) {\r\n\t\t\t\t\tthis.effectState.multiplier = 1;\r\n\t\t\t\t\tthis.add('-start', pokemon, 'Autotomize');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonRestart(pokemon) {\r\n\t\t\t\tif (pokemon.species.weighthg - (this.effectState.multiplier * 1000) > 1) {\r\n\t\t\t\t\tthis.effectState.multiplier++;\r\n\t\t\t\t\tthis.add('-start', pokemon, 'Autotomize');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonModifyWeightPriority: 2,\r\n\t\t\tonModifyWeight(weighthg, pokemon) {\r\n\t\t\t\tif (this.effectState.multiplier) {\r\n\t\t\t\t\tweighthg -= this.effectState.multiplier * 1000;\r\n\t\t\t\t\tif (weighthg < 1) weighthg = 1;\r\n\t\t\t\t\treturn weighthg;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tbarrier: {\r\n\t\tinherit: true,\r\n\t\tpp: 30,\r\n\t},\r\n\tbestow: {\r\n\t\tinherit: true,\r\n\t\tflags: {protect: 1, mirror: 1, noassist: 1, failcopycat: 1},\r\n\t},\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 120,\r\n\t},\r\n\tblock: {\r\n\t\tinherit: true,\r\n\t\tflags: {protect: 1, reflectable: 1, mirror: 1},\r\n\t},\r\n\tbounce: {\r\n\t\tinherit: true,\r\n\t\tflags: {contact: 1, charge: 1, protect: 1, mirror: 1, gravity: 1, distance: 1, nosleeptalk: 1},\r\n\t},\r\n\tbubble: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 20,\r\n\t},\r\n\tbugbuzz: {\r\n\t\tinherit: true,\r\n\t\tflags: {protect: 1, mirror: 1, sound: 1},\r\n\t},\r\n\tcamouflage: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tif (!target.setType('Ground')) return false;\r\n\t\t\tthis.add('-start', target, 'typechange', 'Ground');\r\n\t\t},\r\n\t},\r\n\tcharm: {\r\n\t\tinherit: true,\r\n\t\ttype: \"Normal\",\r\n\t},\r\n\tchatter: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 60,\r\n\t\tonModifyMove(move, pokemon) {\r\n\t\t\tif (pokemon.species.name !== 'Chatot') delete move.secondaries;\r\n\t\t},\r\n\t\tsecondary: {\r\n\t\t\tchance: 10,\r\n\t\t\tvolatileStatus: 'confusion',\r\n\t\t},\r\n\t\tflags: {protect: 1, sound: 1, distance: 1, noassist: 1, failcopycat: 1, failmefirst: 1, nosleeptalk: 1, failmimic: 1},\r\n\t},\r\n\tconversion: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tconst possibleTypes = target.moveSlots.map(moveSlot => {\r\n\t\t\t\tconst move = this.dex.moves.get(moveSlot.id);\r\n\t\t\t\tif (move.id !== 'conversion' && !target.hasType(move.type)) {\r\n\t\t\t\t\treturn move.type;\r\n\t\t\t\t}\r\n\t\t\t\treturn '';\r\n\t\t\t}).filter(type => type);\r\n\t\t\tif (!possibleTypes.length) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tconst type = this.sample(possibleTypes);\r\n\r\n\t\t\tif (!target.setType(type)) return false;\r\n\t\t\tthis.add('-start', target, 'typechange', type);\r\n\t\t},\r\n\t},\r\n\tcopycat: {\r\n\t\tinherit: true,\r\n\t\tonHit(pokemon) {\r\n\t\t\tif (!this.lastMove || this.dex.moves.get(this.lastMove.id).flags['failcopycat']) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.actions.useMove(this.lastMove.id, pokemon);\r\n\t\t},\r\n\t},\r\n\tcottonspore: {\r\n\t\tinherit: true,\r\n\t\tonTryHit() {},\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tcovet: {\r\n\t\tinherit: true,\r\n\t\tpp: 40,\r\n\t},\r\n\tcrabhammer: {\r\n\t\tinherit: true,\r\n\t\tbasePower: 90,\r\n\t},\r\n\tdefog: {\r\n\t\tinherit: true,\r\n\t\tonHit(pokemon) {\r\n\t\t\tif (!pokemon.volatiles['substitute']) this.boost({evasion: -1});\r\n\t\t\tconst sideConditions = ['reflect', 'lightscreen', 'safeguard', 'mist', 'spikes', 'toxicspikes', 'stealthrock'];\r\n\t\t\tfor (const condition of sideConditions) {\r\n\t\t\t\tif (pokemon.side.removeSideCondition(condition)) {\r\n\t\t\t\t\tthis.add('-sideend', pokemon.side, this.dex.conditions.get(condition).name, '[from] move: Defog', '[of] ' + pokemon);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdig: {\r\n\t\tinherit: true,\r\n\t\tflags: {contact: 1, charge: 1, protect: 1, mirror: 1, nonsky: 1, nosleeptalk: 1},\r\n\t},\r\n\tdive: {\r\n\t\tinherit: true,\r\n\t\tflags: {contact: 1, charge: 1, protect: 1, mirror: 1, nonsky: 1, nosleeptalk: 1},\r\n\t},\r\n\tdLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,OAAO,EAAC,SAAS,GAAG,QAAQ,EAAC;AAAA,EAC9B;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,IAAI;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,IAAI;AAAA,EACL;AAAA,EACA,cAAc;AAAA,IACb,SAA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UAAU,GAAG,aAAa,EAAC;AAAA,EACpC;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,OAAO,EAAC,SAAS,GAAG,SAAS,EAAC;AAAA,EAC/B;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB,QAAQ,QAAQ,MAAM;AACvC,UAAI,CAAC,eAAe,aAAa,EAAE,SAAS,KAAK,YAAY,GAAG;AAC/D,aAAK,IAAI,UAAU;AACnB,eAAO;AAAA,MACR;AACA,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,KAAK;AAAA,IACLine truncated
"names": ["type"]
}
+567
View File
@@ -0,0 +1,567 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var pokedex_exports = {};
__export(pokedex_exports, {
Pokedex: () => Pokedex
});
module.exports = __toCommonJS(pokedex_exports);
const Pokedex = {
bulbasaur: {
inherit: true,
maleOnlyHidden: true
},
ivysaur: {
inherit: true,
maleOnlyHidden: true
},
venusaur: {
inherit: true,
maleOnlyHidden: true
},
charmander: {
inherit: true,
maleOnlyHidden: true
},
charmeleon: {
inherit: true,
maleOnlyHidden: true
},
charizard: {
inherit: true,
maleOnlyHidden: true
},
squirtle: {
inherit: true,
maleOnlyHidden: true
},
wartortle: {
inherit: true,
maleOnlyHidden: true
},
blastoise: {
inherit: true,
maleOnlyHidden: true
},
butterfree: {
inherit: true,
baseStats: { hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70 }
},
beedrill: {
inherit: true,
baseStats: { hp: 65, atk: 80, def: 40, spa: 45, spd: 80, spe: 75 }
},
pidgeot: {
inherit: true,
baseStats: { hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91 }
},
pikachu: {
inherit: true,
baseStats: { hp: 35, atk: 55, def: 30, spa: 50, spd: 40, spe: 90 }
},
raichu: {
inherit: true,
baseStats: { hp: 60, atk: 90, def: 55, spa: 90, spd: 80, spe: 100 }
},
nidoqueen: {
inherit: true,
baseStats: { hp: 90, atk: 82, def: 87, spa: 75, spd: 85, spe: 76 }
},
nidoking: {
inherit: true,
baseStats: { hp: 81, atk: 92, def: 77, spa: 85, spd: 75, spe: 85 }
},
clefairy: {
inherit: true,
types: ["Normal"]
},
clefable: {
inherit: true,
types: ["Normal"],
baseStats: { hp: 95, atk: 70, def: 73, spa: 85, spd: 90, spe: 60 }
},
jigglypuff: {
inherit: true,
types: ["Normal"],
abilities: { 0: "Cute Charm", H: "Friend Guard" }
},
wigglytuff: {
inherit: true,
types: ["Normal"],
baseStats: { hp: 140, atk: 70, def: 45, spa: 75, spd: 50, spe: 45 },
abilities: { 0: "Cute Charm", H: "Frisk" }
},
vileplume: {
inherit: true,
baseStats: { hp: 75, atk: 80, def: 85, spa: 100, spd: 90, spe: 50 }
},
poliwrath: {
inherit: true,
baseStats: { hp: 90, atk: 85, def: 95, spa: 70, spd: 90, spe: 70 }
},
alakazam: {
inherit: true,
baseStats: { hp: 55, atk: 50, def: 45, spa: 135, spd: 85, spe: 120 }
},
victreebel: {
inherit: true,
baseStats: { hp: 80, atk: 105, def: 65, spa: 100, spd: 60, spe: 70 }
},
golem: {
inherit: true,
baseStats: { hp: 80, atk: 110, def: 130, spa: 55, spd: 65, spe: 45 }
},
mrmime: {
inherit: true,
types: ["Psychic"]
},
articuno: {
inherit: true,
unreleasedHidden: true
},
zapdos: {
inherit: true,
abilities: { 0: "Pressure", H: "Lightning Rod" },
unreleasedHidden: true
},
moltres: {
inherit: true,
unreleasedHidden: true
},
chikorita: {
inherit: true,
unreleasedHidden: true
},
bayleef: {
inherit: true,
unreleasedHidden: true
},
meganium: {
inherit: true,
unreleasedHidden: true
},
cyndaquil: {
inherit: true,
unreleasedHidden: true
},
quilava: {
inherit: true,
unreleasedHidden: true
},
typhlosion: {
inherit: true,
unreleasedHidden: true
},
totodile: {
inherit: true,
unreleasedHidden: true
},
croconaw: {
inherit: true,
unreleasedHidden: true
},
feraligatr: {
inherit: true,
unreleasedHidden: true
},
igglybuff: {
inherit: true,
types: ["Normal"],
abilities: { 0: "Cute Charm", H: "Friend Guard" }
},
togepi: {
inherit: true,
types: ["Normal"]
},
togetic: {
inherit: true,
types: ["Normal", "Flying"]
},
cleffa: {
inherit: true,
types: ["Normal"]
},
ampharos: {
inherit: true,
baseStats: { hp: 90, atk: 75, def: 75, spa: 115, spd: 90, spe: 55 }
},
bellossom: {
inherit: true,
baseStats: { hp: 75, atk: 80, def: 85, spa: 90, spd: 100, spe: 50 }
},
marill: {
inherit: true,
types: ["Water"]
},
azumarill: {
inherit: true,
types: ["Water"],
baseStats: { hp: 100, atk: 50, def: 80, spa: 50, spd: 80, spe: 50 }
},
jumpluff: {
inherit: true,
baseStats: { hp: 75, atk: 55, def: 70, spa: 55, spd: 85, spe: 110 }
},
snubbull: {
inherit: true,
types: ["Normal"]
},
granbull: {
inherit: true,
types: ["Normal"]
},
tyrogue: {
inherit: true,
maleOnlyHidden: true
},
hitmonlee: {
inherit: true,
maleOnlyHidden: true
},
hitmonchan: {
inherit: true,
maleOnlyHidden: true
},
hitmontop: {
inherit: true,
maleOnlyHidden: true
},
treecko: {
inherit: true,
maleOnlyHidden: true
},
grovyle: {
inherit: true,
maleOnlyHidden: true
},
sceptile: {
inherit: true,
maleOnlyHidden: true
},
torchic: {
inherit: true,
maleOnlyHidden: true
},
combusken: {
inherit: true,
maleOnlyHidden: true
},
blaziken: {
inherit: true,
maleOnlyHidden: true
},
mudkip: {
inherit: true,
maleOnlyHidden: true
},
marshtomp: {
inherit: true,
maleOnlyHidden: true
},
swampert: {
inherit: true,
maleOnlyHidden: true
},
beautifly: {
inherit: true,
baseStats: { hp: 60, atk: 70, def: 50, spa: 90, spd: 50, spe: 65 }
},
ralts: {
inherit: true,
types: ["Psychic"]
},
kirlia: {
inherit: true,
types: ["Psychic"]
},
gardevoir: {
inherit: true,
types: ["Psychic"]
},
exploud: {
inherit: true,
baseStats: { hp: 104, atk: 91, def: 63, spa: 91, spd: 63, spe: 68 }
},
azurill: {
inherit: true,
types: ["Normal"]
},
mawile: {
inherit: true,
types: ["Steel"]
},
plusle: {
inherit: true,
abilities: { 0: "Plus" }
},
minun: {
inherit: true,
abilities: { 0: "Minus" }
},
kecleon: {
inherit: true,
abilities: { 0: "Color Change" }
},
feebas: {
inherit: true,
abilities: { 0: "Swift Swim", H: "Adaptability" }
},
milotic: {
inherit: true,
abilities: { 0: "Marvel Scale", H: "Cute Charm" }
},
duskull: {
inherit: true,
abilities: { 0: "Levitate" }
},
dusclops: {
inherit: true,
abilities: { 0: "Pressure" }
},
regirock: {
inherit: true,
unreleasedHidden: true
},
regice: {
inherit: true,
unreleasedHidden: true
},
registeel: {
inherit: true,
unreleasedHidden: true
},
turtwig: {
inherit: true,
maleOnlyHidden: true
},
grotle: {
inherit: true,
maleOnlyHidden: true
},
torterra: {
inherit: true,
maleOnlyHidden: true
},
chimchar: {
inherit: true,
maleOnlyHidden: true
},
monferno: {
inherit: true,
maleOnlyHidden: true
},
infernape: {
inherit: true,
maleOnlyHidden: true
},
piplup: {
inherit: true,
maleOnlyHidden: true
},
prinplup: {
inherit: true,
maleOnlyHidden: true
},
empoleon: {
inherit: true,
maleOnlyHidden: true
},
starly: {
inherit: true,
abilities: { 0: "Keen Eye" }
},
staraptor: {
inherit: true,
baseStats: { hp: 85, atk: 120, def: 70, spa: 50, spd: 50, spe: 100 }
},
roserade: {
inherit: true,
baseStats: { hp: 60, atk: 70, def: 55, spa: 125, spd: 105, spe: 90 }
},
mimejr: {
inherit: true,
types: ["Psychic"]
},
togekiss: {
inherit: true,
types: ["Normal", "Flying"]
},
dusknoir: {
inherit: true,
abilities: { 0: "Pressure" }
},
snivy: {
inherit: true,
unreleasedHidden: true
},
servine: {
inherit: true,
unreleasedHidden: true
},
serperior: {
inherit: true,
unreleasedHidden: true
},
tepig: {
inherit: true,
unreleasedHidden: true
},
pignite: {
inherit: true,
unreleasedHidden: true
},
emboar: {
inherit: true,
unreleasedHidden: true
},
oshawott: {
inherit: true,
unreleasedHidden: true
},
dewott: {
inherit: true,
unreleasedHidden: true
},
samurott: {
inherit: true,
unreleasedHidden: true
},
stoutland: {
inherit: true,
baseStats: { hp: 85, atk: 100, def: 90, spa: 45, spd: 90, spe: 80 }
},
pansage: {
inherit: true,
maleOnlyHidden: true
},
simisage: {
inherit: true,
maleOnlyHidden: true
},
pansear: {
inherit: true,
maleOnlyHidden: true
},
simisear: {
inherit: true,
maleOnlyHidden: true
},
panpour: {
inherit: true,
maleOnlyHidden: true
},
simipour: {
inherit: true,
maleOnlyHidden: true
},
unfezant: {
inherit: true,
baseStats: { hp: 80, atk: 105, def: 80, spa: 65, spd: 55, spe: 93 }
},
gigalith: {
inherit: true,
baseStats: { hp: 85, atk: 135, def: 130, spa: 60, spd: 70, spe: 25 }
},
seismitoad: {
inherit: true,
baseStats: { hp: 105, atk: 85, def: 75, spa: 85, spd: 75, spe: 74 }
},
leavanny: {
inherit: true,
baseStats: { hp: 75, atk: 103, def: 80, spa: 70, spd: 70, spe: 92 }
},
venipede: {
inherit: true,
abilities: { 0: "Poison Point", 1: "Swarm", H: "Quick Feet" }
},
whirlipede: {
inherit: true,
abilities: { 0: "Poison Point", 1: "Swarm", H: "Quick Feet" }
},
scolipede: {
inherit: true,
baseStats: { hp: 60, atk: 90, def: 89, spa: 55, spd: 69, spe: 112 },
abilities: { 0: "Poison Point", 1: "Swarm", H: "Quick Feet" }
},
cottonee: {
inherit: true,
types: ["Grass"]
},
whimsicott: {
inherit: true,
types: ["Grass"]
},
basculinbluestriped: {
inherit: true,
abilities: { 0: "Rock Head", 1: "Adaptability", H: "Mold Breaker", S: "Reckless" }
},
krookodile: {
inherit: true,
baseStats: { hp: 95, atk: 117, def: 70, spa: 65, spd: 70, spe: 92 }
},
gothita: {
inherit: true,
unreleasedHidden: true
},
gothorita: {
inherit: true,
abilities: { 0: "Frisk", H: "Shadow Tag" },
maleOnlyHidden: true
},
gothitelle: {
inherit: true,
abilities: { 0: "Frisk", H: "Shadow Tag" },
maleOnlyHidden: true
},
ferrothorn: {
inherit: true,
abilities: { 0: "Iron Barbs" }
},
klink: {
inherit: true,
unreleasedHidden: true
},
litwick: {
inherit: true,
abilities: { 0: "Flash Fire", 1: "Flame Body", H: "Shadow Tag" },
unreleasedHidden: true
},
lampent: {
inherit: true,
abilities: { 0: "Flash Fire", 1: "Flame Body", H: "Shadow Tag" },
unreleasedHidden: true
},
chandelure: {
inherit: true,
abilities: { 0: "Flash Fire", 1: "Flame Body", H: "Shadow Tag" },
unreleasedHidden: true
},
rufflet: {
inherit: true,
unreleasedHidden: true
},
larvesta: {
inherit: true,
unreleasedHidden: true
},
volcarona: {
inherit: true,
unreleasedHidden: true
}
};
//# sourceMappingURL=pokedex.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/pokedex.ts"],
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\tbulbasaur: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tivysaur: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tvenusaur: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tcharmander: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tcharmeleon: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tcharizard: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tsquirtle: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\twartortle: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tblastoise: {\r\n\t\tinherit: true,\r\n\t\tmaleOnlyHidden: true,\r\n\t},\r\n\tbutterfree: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70},\r\n\t},\r\n\tbeedrill: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 65, atk: 80, def: 40, spa: 45, spd: 80, spe: 75},\r\n\t},\r\n\tpidgeot: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91},\r\n\t},\r\n\tpikachu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 35, atk: 55, def: 30, spa: 50, spd: 40, spe: 90},\r\n\t},\r\n\traichu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 90, def: 55, spa: 90, spd: 80, spe: 100},\r\n\t},\r\n\tnidoqueen: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 90, atk: 82, def: 87, spa: 75, spd: 85, spe: 76},\r\n\t},\r\n\tnidoking: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 81, atk: 92, def: 77, spa: 85, spd: 75, spe: 85},\r\n\t},\r\n\tclefairy: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t},\r\n\tclefable: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t\tbaseStats: {hp: 95, atk: 70, def: 73, spa: 85, spd: 90, spe: 60},\r\n\t},\r\n\tjigglypuff: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t\tabilities: {0: \"Cute Charm\", H: \"Friend Guard\"},\r\n\t},\r\n\twigglytuff: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t\tbaseStats: {hp: 140, atk: 70, def: 45, spa: 75, spd: 50, spe: 45},\r\n\t\tabilities: {0: \"Cute Charm\", H: \"Frisk\"},\r\n\t},\r\n\tvileplume: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 75, atk: 80, def: 85, spa: 100, spd: 90, spe: 50},\r\n\t},\r\n\tpoliwrath: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 90, atk: 85, def: 95, spa: 70, spd: 90, spe: 70},\r\n\t},\r\n\talakazam: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 55, atk: 50, def: 45, spa: 135, spd: 85, spe: 120},\r\n\t},\r\n\tvictreebel: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 80, atk: 105, def: 65, spa: 100, spd: 60, spe: 70},\r\n\t},\r\n\tgolem: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 80, atk: 110, def: 130, spa: 55, spd: 65, spe: 45},\r\n\t},\r\n\tmrmime: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Psychic\"],\r\n\t},\r\n\tarticuno: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tzapdos: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Pressure\", H: \"Lightning Rod\"},\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tmoltres: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tchikorita: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tbayleef: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tmeganium: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tcyndaquil: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tquilava: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\ttyphlosion: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\ttotodile: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tcroconaw: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tferaligatr: {\r\n\t\tinherit: true,\r\n\t\tunreleasedHidden: true,\r\n\t},\r\n\tigglybuff: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t\tabilities: {0: \"Cute Charm\", H: \"Friend Guard\"},\r\n\t},\r\n\ttogepi: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t},\r\n\ttogetic: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\", \"Flying\"],\r\n\t},\r\n\tcleffa: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t},\r\n\tampharos: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 90, atk: 75, def: 75, spa: 115, spd: 90, spe: 55},\r\n\t},\r\n\tbellossom: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 75, atk: 80, def: 85, spa: 90, spd: 100, spe: 50},\r\n\t},\r\n\tmarill: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Water\"],\r\n\t},\r\n\tazumarill: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Water\"],\r\n\t\tbaseStats: {hp: 100, atk: 50, def: 80, spa: 50, spd: 80, spe: 50},\r\n\t},\r\n\tjumpluff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 75, atk: 55, def: 70, spa: 55, spd: 85, spe: 110},\r\n\t},\r\n\tsnubbull: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t},\r\n\tgranbull: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\"],\r\n\t},\r\n\ttyrogue: {\r\n\t\tinherit: true,\r\n\Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAA4C;AAAA,EACxD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AA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IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EACjE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,EACjE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,OAAO,CAAC,QAAQ;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,OAAO,CAAC,QAAQ;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,gBAAgB;AAAA,EACjB;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,gLine truncated
"names": []
}
File diff suppressed because it is too large. Load diff
+796
View File
@@ -0,0 +1,796 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var random_teams_exports = {};
__export(random_teams_exports, {
RandomGen5Teams: () => RandomGen5Teams,
default: () => random_teams_default
});
module.exports = __toCommonJS(random_teams_exports);
var import_random_teams = __toESM(require("../gen6/random-teams"));
var import_lib = require("../../../lib");
var import_dex = require("../../../sim/dex");
class RandomGen5Teams extends import_random_teams.default {
constructor(format, prng) {
super(format, prng);
this.randomData = require("./random-data.json");
this.moveEnforcementCheckers = {
lead: (movePool, moves, abilities, types, counter) => movePool.includes("stealthrock") && !!counter.get("Status") && !counter.setupType && !counter.get("speedsetup") && !moves.has("substitute"),
Dark: (movePool, moves, abilities, types, counter) => !counter.get("Dark"),
Dragon: (movePool, moves, abilities, types, counter) => !counter.get("Dragon"),
Electric: (movePool, moves, abilities, types, counter) => !counter.get("Electric") || movePool.includes("thunder"),
Fighting: (movePool, moves, abilities, types, counter, species) => !counter.get("Fighting") && (species.baseStats.atk >= 90 || abilities.has("Pure Power") || !!counter.setupType || !counter.get("Status")),
Fire: (movePool, moves, abilities, types, counter) => !counter.get("Fire"),
Flying: (movePool, moves, abilities, types, counter) => !counter.get("Flying") && (types.has("Normal") || abilities.has("Serene Grace")),
Ghost: (movePool, moves, abilities, types, counter) => !types.has("Dark") && !counter.get("Ghost"),
Grass: (movePool) => ["hornleech", "seedflare", "woodhammer"].some((m) => movePool.includes(m)),
Ground: (movePool, moves, abilities, types, counter) => !counter.get("Ground") && !moves.has("rest") && !moves.has("sleeptalk"),
Ice: (movePool, moves, abilities, types, counter) => !counter.get("Ice"),
Normal: (movePool, moves, abilities, types, counter, species) => movePool.includes("return") && species.baseStats.atk > 80,
Rock: (movePool, moves, abilities, types, counter, species) => !counter.get("Rock") && species.baseStats.atk >= 80,
Steel: (movePool, moves, abilities, types, counter) => !counter.get("Steel") && abilities.has("Technician"),
Water: (movePool, moves, abilities, types, counter) => !counter.get("Water") || abilities.has("Adaptability") && movePool.includes("waterfall"),
Contrary: (movePool, moves, abilities, types, counter, species, teamDetails) => !counter.get("contrary") && species.name !== "Shuckle",
Guts: (movePool, moves, abilities, types) => types.has("Normal") && movePool.includes("facade"),
"Slow Start": (movePool) => movePool.includes("substitute")
};
}
shouldCullMove(move, types, moves, abilities, counter, movePool, teamDetails, species, isLead) {
const hasRestTalk = moves.has("rest") && moves.has("sleeptalk");
switch (move.id) {
case "endeavor":
return { cull: !isLead };
case "focuspunch":
return { cull: !moves.has("substitute") || counter.damagingMoves.size < 2 || moves.has("swordsdance") };
case "lightscreen":
if (movePool.length > 1) {
const screen = movePool.indexOf("reflect");
if (screen >= 0)
this.fastPop(movePool, screen);
}
return { cull: !moves.has("reflect") };
case "reflect":
if (movePool.length > 1) {
const screen = movePool.indexOf("lightscreen");
if (screen >= 0)
this.fastPop(movePool, screen);
}
return { cull: !moves.has("lightscreen") };
case "rest":
return { cull: movePool.includes("sleeptalk") };
case "sleeptalk":
if (movePool.length > 1) {
const rest = movePool.indexOf("rest");
if (rest >= 0)
this.fastPop(movePool, rest);
}
return { cull: !moves.has("rest") };
case "storedpower":
return { cull: !counter.setupType && !moves.has("cosmicpower") };
case "weatherball":
return { cull: !moves.has("sunnyday") };
case "bellydrum":
case "bulkup":
case "coil":
case "curse":
case "dragondance":
case "honeclaws":
case "swordsdance":
return { cull: counter.setupType !== "Physical" || counter.get("physicalsetup") > 1 || counter.get("Physical") + counter.get("physicalpool") < 2 && !hasRestTalk, isSetup: true };
case "calmmind":
case "nastyplot":
case "tailglow":
return { cull: counter.setupType !== "Special" || counter.get("specialsetup") > 1 || counter.get("Special") + counter.get("specialpool") < 2 && !hasRestTalk, isSetup: true };
case "growth":
case "shellsmash":
case "workup":
const moveTotal = counter.damagingMoves.size + counter.get("physicalpool") + counter.get("specialpool");
return {
cull: counter.setupType !== "Mixed" || counter.get("mixedsetup") > 1 || moveTotal < 2 || move.id === "growth" && !moves.has("sunnyday"),
isSetup: true
};
case "agility":
case "autotomize":
case "rockpolish":
return {
cull: counter.damagingMoves.size < 2 && !counter.setupType || hasRestTalk,
isSetup: !counter.setupType
};
case "bulletpunch":
return { cull: !!counter.get("speedsetup") };
case "circlethrow":
case "dragontail":
return { cull: moves.has("substitute") || !!counter.setupType && !moves.has("rest") && !moves.has("sleeptalk") };
case "fakeout":
case "healingwish":
return { cull: !!counter.setupType || !!counter.get("recovery") || moves.has("substitute") };
case "haze":
case "magiccoat":
case "pursuit":
case "spikes":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || moves.has("rest") || moves.has("trickroom") };
case "iceshard":
return { cull: moves.has("shellsmash") };
case "leechseed":
case "roar":
case "whirlwind":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || moves.has("dragontail") };
case "nightshade":
case "seismictoss":
case "superfang":
return { cull: !!counter.setupType || counter.damagingMoves.size > 1 };
case "protect":
return { cull: moves.has("rest") || counter.setupType && !abilities.has("Speed Boost") && !moves.has("wish") || moves.has("lightscreen") && moves.has("reflect") };
case "rapidspin":
return { cull: moves.has("shellsmash") || !!counter.setupType && counter.get("Status") >= 2 };
case "stealthrock":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || moves.has("rest") || !!teamDetails.stealthRock };
case "switcheroo":
case "trick":
return { cull: counter.get("Physical") + counter.get("Special") < 3 || ["fakeout", "rapidspin", "suckerpunch"].some((m) => moves.has(m)) };
case "toxic":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || moves.has("trickroom") };
case "toxicspikes":
return { cull: !!counter.setupType || !!teamDetails.toxicSpikes };
case "trickroom":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || counter.damagingMoves.size < 2 || moves.has("lightscreen") || moves.has("reflect") };
case "uturn":
const infernapeCase = species.id === "infernape" && !!counter.get("Special");
return { cull: !!counter.setupType || !!counter.get("speedsetup") || infernapeCase };
case "voltswitch":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || ["magnetrise", "uturn"].some((m) => moves.has(m)) };
case "bugbite":
return { cull: moves.has("uturn") };
case "crunch":
return { cull: !types.has("Dark") && moves.has("suckerpunch") };
case "dragonpulse":
case "spacialrend":
return { cull: moves.has("dracometeor") || moves.has("outrage") };
case "thunderbolt":
return { cull: moves.has("wildcharge") };
case "drainpunch":
case "focusblast":
return { cull: moves.has("closecombat") || moves.has("lowkick") };
case "blueflare":
case "flareblitz":
case "fierydance":
case "flamethrower":
case "lavaplume":
return { cull: ["fireblast", "overheat", "vcreate"].some((m) => moves.has(m)) };
case "bravebird":
case "pluck":
return { cull: moves.has("acrobatics") || moves.has("hurricane") };
case "acrobatics":
return { cull: !counter.setupType && moves.has("hurricane") };
case "hurricane":
return { cull: !!counter.setupType && moves.has("acrobatics") };
case "gigadrain":
return { cull: !counter.setupType && moves.has("leafstorm") || ["petaldance", "powerwhip"].some((m) => moves.has(m)) };
case "solarbeam":
return { cull: !abilities.has("Drought") && !moves.has("sunnyday") || moves.has("gigadrain") };
case "leafstorm":
return { cull: !!counter.setupType && (moves.has("gigadrain") || moves.has("seedbomb")) };
case "seedbomb":
return { cull: !counter.setupType && moves.has("leafstorm") };
case "bonemerang":
case "earthpower":
return { cull: moves.has("earthquake") };
case "extremespeed":
case "headsmash":
return { cull: moves.has("roost") };
case "facade":
return { cull: moves.has("suckerpunch") && !types.has("Normal") };
case "hydropump":
return { cull: moves.has("waterfall") && !!counter.setupType };
case "judgment":
return { cull: counter.setupType !== "Special" && counter.get("stab") > 1 };
case "return":
return { cull: moves.has("doubleedge") };
case "rockblast":
return { cull: moves.has("stoneedge") };
case "poisonjab":
return { cull: moves.has("gunkshot") };
case "psychic":
return { cull: moves.has("psyshock") };
case "scald":
case "surf":
return { cull: moves.has("hydropump") || moves.has("waterfall") };
case "shadowball":
return { cull: types.has("Psychic") && types.size < 2 && counter.get("Special") < 3 && moves.has("calmmind") && species.id !== "chimecho" };
case "waterfall":
return { cull: moves.has("hydropump") && !counter.setupType && !moves.has("raindance") && !teamDetails.rain };
case "waterspout":
return { cull: !!counter.get("Status") };
case "encore":
case "icepunch":
case "raindance":
case "suckerpunch":
return { cull: moves.has("thunderwave") || hasRestTalk };
case "glare":
case "headbutt":
return { cull: moves.has("bodyslam") };
case "healbell":
return { cull: !!counter.get("speedsetup") || moves.has("magiccoat") };
case "moonlight":
case "painsplit":
case "recover":
case "roost":
case "softboiled":
case "synthesis":
const gliscorCase = species.id === "gliscor" && moves.has("protect");
return { cull: ["leechseed", "rest", "wish"].some((m) => moves.has(m)) || gliscorCase };
case "substitute":
return { cull: moves.has("doubleedge") && !abilities.has("rockhead") || ["pursuit", "rest", "superpower", "uturn", "voltswitch"].some((m) => moves.has(m)) || moves.has("acrobatics") && moves.has("earthquake") || movePool.includes("shiftgear") };
case "thunderwave":
return { cull: !!counter.setupType || !!counter.get("speedsetup") || hasRestTalk || moves.has("discharge") || moves.has("trickroom") };
case "willowisp":
return { cull: moves.has("lavaplume") || moves.has("scald") && !types.has("Ghost") };
}
return { cull: false };
}
shouldCullAbility(ability, types, moves, abilities, counter, movePool, teamDetails, species) {
switch (ability) {
case "Anger Point":
case "Gluttony":
case "Keen Eye":
case "Moody":
case "Sand Veil":
case "Snow Cloak":
case "Steadfast":
case "Weak Armor":
return true;
case "Analytic":
case "Download":
case "Hyper Cutter":
return species.nfe;
case "Chlorophyll":
case "Solar Power":
return !moves.has("sunnyday") && !teamDetails.sun;
case "Compound Eyes":
case "No Guard":
return !counter.get("inaccurate");
case "Contrary":
case "Iron Fist":
case "Skill Link":
return !counter.get((0, import_dex.toID)(ability));
case "Defiant":
case "Moxie":
return !counter.get("Physical");
case "Flash Fire":
return abilities.has("Drought");
case "Guts":
return species.id === "heracross";
case "Hydration":
case "Rain Dish":
case "Swift Swim":
return !moves.has("raindance") && !teamDetails.rain;
case "Hustle":
return counter.get("Physical") < 2;
case "Ice Body":
return !teamDetails.hail;
case "Immunity":
return abilities.has("Toxic Boost");
case "Intimidate":
return moves.has("rest") || species.id === "staraptor";
case "Lightning Rod":
return species.types.includes("Ground");
case "Limber":
return species.types.includes("Electric");
case "Mold Breaker":
return abilities.has("Adaptability") || moves.has("rest") && moves.has("sleeptalk");
case "Overgrow":
return !counter.get("Grass");
case "Poison Heal":
return abilities.has("Technician") && !!counter.get("technician");
case "Prankster":
return !counter.get("Status");
case "Pressure":
case "Synchronize":
return counter.get("Status") < 2 || abilities.has("Trace");
case "Reckless":
case "Rock Head":
return !counter.get("recoil") || abilities.has("Sap Sipper");
case "Regenerator":
return abilities.has("Magic Guard");
case "Sand Force":
case "Sand Rush":
return !teamDetails.sand;
case "Serene Grace":
return !counter.get("serenegrace") || species.id === "blissey";
case "Sheer Force":
return !counter.get("sheerforce") || abilities.has("Guts");
case "Sturdy":
return !!counter.get("recoil") && !counter.get("recovery");
case "Swarm":
return !counter.get("Bug");
case "Technician":
return !counter.get("technician") || moves.has("tailslap");
case "Tinted Lens":
return abilities.has("Insomnia") || abilities.has("Magic Guard") || moves.has("protect");
case "Unaware":
return !!counter.setupType || abilities.has("Magic Guard");
case "Unburden":
return species.baseStats.spe > 100 && !moves.has("acrobatics");
case "Water Absorb":
return abilities.has("Drizzle") || abilities.has("Unaware") || abilities.has("Volt Absorb");
}
return false;
}
getHighPriorityItem(ability, types, moves, counter, teamDetails, species, isLead) {
if (species.requiredItem)
return species.requiredItem;
if (species.requiredItems)
return this.sample(species.requiredItems);
if (species.name === "Marowak")
return "Thick Club";
if (species.name === "Farfetch\u2019d")
return "Stick";
if (species.name === "Pikachu")
return "Light Ball";
if (species.name === "Shedinja" || species.name === "Smeargle")
return "Focus Sash";
if (species.name === "Unown")
return "Choice Specs";
if (species.name === "Wobbuffet" && moves.has("destinybond") && this.randomChance(1, 2))
return "Custap Berry";
if (ability === "Imposter")
return "Choice Scarf";
if (moves.has("switcheroo") || moves.has("trick")) {
if (species.baseStats.spe >= 60 && species.baseStats.spe <= 108 && !counter.get("priority")) {
return "Choice Scarf";
} else {
return counter.get("Physical") > counter.get("Special") ? "Choice Band" : "Choice Specs";
}
}
if (species.nfe)
return "Eviolite";
if (moves.has("shellsmash"))
return "White Herb";
if (ability === "Harvest" || moves.has("bellydrum"))
return "Sitrus Berry";
if ((ability === "Magic Guard" || ability === "Sheer Force") && counter.damagingMoves.size > 1)
return "Life Orb";
if (ability === "Poison Heal" || ability === "Toxic Boost" || ability === "Quick Feet" && moves.has("facade")) {
return "Toxic Orb";
}
if (moves.has("psychoshift"))
return "Flame Orb";
if (moves.has("rest") && !moves.has("sleeptalk") && ability !== "Natural Cure" && ability !== "Shed Skin") {
return "Chesto Berry";
}
if (ability === "Guts" && moves.has("facade")) {
return types.has("Fire") || moves.has("uturn") || moves.has("voltswitch") ? "Toxic Orb" : "Flame Orb";
}
if (moves.has("raindance"))
return ability === "Forecast" ? "Damp Rock" : "Life Orb";
if (moves.has("sunnyday"))
return ability === "Forecast" || ability === "Flower Gift" ? "Heat Rock" : "Life Orb";
if (moves.has("lightscreen") && moves.has("reflect"))
return "Light Clay";
if (moves.has("acrobatics"))
return "Flying Gem";
if (ability === "Unburden")
return moves.has("fakeout") ? "Normal Gem" : `${species.types[0]} Gem`;
}
getLowPriorityItem(ability, types, moves, abilities, counter, teamDetails, species, isLead) {
if (ability === "Speed Boost" && !moves.has("substitute") && counter.get("Physical") + counter.get("Special") > 2) {
return "Life Orb";
}
if (counter.get("Physical") >= 4 && ["dragontail", "fakeout", "flamecharge"].every((m) => !moves.has(m)) && !moves.has("suckerpunch") && (!moves.has("rapidspin") || this.dex.getEffectiveness("Rock", species) < 1)) {
return (species.baseStats.atk >= 100 || abilities.has("Huge Power")) && species.baseStats.spe >= 60 && species.baseStats.spe <= 108 && !counter.get("priority") && this.randomChance(2, 3) ? "Choice Scarf" : "Choice Band";
}
if (counter.get("Special") >= 4 || counter.get("Special") >= 3 && moves.has("uturn")) {
return species.baseStats.spa >= 100 && species.baseStats.spe >= 60 && species.baseStats.spe <= 108 && !moves.has("uturn") && (ability === "Download" || this.randomChance(2, 3)) ? "Choice Scarf" : "Choice Specs";
}
if (counter.setupType && moves.has("outrage"))
return "Lum Berry";
if (this.dex.getEffectiveness("Ground", species) >= 2 && ability !== "Levitate")
return "Air Balloon";
if (counter.get("Dark") >= 3)
return "Black Glasses";
if (species.name === "Palkia" && (moves.has("dracometeor") || moves.has("spacialrend"))) {
return "Lustrous Orb";
}
if (types.has("Poison") || ["bodyslam", "dragontail", "protect", "scald", "sleeptalk", "substitute"].some((m) => moves.has(m))) {
return "Leftovers";
}
if (counter.damagingMoves.size >= 4 && ability !== "Sturdy") {
return moves.has("uturn") ? "Expert Belt" : "Life Orb";
}
if (isLead && counter.get("hazards") && !counter.get("recovery") && ability !== "Regenerator" && species.baseStats.hp + species.baseStats.def + species.baseStats.spd <= 275) {
return ability === "Sturdy" ? "Custap Berry" : "Focus Sash";
}
if (moves.has("voltswitch") && species.baseStats.spe <= 90) {
return "Leftovers";
}
if (counter.damagingMoves.size >= 3 && species.baseStats.spe >= 40 && species.baseStats.hp + species.baseStats.def + species.baseStats.spd <= 275 && ability !== "Sturdy" && !moves.has("rapidspin") && !moves.has("uturn")) {
return "Life Orb";
}
}
randomSet(species, teamDetails = {}, isLead = false) {
species = this.dex.species.get(species);
let forme = species.name;
if (typeof species.battleOnly === "string") {
forme = species.battleOnly;
}
if (species.cosmeticFormes) {
forme = this.sample([species.name].concat(species.cosmeticFormes));
}
const data = this.randomData[species.id];
const movePool = (data.moves || Object.keys(this.dex.species.getLearnset(species.id))).slice();
const rejectedPool = [];
const moves = /* @__PURE__ */ new Set();
let ability = "";
const evs = { hp: 85, atk: 85, def: 85, spa: 85, spd: 85, spe: 85 };
const ivs = { hp: 31, atk: 31, def: 31, spa: 31, spd: 31, spe: 31 };
const types = new Set(species.types);
const abilities = new Set(Object.values(species.abilities));
if (species.unreleasedHidden)
abilities.delete(species.abilities.H);
let availableHP = 0;
for (const setMoveid of movePool) {
if (setMoveid.startsWith("hiddenpower"))
availableHP++;
}
let counter;
let hasHiddenPower = false;
do {
while (moves.size < this.maxMoveCount && movePool.length) {
const moveid = this.sampleNoReplace(movePool);
if (moveid.startsWith("hiddenpower")) {
availableHP--;
if (hasHiddenPower)
continue;
hasHiddenPower = true;
}
moves.add(moveid);
}
while (moves.size < this.maxMoveCount && rejectedPool.length) {
const moveid = this.sampleNoReplace(rejectedPool);
if (moveid.startsWith("hiddenpower")) {
if (hasHiddenPower) {
continue;
}
hasHiddenPower = true;
}
moves.add(moveid);
}
counter = this.queryMoves(moves, species.types, abilities, movePool);
for (const moveid of moves) {
const move = this.dex.moves.get(moveid);
let { cull, isSetup } = this.shouldCullMove(
move,
types,
moves,
abilities,
counter,
movePool,
teamDetails,
species,
isLead
);
if (move.category === "Physical" && counter.setupType === "Special" || move.category === "Special" && counter.setupType === "Physical") {
const stabs = counter.get(species.types[0]) + (counter.get(species.types[1]) || 0);
if (!types.has(move.type) || stabs > 1 || counter.get(move.category) < 2)
cull = true;
}
if (!isSetup && counter.setupType && counter.setupType !== "Mixed" && move.category !== counter.setupType && counter.get(counter.setupType) < 2 && (move.category !== "Status" || !move.flags.heal) && moveid !== "sleeptalk" && (move.category !== "Status" || counter.get(counter.setupType) + counter.get("Status") > 3 && counter.get("physicalsetup") + counter.get("specialsetup") < 2)) {
cull = true;
}
if (counter.setupType === "Special" && moveid === "hiddenpower" && species.types.length > 1 && counter.get("Special") <= 2 && !types.has(move.type) && !counter.get("Physical") && counter.get("specialpool")) {
cull = true;
}
const runEnforcementChecker = (checkerName) => {
if (!this.moveEnforcementCheckers[checkerName])
return false;
return this.moveEnforcementCheckers[checkerName](
movePool,
moves,
abilities,
types,
counter,
species,
teamDetails
);
};
if (!cull && !["judgment", "lightscreen", "quiverdance", "reflect", "sleeptalk"].includes(moveid) && !isSetup && !move.weather && !move.damage && (move.category !== "Status" || !move.flags.heal) && (move.category === "Status" || !types.has(move.type) || move.basePower && move.basePower < 40 && !move.multihit) && (counter.get("physicalsetup") + counter.get("specialsetup") < 2 && (!counter.setupType || counter.setupType === "Mixed" || move.category !== counter.setupType && move.category !== "Status" || counter.get(counter.setupType) + counter.get("Status") > 3))) {
if (!counter.get("stab") && !counter.get("damage") && (species.types.length > 1 || species.types[0] !== "Normal" && species.types[0] !== "Psychic" || !moves.has("icebeam") || species.baseStats.spa >= species.baseStats.spd) || !counter.get("recovery") && !counter.setupType && ["healingwish", "trick", "trickroom"].every((m) => !moves.has(m)) && !abilities.has("Poison Heal") && (counter.get("Status") || species.nfe && !!counter.get("Status")) && ["recover", "roost", "slackoff", "softboiled"].some((m) => movePool.includes(m)) || (movePool.includes("moonlight") && types.size < 2 && !moves.has("trickroom") || movePool.includes("darkvoid") || movePool.includes("milkdrink") || movePool.includes("quiverdance") || species.requiredMove && movePool.includes((0, import_dex.toID)(species.requiredMove))) || isLead && runEnforcementChecker("lead")) {
cull = true;
} else {
for (const type of types) {
if (runEnforcementChecker(type)) {
cull = true;
}
}
for (const abil of abilities) {
if (runEnforcementChecker(abil)) {
cull = true;
}
}
}
}
if (moveid === "rest" && cull) {
const sleeptalk = movePool.indexOf("sleeptalk");
if (sleeptalk >= 0) {
if (movePool.length < 2) {
cull = false;
} else {
this.fastPop(movePool, sleeptalk);
}
}
}
const isHP = moveid.startsWith("hiddenpower");
if (cull && (movePool.length - availableHP || availableHP && (isHP || !hasHiddenPower))) {
if (move.category !== "Status" && !move.damage && !move.flags.charge && (!isHP || !availableHP))
rejectedPool.push(moveid);
moves.delete(moveid);
if (isHP)
hasHiddenPower = false;
break;
}
if (cull && rejectedPool.length) {
moves.delete(moveid);
if (moveid.startsWith("hiddenpower"))
hasHiddenPower = false;
break;
}
}
} while (moves.size < this.maxMoveCount && (movePool.length || rejectedPool.length));
if (hasHiddenPower) {
let hpType;
for (const move of moves) {
if (move.startsWith("hiddenpower"))
hpType = move.substr(11);
}
if (!hpType)
throw new Error(`hasHiddenPower is true, but no Hidden Power move was found.`);
const HPivs = this.dex.types.get(hpType).HPivs;
let iv;
for (iv in HPivs) {
ivs[iv] = HPivs[iv];
}
}
const abilityData = Array.from(abilities).map((a) => this.dex.abilities.get(a));
import_lib.Utils.sortBy(abilityData, (abil) => -abil.rating);
if (abilityData.length > 1) {
if (abilityData[2] && abilityData[1].rating <= abilityData[2].rating && this.randomChance(1, 2)) {
[abilityData[1], abilityData[2]] = [abilityData[2], abilityData[1]];
}
if (abilityData[0].rating <= abilityData[1].rating) {
if (this.randomChance(1, 2))
[abilityData[0], abilityData[1]] = [abilityData[1], abilityData[0]];
} else if (abilityData[0].rating - 0.6 <= abilityData[1].rating) {
if (this.randomChance(2, 3))
[abilityData[0], abilityData[1]] = [abilityData[1], abilityData[0]];
}
ability = abilityData[0].name;
while (this.shouldCullAbility(ability, types, moves, abilities, counter, movePool, teamDetails, species)) {
if (ability === abilityData[0].name && abilityData[1].rating >= 1) {
ability = abilityData[1].name;
} else if (ability === abilityData[1].name && abilityData[2] && abilityData[2].rating >= 1) {
ability = abilityData[2].name;
} else {
ability = abilityData[0].name;
break;
}
}
if (abilities.has("Guts") && moves.has("facade") && (ability !== "Quick Feet" || !counter.setupType)) {
ability = "Guts";
} else if (abilities.has("Prankster") && counter.get("Status") > 1) {
ability = "Prankster";
} else if (abilities.has("Quick Feet") && moves.has("facade")) {
ability = "Quick Feet";
} else if (abilities.has("Swift Swim") && moves.has("raindance")) {
ability = "Swift Swim";
}
if (species.name === "Altaria")
ability = "Natural Cure";
} else {
ability = abilityData[0].name;
}
let item = this.getHighPriorityItem(ability, types, moves, counter, teamDetails, species, isLead);
if (item === void 0) {
item = this.getLowPriorityItem(ability, types, moves, abilities, counter, teamDetails, species, isLead);
}
if (item === void 0)
item = "Leftovers";
if (item === "Leftovers" && types.has("Poison")) {
item = "Black Sludge";
}
const level = this.adjustLevel || data.level || (species.nfe ? 90 : 80);
const srWeakness = this.dex.getEffectiveness("Rock", species);
while (evs.hp > 1) {
const hp = Math.floor(
Math.floor(
2 * species.baseStats.hp + (ivs.hp || 31) + Math.floor(evs.hp / 4) + 100
) * level / 100 + 10
);
if (moves.has("bellydrum") && item === "Sitrus Berry") {
if (hp % 2 === 0)
break;
} else {
if (srWeakness <= 0 || hp % (4 / srWeakness) > 0)
break;
}
evs.hp -= 4;
}
if (!counter.get("Physical") && !moves.has("transform")) {
evs.atk = 0;
ivs.atk = hasHiddenPower ? (ivs.atk || 31) - 28 : 0;
}
if (["gyroball", "metalburst", "trickroom"].some((m) => moves.has(m))) {
evs.spe = 0;
ivs.spe = hasHiddenPower ? (ivs.spe || 31) - 28 : 0;
}
return {
name: species.baseSpecies,
species: forme,
gender: species.gender,
shiny: this.randomChance(1, 1024),
moves: Array.from(moves),
ability,
evs,
ivs,
item,
level
};
}
randomTeam() {
this.enforceNoDirectCustomBanlistChanges();
const seed = this.prng.seed;
const ruleTable = this.dex.formats.getRuleTable(this.format);
const pokemon = [];
const isMonotype = !!this.forceMonotype || ruleTable.has("sametypeclause");
const typePool = this.dex.types.names();
const type = this.forceMonotype || this.sample(typePool);
const baseFormes = {};
const tierCount = {};
const typeCount = {};
const typeComboCount = {};
const typeWeaknesses = {};
const teamDetails = {};
const pokemonPool = this.getPokemonPool(type, pokemon, isMonotype);
while (pokemonPool.length && pokemon.length < this.maxTeamSize) {
const species = this.dex.species.get(this.sampleNoReplace(pokemonPool));
if (!species.exists || !this.randomData[species.id]?.moves)
continue;
if (baseFormes[species.baseSpecies])
continue;
switch (species.baseSpecies) {
case "Arceus":
if (this.randomChance(16, 17) && !isMonotype)
continue;
break;
case "Rotom":
if (this.gen < 5 && this.randomChance(5, 6) && !isMonotype)
continue;
break;
case "Basculin":
case "Castform":
case "Meloetta":
if (this.randomChance(1, 2) && this.gen === 5)
continue;
break;
case "Cherrim":
if (this.randomChance(1, 2) && this.gen === 4)
continue;
break;
}
if (species.name === "Zoroark" && pokemon.length > 4)
continue;
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;
const tier = species.tier;
if (this.gen === 5 && !isMonotype && !this.forceMonotype && tierCount[tier] >= 2 * limitFactor)
continue;
const set = this.randomSet(species, teamDetails, pokemon.length === 0);
const types = species.types;
if (!isMonotype && !this.forceMonotype) {
let skip = false;
for (const typeName of types) {
if (typeCount[typeName] >= 2 * limitFactor) {
skip = true;
break;
}
}
if (skip)
continue;
for (const typeName of this.dex.types.names()) {
if (this.dex.getEffectiveness(typeName, species) > 0) {
if (!typeWeaknesses[typeName])
typeWeaknesses[typeName] = 0;
if (typeWeaknesses[typeName] >= 3 * limitFactor) {
skip = true;
break;
}
}
}
if (skip)
continue;
}
let typeCombo = types.slice().sort().join();
if (set.ability === "Drought" || set.ability === "Drizzle" || set.ability === "Sand Stream") {
typeCombo = set.ability;
if (typeCombo in typeComboCount)
continue;
} else if (!this.forceMonotype) {
if (typeComboCount[typeCombo] >= (isMonotype ? 2 : 1) * limitFactor)
continue;
}
pokemon.push(set);
if (pokemon.length === this.maxTeamSize) {
const illusion = teamDetails.illusion;
if (illusion)
pokemon[illusion - 1].level = pokemon[this.maxTeamSize - 1].level;
break;
}
baseFormes[species.baseSpecies] = 1;
if (tierCount[tier]) {
tierCount[tier]++;
} else {
tierCount[tier] = 1;
}
for (const typeName of types) {
if (typeName in typeCount) {
typeCount[typeName]++;
} else {
typeCount[typeName] = 1;
}
}
if (typeCombo in typeComboCount) {
typeComboCount[typeCombo]++;
} else {
typeComboCount[typeCombo] = 1;
}
for (const typeName of this.dex.types.names()) {
if (this.dex.getEffectiveness(typeName, species) > 0) {
typeWeaknesses[typeName]++;
}
}
if (set.ability === "Snow Warning" || set.moves.includes("hail"))
teamDetails.hail = 1;
if (set.ability === "Drizzle" || set.moves.includes("raindance"))
teamDetails.rain = 1;
if (set.ability === "Sand Stream")
teamDetails.sand = 1;
if (set.moves.includes("stealthrock"))
teamDetails.stealthRock = 1;
if (set.moves.includes("toxicspikes"))
teamDetails.toxicSpikes = 1;
if (set.moves.includes("rapidspin"))
teamDetails.rapidSpin = 1;
if (set.ability === "Illusion")
teamDetails.illusion = pokemon.length;
}
if (pokemon.length < this.maxTeamSize && pokemon.length < 12) {
throw new Error(`Could not build a random team for ${this.format} (seed=${seed})`);
}
return pokemon;
}
}
var random_teams_default = RandomGen5Teams;
//# sourceMappingURL=random-teams.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/random-teams.ts"],
"sourcesContent": ["import RandomGen6Teams from '../gen6/random-teams';\r\nimport {Utils} from '../../../lib';\r\nimport {toID} from '../../../sim/dex';\r\nimport {PRNG} from '../../../sim';\r\nimport type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';\r\n\r\nexport class RandomGen5Teams extends RandomGen6Teams {\r\n\trandomData: {[species: string]: OldRandomBattleSpecies} = require('./random-data.json');\r\n\r\n\tconstructor(format: string | Format, prng: PRNG | PRNGSeed | null) {\r\n\t\tsuper(format, prng);\r\n\t\tthis.moveEnforcementCheckers = {\r\n\t\t\tlead: (movePool, moves, abilities, types, counter) => (\r\n\t\t\t\tmovePool.includes('stealthrock') &&\r\n\t\t\t\t!!counter.get('Status') &&\r\n\t\t\t\t!counter.setupType &&\r\n\t\t\t\t!counter.get('speedsetup') &&\r\n\t\t\t\t!moves.has('substitute')\r\n\t\t\t),\r\n\t\t\tDark: (movePool, moves, abilities, types, counter) => !counter.get('Dark'),\r\n\t\t\tDragon: (movePool, moves, abilities, types, counter) => !counter.get('Dragon'),\r\n\t\t\tElectric: (movePool, moves, abilities, types, counter) => !counter.get('Electric') || movePool.includes('thunder'),\r\n\t\t\tFighting: (movePool, moves, abilities, types, counter, species) => (\r\n\t\t\t\t!counter.get('Fighting') &&\r\n\t\t\t\t(species.baseStats.atk >= 90 || abilities.has('Pure Power') || !!counter.setupType || !counter.get('Status'))\r\n\t\t\t),\r\n\t\t\tFire: (movePool, moves, abilities, types, counter) => !counter.get('Fire'),\r\n\t\t\tFlying: (movePool, moves, abilities, types, counter) => (\r\n\t\t\t\t!counter.get('Flying') && (types.has('Normal') || abilities.has('Serene Grace'))\r\n\t\t\t),\r\n\t\t\tGhost: (movePool, moves, abilities, types, counter) => !types.has('Dark') && !counter.get('Ghost'),\r\n\t\t\tGrass: movePool => (['hornleech', 'seedflare', 'woodhammer'].some(m => movePool.includes(m))),\r\n\t\t\tGround: (movePool, moves, abilities, types, counter) => (\r\n\t\t\t\t!counter.get('Ground') && !moves.has('rest') && !moves.has('sleeptalk')\r\n\t\t\t),\r\n\t\t\tIce: (movePool, moves, abilities, types, counter) => !counter.get('Ice'),\r\n\t\t\tNormal: (movePool, moves, abilities, types, counter, species) => (\r\n\t\t\t\tmovePool.includes('return') && species.baseStats.atk > 80\r\n\t\t\t),\r\n\t\t\tRock: (movePool, moves, abilities, types, counter, species) => !counter.get('Rock') && species.baseStats.atk >= 80,\r\n\t\t\tSteel: (movePool, moves, abilities, types, counter) => !counter.get('Steel') && abilities.has('Technician'),\r\n\t\t\tWater: (movePool, moves, abilities, types, counter) => (\r\n\t\t\t\t!counter.get('Water') || (abilities.has('Adaptability') && movePool.includes('waterfall'))\r\n\t\t\t),\r\n\t\t\tContrary: (movePool, moves, abilities, types, counter, species, teamDetails) => (\r\n\t\t\t\t!counter.get('contrary') && species.name !== 'Shuckle'\r\n\t\t\t),\r\n\t\t\tGuts: (movePool, moves, abilities, types) => types.has('Normal') && movePool.includes('facade'),\r\n\t\t\t'Slow Start': movePool => movePool.includes('substitute'),\r\n\t\t};\r\n\t}\r\n\r\n\tshouldCullMove(\r\n\t\tmove: Move,\r\n\t\ttypes: Set<string>,\r\n\t\tmoves: Set<string>,\r\n\t\tabilities: Set<string>,\r\n\t\tcounter: MoveCounter,\r\n\t\tmovePool: string[],\r\n\t\tteamDetails: RandomTeamsTypes.TeamDetails,\r\n\t\tspecies: Species,\r\n\t\tisLead: boolean,\r\n\t): {cull: boolean, isSetup?: boolean} {\r\n\t\tconst hasRestTalk = moves.has('rest') && moves.has('sleeptalk');\r\n\t\tswitch (move.id) {\r\n\t\t// Not very useful without their supporting moves\r\n\t\tcase 'endeavor':\r\n\t\t\treturn {cull: !isLead};\r\n\t\tcase 'focuspunch':\r\n\t\t\treturn {cull: !moves.has('substitute') || counter.damagingMoves.size < 2 || moves.has('swordsdance')};\r\n\t\tcase 'lightscreen':\r\n\t\t\tif (movePool.length > 1) {\r\n\t\t\t\tconst screen = movePool.indexOf('reflect');\r\n\t\t\t\tif (screen >= 0) this.fastPop(movePool, screen);\r\n\t\t\t}\r\n\t\t\treturn {cull: !moves.has('reflect')};\r\n\t\tcase 'reflect':\r\n\t\t\tif (movePool.length > 1) {\r\n\t\t\t\tconst screen = movePool.indexOf('lightscreen');\r\n\t\t\t\tif (screen >= 0) this.fastPop(movePool, screen);\r\n\t\t\t}\r\n\t\t\treturn {cull: !moves.has('lightscreen')};\r\n\t\tcase 'rest':\r\n\t\t\treturn {cull: movePool.includes('sleeptalk')};\r\n\t\tcase 'sleeptalk':\r\n\t\t\tif (movePool.length > 1) {\r\n\t\t\t\tconst rest = movePool.indexOf('rest');\r\n\t\t\t\tif (rest >= 0) this.fastPop(movePool, rest);\r\n\t\t\t}\r\n\t\t\treturn {cull: !moves.has('rest')};\r\n\t\tcase 'storedpower':\r\n\t\t\treturn {cull: !counter.setupType && !moves.has('cosmicpower')};\r\n\t\tcase 'weatherball':\r\n\t\t\treturn {cull: !moves.has('sunnyday')};\r\n\r\n\t\t// Set up once and only if we have the moves for it\r\n\t\tcase 'bellydrum': case 'bulkup': case 'coil': case 'curse': case 'dragondance': case 'honeclaws': case 'swordsdance':\r\n\t\t\treturn {cull: (counter.setupType !== 'Physical' || counter.get('physicalsetup') > 1 || (\r\n\t\t\t\tcounter.get('Physical'Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAC5B,iBAAoB;AACpB,iBAAmB;AAIZ,MAAM,wBAAwB,oBAAAA,QAAgB;AAAA,EAGpD,YAAY,QAAyB,MAA8B;AAClE,UAAM,QAAQ,IAAI;AAHnB,sBAA0D,QAAQ,oBAAoB;AAIrF,SAAK,0BAA0B;AAAA,MAC9B,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,YACzC,SAAS,SAAS,aAAa,KAC/B,CAAC,CAAC,QAAQ,IAAI,QAAQ,KACtB,CAAC,QAAQ,aACT,CAAC,QAAQ,IAAI,YAAY,KACzB,CAAC,MAAM,IAAI,YAAY;AAAA,MAExB,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,MAAM;AAAA,MACzE,QAAQ,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,QAAQ;AAAA,MAC7E,UAAU,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,UAAU,KAAK,SAAS,SAAS,SAAS;AAAA,MACjH,UAAU,CAAC,UAAU,OAAO,WAAW,OAAO,SAAS,YACtD,CAAC,QAAQ,IAAI,UAAU,MACtB,QAAQ,UAAU,OAAO,MAAM,UAAU,IAAI,YAAY,KAAK,CAAC,CAAC,QAAQ,aAAa,CAAC,QAAQ,IAAI,QAAQ;AAAA,MAE5G,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,MAAM;AAAA,MACzE,QAAQ,CAAC,UAAU,OAAO,WAAW,OAAO,YAC3C,CA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E,KAAK,OAAK,MAAMLine truncated
"names": ["RandomGen6Teams"]
}
+62
View File
@@ -0,0 +1,62 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var rulesets_exports = {};
__export(rulesets_exports, {
Rulesets: () => Rulesets
});
module.exports = __toCommonJS(rulesets_exports);
const Rulesets = {
standard: {
inherit: true,
ruleset: [
"Obtainable",
"Team Preview",
"Species Clause",
"Nickname Clause",
"OHKO Clause",
"Moody Clause",
"Evasion Items Clause",
"Evasion Moves Clause",
"Endless Battle Clause",
"HP Percentage Mod",
"Cancel Mod"
]
},
obtainablemoves: {
inherit: true,
banlist: [
// Shell Smash: Clamperl Gen 5+ level-up
// Sucker Punch: Huntail Gen 4 tutor
"Huntail + Shell Smash + Sucker Punch"
]
},
teampreview: {
inherit: true,
onTeamPreview() {
this.add("clearpoke");
for (const pokemon of this.getAllPokemon()) {
const details = pokemon.details.replace(", shiny", "").replace(/(Arceus|Gourgeist|Pumpkaboo|Xerneas|Silvally|Urshifu|Dudunsparce)(-[a-zA-Z?-]+)?/g, "$1-*").replace(/(Zacian|Zamazenta)(?!-Crowned)/g, "$1-*");
const item = pokemon.item.includes("mail") ? "mail" : pokemon.item ? "item" : "";
this.add("poke", pokemon.side.id, details, item);
}
this.makeRequest("teampreview");
}
}
};
//# sourceMappingURL=rulesets.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/rulesets.ts"],
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\tinherit: true,\r\n\t\truleset: [\r\n\t\t\t'Obtainable', 'Team Preview', 'Species Clause', 'Nickname Clause', 'OHKO Clause', 'Moody Clause', 'Evasion Items Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod',\r\n\t\t],\r\n\t},\r\n\tobtainablemoves: {\r\n\t\tinherit: true,\r\n\t\tbanlist: [\r\n\t\t\t// Shell Smash: Clamperl Gen 5+ level-up\r\n\t\t\t// Sucker Punch: Huntail Gen 4 tutor\r\n\t\t\t'Huntail + Shell Smash + Sucker Punch',\r\n\t\t],\r\n\t},\r\n\tteampreview: {\r\n\t\tinherit: true,\r\n\t\tonTeamPreview() {\r\n\t\t\tthis.add('clearpoke');\r\n\t\t\tfor (const pokemon of this.getAllPokemon()) {\r\n\t\t\t\tconst details = pokemon.details.replace(', shiny', '')\r\n\t\t\t\t\t.replace(/(Arceus|Gourgeist|Pumpkaboo|Xerneas|Silvally|Urshifu|Dudunsparce)(-[a-zA-Z?-]+)?/g, '$1-*')\r\n\t\t\t\t\t.replace(/(Zacian|Zamazenta)(?!-Crowned)/g, '$1-*'); // Hacked-in Crowned formes will be revealed\r\n\t\t\t\tconst item = pokemon.item.includes('mail') ? 'mail' : pokemon.item ? 'item' : '';\r\n\t\t\t\tthis.add('poke', pokemon.side.id, details, item);\r\n\t\t\t}\r\n\t\t\tthis.makeRequest('teampreview');\r\n\t\t},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,MACR;AAAA,MAAc;AAAA,MAAgB;AAAA,MAAkB;AAAA,MAAmB;AAAA,MAAe;AAAA,MAAgB;AAAA,MAAwB;AAAA,MAAwB;AAAA,MAAyB;AAAA,MAAqB;AAAA,IACjM;AAAA,EACD;AAAA,EACA,iBAAiB;AAAA,IAChB,SAAS;AAAA,IACT,SAAS;AAAA;AAAA;AAAA,MAGR;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,gBAAgB;AACf,WAAK,IAAI,WAAW;AACpB,iBAAW,WAAW,KAAK,cAAc,GAAG;AAC3C,cAAM,UAAU,QAAQ,QAAQ,QAAQ,WAAW,EAAE,EACnD,QAAQ,qFAAqF,MAAM,EACnG,QAAQ,mCAAmC,MAAM;AACnD,cAAM,OAAO,QAAQ,KAAK,SAAS,MAAM,IAAI,SAAS,QAAQ,OAAO,SAAS;AAC9E,aAAK,IAAI,QAAQ,QAAQ,KAAK,IAAI,SAAS,IAAI;AAAA,MAChD;AACA,WAAK,YAAY,aAAa;AAAA,IAC/B;AAAA,EACD;AACD;",
"names": []
}
+28
View File
@@ -0,0 +1,28 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var scripts_exports = {};
__export(scripts_exports, {
Scripts: () => Scripts
});
module.exports = __toCommonJS(scripts_exports);
const Scripts = {
inherit: "gen6",
gen: 5
};
//# sourceMappingURL=scripts.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/scripts.ts"],
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen6',\r\n\tgen: 5,\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AACN;",
"names": []
}
+121
View File
@@ -0,0 +1,121 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var typechart_exports = {};
__export(typechart_exports, {
TypeChart: () => TypeChart
});
module.exports = __toCommonJS(typechart_exports);
const TypeChart = {
electric: {
inherit: true,
damageTaken: {
Bug: 0,
Dark: 0,
Dragon: 0,
Electric: 2,
Fighting: 0,
Fire: 0,
Flying: 2,
Ghost: 0,
Grass: 0,
Ground: 1,
Ice: 0,
Normal: 0,
Poison: 0,
Psychic: 0,
Rock: 0,
Steel: 2,
Water: 0
}
},
ghost: {
inherit: true,
damageTaken: {
Bug: 2,
Dark: 1,
Dragon: 0,
Electric: 0,
Fighting: 3,
Fire: 0,
Flying: 0,
Ghost: 1,
Grass: 0,
Ground: 0,
Ice: 0,
Normal: 3,
Poison: 2,
Psychic: 0,
Rock: 0,
Steel: 0,
Water: 0
}
},
grass: {
inherit: true,
damageTaken: {
Bug: 1,
Dark: 0,
Dragon: 0,
Electric: 2,
Fighting: 0,
Fire: 1,
Flying: 1,
Ghost: 0,
Grass: 2,
Ground: 2,
Ice: 1,
Normal: 0,
Poison: 1,
Psychic: 0,
Rock: 0,
Steel: 0,
Water: 2
}
},
steel: {
inherit: true,
damageTaken: {
psn: 3,
tox: 3,
sandstorm: 3,
Bug: 2,
Dark: 2,
Dragon: 2,
Electric: 0,
Fighting: 1,
Fire: 1,
Flying: 2,
Ghost: 2,
Grass: 2,
Ground: 1,
Ice: 2,
Normal: 2,
Poison: 3,
Psychic: 2,
Rock: 2,
Steel: 2,
Water: 0
}
},
fairy: {
inherit: true,
isNonstandard: "Future"
}
};
//# sourceMappingURL=typechart.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen5/typechart.ts"],
"sourcesContent": ["export const TypeChart: {[k: string]: ModdedTypeData | null} = {\r\n\telectric: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 0,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 2,\r\n\t\t\tFighting: 0,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 2,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 0,\r\n\t\t\tSteel: 2,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tghost: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDark: 1,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 3,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 1,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 3,\r\n\t\t\tPoison: 2,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 0,\r\n\t\t\tSteel: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tgrass: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 1,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 2,\r\n\t\t\tFighting: 0,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 1,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 2,\r\n\t\t\tIce: 1,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 1,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 0,\r\n\t\t\tSteel: 0,\r\n\t\t\tWater: 2,\r\n\t\t},\r\n\t},\r\n\tsteel: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tpsn: 3,\r\n\t\t\ttox: 3,\r\n\t\t\tsandstorm: 3,\r\n\t\t\tBug: 2,\r\n\t\t\tDark: 2,\r\n\t\t\tDragon: 2,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 2,\r\n\t\t\tGhost: 2,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 2,\r\n\t\t\tPoison: 3,\r\n\t\t\tPsychic: 2,\r\n\t\t\tRock: 2,\r\n\t\t\tSteel: 2,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tfairy: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: 'Future',\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAAkD;AAAA,EAC9D,UAAU;AAAA,IACT,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AA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