Initial Modpack Upload
This commit is contained in:
1 parent
268b0650aa
commit
3d8b956ee4
1429 files changed
+820128
No files matched your search
@@ -0,0 +1,288 @@
|
||||
"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 = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "brn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
inherit: true,
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(1, 4)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.time = this.random(2, 8);
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
name: "frz",
|
||||
inherit: true,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (move.flags["defrost"])
|
||||
return;
|
||||
this.add("cant", pokemon, "frz");
|
||||
return false;
|
||||
},
|
||||
onModifyMove() {
|
||||
},
|
||||
onDamagingHit() {
|
||||
},
|
||||
onAfterMoveSecondary(target, source, move) {
|
||||
if (move.secondary && move.secondary.status === "brn" || move.statusRoll === "brn") {
|
||||
target.cureStatus();
|
||||
}
|
||||
},
|
||||
onAfterMoveSecondarySelf(pokemon, target, move) {
|
||||
if (move.flags["defrost"])
|
||||
pokemon.cureStatus();
|
||||
},
|
||||
onResidualOrder: 7,
|
||||
onResidual(pokemon) {
|
||||
if (this.randomChance(25, 256))
|
||||
pokemon.cureStatus();
|
||||
}
|
||||
},
|
||||
psn: {
|
||||
name: "psn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "psn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
}
|
||||
},
|
||||
tox: {
|
||||
name: "tox",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "tox");
|
||||
if (!target.volatiles["residualdmg"])
|
||||
target.addVolatile("residualdmg");
|
||||
target.volatiles["residualdmg"].counter = 0;
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
const damage = this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * pokemon.volatiles["residualdmg"].counter;
|
||||
this.damage(damage, pokemon, pokemon);
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.status = "psn";
|
||||
this.add("-status", pokemon, "psn", "[silent]");
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
confusion: {
|
||||
inherit: true,
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.id === "lockedmove") {
|
||||
this.add("-start", target, "confusion", "[silent]");
|
||||
} else {
|
||||
this.add("-start", target, "confusion");
|
||||
}
|
||||
if (sourceEffect && sourceEffect.id === "berserkgene") {
|
||||
this.effectState.time = 256;
|
||||
} else {
|
||||
this.effectState.time = this.random(2, 6);
|
||||
}
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.volatiles["confusion"].time--;
|
||||
if (!pokemon.volatiles["confusion"].time) {
|
||||
pokemon.removeVolatile("confusion");
|
||||
return;
|
||||
}
|
||||
this.add("-activate", pokemon, "confusion");
|
||||
if (this.randomChance(1, 2)) {
|
||||
return;
|
||||
}
|
||||
move = {
|
||||
basePower: 40,
|
||||
type: "???",
|
||||
baseMoveType: move.type,
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
isConfusionSelfHit: true,
|
||||
noDamageVariance: true,
|
||||
flags: {},
|
||||
selfdestruct: move.selfdestruct
|
||||
};
|
||||
const damage = this.actions.getDamage(pokemon, pokemon, move);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("Confusion damage not dealt");
|
||||
this.directDamage(damage);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
partiallytrapped: {
|
||||
inherit: true,
|
||||
durationCallback(target, source) {
|
||||
return this.random(3, 6);
|
||||
},
|
||||
onResidualOrder: 3,
|
||||
onResidualSubOrder: 1
|
||||
},
|
||||
lockedmove: {
|
||||
name: "lockedmove",
|
||||
// Outrage, Thrash, Petal Dance...
|
||||
durationCallback() {
|
||||
return this.random(2, 4);
|
||||
},
|
||||
onResidual(target) {
|
||||
if (target.lastMove && target.lastMove.id === "struggle" || target.status === "slp") {
|
||||
delete target.volatiles["lockedmove"];
|
||||
}
|
||||
},
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
},
|
||||
onEnd(target) {
|
||||
delete target.volatiles["confusion"];
|
||||
if (!target.side.getSideCondition("safeguard"))
|
||||
target.addVolatile("confusion");
|
||||
},
|
||||
onLockMove(pokemon) {
|
||||
return this.effectState.move;
|
||||
},
|
||||
onMoveAborted(pokemon) {
|
||||
delete pokemon.volatiles["lockedmove"];
|
||||
},
|
||||
onBeforeTurn(pokemon) {
|
||||
const move = this.dex.moves.get(this.effectState.move);
|
||||
if (move.id) {
|
||||
this.debug("Forcing into " + move.id);
|
||||
this.queue.changeAction(pokemon, { choice: "move", moveid: move.id });
|
||||
}
|
||||
}
|
||||
},
|
||||
futuremove: {
|
||||
inherit: true,
|
||||
onResidualOrder: 1
|
||||
},
|
||||
raindance: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2
|
||||
},
|
||||
sunnyday: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2
|
||||
},
|
||||
sandstorm: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2,
|
||||
onWeather(target) {
|
||||
this.damage(target.baseMaxhp / 8);
|
||||
}
|
||||
},
|
||||
stall: {
|
||||
name: "stall",
|
||||
duration: 2,
|
||||
onStart() {
|
||||
this.effectState.counter = 127;
|
||||
},
|
||||
onStallMove() {
|
||||
const counter = Math.floor(this.effectState.counter) || 127;
|
||||
this.debug("Success chance: " + Math.round(counter * 1e3 / 255) / 10 + "% (" + counter + "/255)");
|
||||
return this.randomChance(counter, 255);
|
||||
},
|
||||
onRestart() {
|
||||
this.effectState.counter /= 2;
|
||||
this.effectState.duration = 2;
|
||||
}
|
||||
},
|
||||
residualdmg: {
|
||||
name: "residualdmg",
|
||||
onStart(target) {
|
||||
target.volatiles["residualdmg"].counter = 0;
|
||||
},
|
||||
onAfterMoveSelfPriority: 100,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
}
|
||||
}
|
||||
};
|
||||
function residualdmg(battle, pokemon) {
|
||||
if (pokemon.volatiles["residualdmg"]) {
|
||||
const residualDmg = battle.clampIntRange(
|
||||
Math.floor(pokemon.maxhp / 16) * pokemon.volatiles["residualdmg"].counter,
|
||||
1
|
||||
);
|
||||
battle.damage(residualDmg, pokemon);
|
||||
battle.hint("In Gen 2, Toxic's counter is retained through Baton Pass/Heal Bell and applies to PSN/BRN.", true);
|
||||
} else {
|
||||
battle.damage(battle.clampIntRange(Math.floor(pokemon.maxhp / 8), 1), pokemon);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'brn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\tinherit: true,\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(1, 4)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-6 turns\r\n\t\t\tthis.effectState.time = this.random(2, 8);\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\tinherit: true,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (move.flags['defrost']) return;\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonModifyMove() {},\r\n\t\tonDamagingHit() {},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tif ((move.secondary && move.secondary.status === 'brn') || move.statusRoll === 'brn') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterMoveSecondarySelf(pokemon, target, move) {\r\n\t\t\tif (move.flags['defrost']) pokemon.cureStatus();\r\n\t\t},\r\n\t\tonResidualOrder: 7,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (this.randomChance(25, 256)) pokemon.cureStatus();\r\n\t\t},\r\n\t},\r\n\tpsn: {\r\n\t\tname: 'psn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'psn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t},\r\n\ttox: {\r\n\t\tname: 'tox',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'tox');\r\n\t\t\tif (!target.volatiles['residualdmg']) target.addVolatile('residualdmg');\r\n\t\t\ttarget.volatiles['residualdmg'].counter = 0;\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst damage = this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * pokemon.volatiles['residualdmg'].counter;\r\n\t\t\tthis.damage(damage, pokemon, pokemon);\r\n\t\t},\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\t// Regular poison status and damage after a switchout -> switchin.\r\n\t\t\tpokemon.status = 'psn' as ID;\r\n\t\t\tthis.add('-status', pokemon, 'psn', '[silent]');\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\tconfusion: {\r\n\t\tinherit: true,\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'lockedmove') {\r\n\t\t\t\tthis.add('-start', target, 'confusion', '[silent]');\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-start', target, 'confusion');\r\n\t\t\t}\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'berserkgene') {\r\n\t\t\t\tthis.effectState.time = 256;\r\n\t\t\t} else {\r\n\t\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.volatiles['confusion'].time--;\r\n\t\t\tif (!pokemon.volatiles['confusion'].time) {\r\n\t\t\t\tpokemon.removeVolatile('confusion');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-activate', pokemon, 'confusion');\r\n\t\t\tif (this.randomChance(1, 2)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tmove = {\r\n\t\t\t\tbasePower: 40,\r\n\t\t\t\ttype: '???',\r\n\t\t\t\tbaseMoveType: move.type,\r\n\t\t\t\tcategory: 'Physical',\r\n\t\t\t\twillCrit: false,\r\n\t\t\t\tisConfusionSelfHit: true,\r\n\t\t\t\tnoDamageVariance: true,\r\n\t\t\t\tflags: {},\r\n\t\t\t\tselfdestruct: move.selfdestruct,\r\n\t\t\t} as unknown as ActiveMove;\r\n\t\t\tconst damage = this.actions.getDamage(pokemon, pokemon, move);\r\n\t\t\tif (typeof damage !== 'number') throw new Error(\"Confusion damage not dealt\");\r\n\t\t\tthis.directDamage(damage);\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tpartLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA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IACT,sBAAsB;AAAA,EACvB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,sBAAsB;AAAA,IACtB,UAAU,QAAQ;AACjB,WAAK,OAAO,OAAO,YAAY,CAAC;AAAA,IACjC;AAAA,EACD;AAAA,EACA,OAAO;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AAAA,IACV,UAAU;AACT,WAAK,YAAY,UAAU;AAAA,IAC5B;AAAA,IACA,cAAc;AACb,YAAM,UAAU,KAAK,MAAM,KAAK,YAAY,OAAO,KAAK;AACxD,WAAK,MAAM,qBAAqB,KAAK,MAAM,UAAU,MAAO,GAAG,IAAI,KAAK,QAAQ,UAAU,OAAO;AACjG,aAAO,KAAK,aAAa,SAAS,GAAG;AAAA,IACtC;AAAA,IACA,YAAY;AACX,WAAK,YAAY,WAAW;AAC5B,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,QAAQ,QAAQ;AACf,aAAO,UAAU,aAAa,EAAE,UAAU;AAAA,IAC3C;AAAA,IACA,yBAAyB;AAAA,IACzB,gBAAgB,SAAS;AACxB,UAAI,CAAC,OAAO,OAAO,KAAK,EAAE,SAAS,QAAQ,MAAM;AAAG,gBAAQ,UAAU,aAAa,EAAE;AAAA,IACtF;AAAA,IACA,oBAAoB,SAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,779 @@
|
||||
"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 formats_data_exports = {};
|
||||
__export(formats_data_exports, {
|
||||
FormatsData: () => FormatsData
|
||||
});
|
||||
module.exports = __toCommonJS(formats_data_exports);
|
||||
const FormatsData = {
|
||||
bulbasaur: {
|
||||
tier: "LC"
|
||||
},
|
||||
ivysaur: {
|
||||
tier: "NFE"
|
||||
},
|
||||
venusaur: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
charmander: {
|
||||
tier: "LC"
|
||||
},
|
||||
charmeleon: {
|
||||
tier: "NFE"
|
||||
},
|
||||
charizard: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
squirtle: {
|
||||
tier: "LC"
|
||||
},
|
||||
wartortle: {
|
||||
tier: "NFE"
|
||||
},
|
||||
blastoise: {
|
||||
tier: "UU"
|
||||
},
|
||||
caterpie: {
|
||||
tier: "LC"
|
||||
},
|
||||
metapod: {
|
||||
tier: "NFE"
|
||||
},
|
||||
butterfree: {
|
||||
tier: "NU"
|
||||
},
|
||||
weedle: {
|
||||
tier: "LC"
|
||||
},
|
||||
kakuna: {
|
||||
tier: "NFE"
|
||||
},
|
||||
beedrill: {
|
||||
tier: "NU"
|
||||
},
|
||||
pidgey: {
|
||||
tier: "LC"
|
||||
},
|
||||
pidgeotto: {
|
||||
tier: "NFE"
|
||||
},
|
||||
pidgeot: {
|
||||
tier: "NU"
|
||||
},
|
||||
rattata: {
|
||||
tier: "LC"
|
||||
},
|
||||
raticate: {
|
||||
tier: "NU"
|
||||
},
|
||||
spearow: {
|
||||
tier: "LC"
|
||||
},
|
||||
fearow: {
|
||||
tier: "NU"
|
||||
},
|
||||
ekans: {
|
||||
tier: "LC"
|
||||
},
|
||||
arbok: {
|
||||
tier: "NU"
|
||||
},
|
||||
pichu: {
|
||||
tier: "LC"
|
||||
},
|
||||
pikachu: {
|
||||
tier: "UU"
|
||||
},
|
||||
raichu: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
sandshrew: {
|
||||
tier: "LC"
|
||||
},
|
||||
sandslash: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranf: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorina: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoqueen: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranm: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorino: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoking: {
|
||||
tier: "OU"
|
||||
},
|
||||
cleffa: {
|
||||
tier: "LC"
|
||||
},
|
||||
clefairy: {
|
||||
tier: "NFE"
|
||||
},
|
||||
clefable: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
vulpix: {
|
||||
tier: "LC"
|
||||
},
|
||||
ninetales: {
|
||||
tier: "NU"
|
||||
},
|
||||
igglybuff: {
|
||||
tier: "LC"
|
||||
},
|
||||
jigglypuff: {
|
||||
tier: "NFE"
|
||||
},
|
||||
wigglytuff: {
|
||||
tier: "NU"
|
||||
},
|
||||
zubat: {
|
||||
tier: "LC"
|
||||
},
|
||||
golbat: {
|
||||
tier: "NFE"
|
||||
},
|
||||
crobat: {
|
||||
tier: "UU"
|
||||
},
|
||||
oddish: {
|
||||
tier: "LC"
|
||||
},
|
||||
gloom: {
|
||||
tier: "NU"
|
||||
},
|
||||
vileplume: {
|
||||
tier: "UU"
|
||||
},
|
||||
bellossom: {
|
||||
tier: "UU"
|
||||
},
|
||||
paras: {
|
||||
tier: "LC"
|
||||
},
|
||||
parasect: {
|
||||
tier: "NU"
|
||||
},
|
||||
venonat: {
|
||||
tier: "LC"
|
||||
},
|
||||
venomoth: {
|
||||
tier: "NU"
|
||||
},
|
||||
diglett: {
|
||||
tier: "LC"
|
||||
},
|
||||
dugtrio: {
|
||||
tier: "NU"
|
||||
},
|
||||
meowth: {
|
||||
tier: "LC"
|
||||
},
|
||||
persian: {
|
||||
tier: "NU"
|
||||
},
|
||||
psyduck: {
|
||||
tier: "LC"
|
||||
},
|
||||
golduck: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
mankey: {
|
||||
tier: "LC"
|
||||
},
|
||||
primeape: {
|
||||
tier: "NU"
|
||||
},
|
||||
growlithe: {
|
||||
tier: "LC"
|
||||
},
|
||||
arcanine: {
|
||||
tier: "UU"
|
||||
},
|
||||
poliwag: {
|
||||
tier: "LC"
|
||||
},
|
||||
poliwhirl: {
|
||||
tier: "NU"
|
||||
},
|
||||
poliwrath: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
politoed: {
|
||||
tier: "UU"
|
||||
},
|
||||
abra: {
|
||||
tier: "LC"
|
||||
},
|
||||
kadabra: {
|
||||
tier: "UU"
|
||||
},
|
||||
alakazam: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
machop: {
|
||||
tier: "LC"
|
||||
},
|
||||
machoke: {
|
||||
tier: "NU"
|
||||
},
|
||||
machamp: {
|
||||
tier: "OU"
|
||||
},
|
||||
bellsprout: {
|
||||
tier: "LC"
|
||||
},
|
||||
weepinbell: {
|
||||
tier: "NFE"
|
||||
},
|
||||
victreebel: {
|
||||
tier: "UU"
|
||||
},
|
||||
tentacool: {
|
||||
tier: "NU"
|
||||
},
|
||||
tentacruel: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
geodude: {
|
||||
tier: "LC"
|
||||
},
|
||||
graveler: {
|
||||
tier: "NU"
|
||||
},
|
||||
golem: {
|
||||
tier: "OU"
|
||||
},
|
||||
ponyta: {
|
||||
tier: "LC"
|
||||
},
|
||||
rapidash: {
|
||||
tier: "NU"
|
||||
},
|
||||
slowpoke: {
|
||||
tier: "NU"
|
||||
},
|
||||
slowbro: {
|
||||
tier: "UU"
|
||||
},
|
||||
slowking: {
|
||||
tier: "UU"
|
||||
},
|
||||
magnemite: {
|
||||
tier: "NU"
|
||||
},
|
||||
magneton: {
|
||||
tier: "UU"
|
||||
},
|
||||
farfetchd: {
|
||||
tier: "NU"
|
||||
},
|
||||
doduo: {
|
||||
tier: "LC"
|
||||
},
|
||||
dodrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
seel: {
|
||||
tier: "LC"
|
||||
},
|
||||
dewgong: {
|
||||
tier: "NU"
|
||||
},
|
||||
grimer: {
|
||||
tier: "LC"
|
||||
},
|
||||
muk: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
shellder: {
|
||||
tier: "LC"
|
||||
},
|
||||
cloyster: {
|
||||
tier: "OU"
|
||||
},
|
||||
gastly: {
|
||||
tier: "NU"
|
||||
},
|
||||
haunter: {
|
||||
tier: "UU"
|
||||
},
|
||||
gengar: {
|
||||
tier: "OU"
|
||||
},
|
||||
onix: {
|
||||
tier: "LC"
|
||||
},
|
||||
steelix: {
|
||||
tier: "OU"
|
||||
},
|
||||
drowzee: {
|
||||
tier: "LC"
|
||||
},
|
||||
hypno: {
|
||||
tier: "UU"
|
||||
},
|
||||
krabby: {
|
||||
tier: "LC"
|
||||
},
|
||||
kingler: {
|
||||
tier: "NU"
|
||||
},
|
||||
voltorb: {
|
||||
tier: "NU"
|
||||
},
|
||||
electrode: {
|
||||
tier: "UU"
|
||||
},
|
||||
exeggcute: {
|
||||
tier: "NU"
|
||||
},
|
||||
exeggutor: {
|
||||
tier: "OU"
|
||||
},
|
||||
cubone: {
|
||||
tier: "NU"
|
||||
},
|
||||
marowak: {
|
||||
tier: "OU"
|
||||
},
|
||||
tyrogue: {
|
||||
tier: "LC"
|
||||
},
|
||||
hitmonlee: {
|
||||
tier: "NU"
|
||||
},
|
||||
hitmonchan: {
|
||||
tier: "NU"
|
||||
},
|
||||
hitmontop: {
|
||||
tier: "NU"
|
||||
},
|
||||
lickitung: {
|
||||
tier: "NU"
|
||||
},
|
||||
koffing: {
|
||||
tier: "LC"
|
||||
},
|
||||
weezing: {
|
||||
tier: "NU"
|
||||
},
|
||||
rhyhorn: {
|
||||
tier: "LC"
|
||||
},
|
||||
rhydon: {
|
||||
tier: "OU"
|
||||
},
|
||||
chansey: {
|
||||
tier: "UU"
|
||||
},
|
||||
blissey: {
|
||||
tier: "OU"
|
||||
},
|
||||
tangela: {
|
||||
tier: "NU"
|
||||
},
|
||||
kangaskhan: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
horsea: {
|
||||
tier: "LC"
|
||||
},
|
||||
seadra: {
|
||||
tier: "NU"
|
||||
},
|
||||
kingdra: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
goldeen: {
|
||||
tier: "LC"
|
||||
},
|
||||
seaking: {
|
||||
tier: "NU"
|
||||
},
|
||||
staryu: {
|
||||
tier: "LC"
|
||||
},
|
||||
starmie: {
|
||||
tier: "OU"
|
||||
},
|
||||
mrmime: {
|
||||
tier: "UU"
|
||||
},
|
||||
scyther: {
|
||||
tier: "UU"
|
||||
},
|
||||
scizor: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
smoochum: {
|
||||
tier: "LC"
|
||||
},
|
||||
jynx: {
|
||||
tier: "OU"
|
||||
},
|
||||
elekid: {
|
||||
tier: "NU"
|
||||
},
|
||||
electabuzz: {
|
||||
tier: "UU"
|
||||
},
|
||||
magby: {
|
||||
tier: "LC"
|
||||
},
|
||||
magmar: {
|
||||
tier: "NU"
|
||||
},
|
||||
pinsir: {
|
||||
tier: "UU"
|
||||
},
|
||||
tauros: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
magikarp: {
|
||||
tier: "LC"
|
||||
},
|
||||
gyarados: {
|
||||
tier: "UU"
|
||||
},
|
||||
lapras: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
ditto: {
|
||||
tier: "NU"
|
||||
},
|
||||
eevee: {
|
||||
tier: "LC"
|
||||
},
|
||||
vaporeon: {
|
||||
tier: "OU"
|
||||
},
|
||||
jolteon: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
flareon: {
|
||||
tier: "NU"
|
||||
},
|
||||
espeon: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
umbreon: {
|
||||
tier: "OU"
|
||||
},
|
||||
porygon: {
|
||||
tier: "NU"
|
||||
},
|
||||
porygon2: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
omanyte: {
|
||||
tier: "LC"
|
||||
},
|
||||
omastar: {
|
||||
tier: "UU"
|
||||
},
|
||||
kabuto: {
|
||||
tier: "LC"
|
||||
},
|
||||
kabutops: {
|
||||
tier: "UU"
|
||||
},
|
||||
aerodactyl: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
snorlax: {
|
||||
tier: "OU"
|
||||
},
|
||||
articuno: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
zapdos: {
|
||||
tier: "OU"
|
||||
},
|
||||
moltres: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
dratini: {
|
||||
tier: "LC"
|
||||
},
|
||||
dragonair: {
|
||||
tier: "NU"
|
||||
},
|
||||
dragonite: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
mewtwo: {
|
||||
tier: "Uber"
|
||||
},
|
||||
mew: {
|
||||
tier: "Uber"
|
||||
},
|
||||
chikorita: {
|
||||
tier: "LC"
|
||||
},
|
||||
bayleef: {
|
||||
tier: "NU"
|
||||
},
|
||||
meganium: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
cyndaquil: {
|
||||
tier: "LC"
|
||||
},
|
||||
quilava: {
|
||||
tier: "NFE"
|
||||
},
|
||||
typhlosion: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
totodile: {
|
||||
tier: "LC"
|
||||
},
|
||||
croconaw: {
|
||||
tier: "NFE"
|
||||
},
|
||||
feraligatr: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
sentret: {
|
||||
tier: "LC"
|
||||
},
|
||||
furret: {
|
||||
tier: "NU"
|
||||
},
|
||||
hoothoot: {
|
||||
tier: "LC"
|
||||
},
|
||||
noctowl: {
|
||||
tier: "NU"
|
||||
},
|
||||
ledyba: {
|
||||
tier: "LC"
|
||||
},
|
||||
ledian: {
|
||||
tier: "NU"
|
||||
},
|
||||
spinarak: {
|
||||
tier: "LC"
|
||||
},
|
||||
ariados: {
|
||||
tier: "NU"
|
||||
},
|
||||
chinchou: {
|
||||
tier: "NU"
|
||||
},
|
||||
lanturn: {
|
||||
tier: "UU"
|
||||
},
|
||||
togepi: {
|
||||
tier: "LC"
|
||||
},
|
||||
togetic: {
|
||||
tier: "NU"
|
||||
},
|
||||
natu: {
|
||||
tier: "LC"
|
||||
},
|
||||
xatu: {
|
||||
tier: "NU"
|
||||
},
|
||||
mareep: {
|
||||
tier: "LC"
|
||||
},
|
||||
flaaffy: {
|
||||
tier: "NU"
|
||||
},
|
||||
ampharos: {
|
||||
tier: "UU"
|
||||
},
|
||||
marill: {
|
||||
tier: "LC"
|
||||
},
|
||||
azumarill: {
|
||||
tier: "NU"
|
||||
},
|
||||
sudowoodo: {
|
||||
tier: "NU"
|
||||
},
|
||||
hoppip: {
|
||||
tier: "LC"
|
||||
},
|
||||
skiploom: {
|
||||
tier: "NFE"
|
||||
},
|
||||
jumpluff: {
|
||||
tier: "UU"
|
||||
},
|
||||
aipom: {
|
||||
tier: "NU"
|
||||
},
|
||||
sunkern: {
|
||||
tier: "LC"
|
||||
},
|
||||
sunflora: {
|
||||
tier: "NU"
|
||||
},
|
||||
yanma: {
|
||||
tier: "NU"
|
||||
},
|
||||
wooper: {
|
||||
tier: "LC"
|
||||
},
|
||||
quagsire: {
|
||||
tier: "UU"
|
||||
},
|
||||
murkrow: {
|
||||
tier: "NU"
|
||||
},
|
||||
misdreavus: {
|
||||
tier: "OU"
|
||||
},
|
||||
unown: {
|
||||
tier: "NU"
|
||||
},
|
||||
wobbuffet: {
|
||||
tier: "NU"
|
||||
},
|
||||
girafarig: {
|
||||
tier: "UU"
|
||||
},
|
||||
pineco: {
|
||||
tier: "NU"
|
||||
},
|
||||
forretress: {
|
||||
tier: "OU"
|
||||
},
|
||||
dunsparce: {
|
||||
tier: "NU"
|
||||
},
|
||||
gligar: {
|
||||
tier: "UU"
|
||||
},
|
||||
snubbull: {
|
||||
tier: "LC"
|
||||
},
|
||||
granbull: {
|
||||
tier: "UU"
|
||||
},
|
||||
qwilfish: {
|
||||
tier: "UU"
|
||||
},
|
||||
shuckle: {
|
||||
tier: "NU"
|
||||
},
|
||||
heracross: {
|
||||
tier: "OU"
|
||||
},
|
||||
sneasel: {
|
||||
tier: "NU"
|
||||
},
|
||||
teddiursa: {
|
||||
tier: "LC"
|
||||
},
|
||||
ursaring: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
slugma: {
|
||||
tier: "LC"
|
||||
},
|
||||
magcargo: {
|
||||
tier: "NU"
|
||||
},
|
||||
swinub: {
|
||||
tier: "LC"
|
||||
},
|
||||
piloswine: {
|
||||
tier: "UU"
|
||||
},
|
||||
corsola: {
|
||||
tier: "NU"
|
||||
},
|
||||
remoraid: {
|
||||
tier: "LC"
|
||||
},
|
||||
octillery: {
|
||||
tier: "NU"
|
||||
},
|
||||
delibird: {
|
||||
tier: "NU"
|
||||
},
|
||||
mantine: {
|
||||
tier: "NU"
|
||||
},
|
||||
skarmory: {
|
||||
tier: "OU"
|
||||
},
|
||||
houndour: {
|
||||
tier: "NU"
|
||||
},
|
||||
houndoom: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
phanpy: {
|
||||
tier: "LC"
|
||||
},
|
||||
donphan: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
stantler: {
|
||||
tier: "NU"
|
||||
},
|
||||
smeargle: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
miltank: {
|
||||
tier: "OU"
|
||||
},
|
||||
raikou: {
|
||||
tier: "OU"
|
||||
},
|
||||
entei: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
suicune: {
|
||||
tier: "OU"
|
||||
},
|
||||
larvitar: {
|
||||
tier: "LC"
|
||||
},
|
||||
pupitar: {
|
||||
tier: "NU"
|
||||
},
|
||||
tyranitar: {
|
||||
tier: "OU"
|
||||
},
|
||||
lugia: {
|
||||
tier: "Uber"
|
||||
},
|
||||
hooh: {
|
||||
tier: "Uber"
|
||||
},
|
||||
celebi: {
|
||||
tier: "Uber"
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=formats-data.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/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: \"UUBL\",\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: \"UUBL\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"UU\",\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: \"NU\",\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: \"NU\",\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: \"NU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpichu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"UU\",\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},\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: \"OU\",\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: \"UUBL\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"NU\",\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: \"NU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcrobat: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tbellossom: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"NUBL\",\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},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tpolitoed: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"OU\",\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: \"UU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tslowking: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdoduo: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdodrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tseel: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdewgong: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tshellder: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcloyster: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tgastly: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\thaunter: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgengar: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tonix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsteelix: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tdrowzee: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thypno: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tkrabby: {\r\n\t\ttier: \"LC\",\r\n\t},\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R,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,456 @@
|
||||
"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 = {
|
||||
berryjuice: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
blackbelt: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Fighting") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
blackglasses: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Dark") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
brightpowder: {
|
||||
inherit: true,
|
||||
onModifyAccuracy(accuracy) {
|
||||
if (typeof accuracy !== "number")
|
||||
return;
|
||||
this.debug("brightpowder - decreasing accuracy");
|
||||
return accuracy - 20;
|
||||
}
|
||||
},
|
||||
charcoal: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Fire") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
dragonfang: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
}
|
||||
},
|
||||
dragonscale: {
|
||||
inherit: true,
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Dragon") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
fastball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
focusband: {
|
||||
inherit: true,
|
||||
onDamage(damage, target, source, effect) {
|
||||
if (this.randomChance(30, 256) && damage >= target.hp && effect && effect.effectType === "Move") {
|
||||
this.add("-activate", target, "item: Focus Band");
|
||||
return target.hp - 1;
|
||||
}
|
||||
}
|
||||
},
|
||||
hardstone: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Rock") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
heavyball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
kingsrock: {
|
||||
inherit: true,
|
||||
onModifyMove(move) {
|
||||
const affectedByKingsRock = [
|
||||
"absorb",
|
||||
"aeroblast",
|
||||
"barrage",
|
||||
"beatup",
|
||||
"bide",
|
||||
"bonerush",
|
||||
"bonemerang",
|
||||
"cometpunch",
|
||||
"counter",
|
||||
"crabhammer",
|
||||
"crosschop",
|
||||
"cut",
|
||||
"dig",
|
||||
"doublekick",
|
||||
"doubleslap",
|
||||
"doubleedge",
|
||||
"dragonrage",
|
||||
"drillpeck",
|
||||
"eggbomb",
|
||||
"explosion",
|
||||
"extremespeed",
|
||||
"falseswipe",
|
||||
"feintattack",
|
||||
"flail",
|
||||
"fly",
|
||||
"frustration",
|
||||
"furyattack",
|
||||
"furycutter",
|
||||
"furyswipes",
|
||||
"gigadrain",
|
||||
"hiddenpower",
|
||||
"highjumpkick",
|
||||
"hornattack",
|
||||
"hydropump",
|
||||
"jumpkick",
|
||||
"karatechop",
|
||||
"leechlife",
|
||||
"machpunch",
|
||||
"magnitude",
|
||||
"megadrain",
|
||||
"megakick",
|
||||
"megapunch",
|
||||
"megahorn",
|
||||
"mirrorcoat",
|
||||
"nightshade",
|
||||
"outrage",
|
||||
"payday",
|
||||
"peck",
|
||||
"petaldance",
|
||||
"pinmissile",
|
||||
"pound",
|
||||
"present",
|
||||
"pursuit",
|
||||
"psywave",
|
||||
"quickattack",
|
||||
"rage",
|
||||
"rapidspin",
|
||||
"razorleaf",
|
||||
"razorwind",
|
||||
"return",
|
||||
"reversal",
|
||||
"rockthrow",
|
||||
"rollout",
|
||||
"scratch",
|
||||
"seismictoss",
|
||||
"selfdestruct",
|
||||
"skullbash",
|
||||
"skyattack",
|
||||
"slam",
|
||||
"slash",
|
||||
"snore",
|
||||
"solarbeam",
|
||||
"sonicboom",
|
||||
"spikecannon",
|
||||
"strength",
|
||||
"struggle",
|
||||
"submission",
|
||||
"superfang",
|
||||
"surf",
|
||||
"swift",
|
||||
"tackle",
|
||||
"takedown",
|
||||
"thief",
|
||||
"thrash",
|
||||
"triplekick",
|
||||
"twineedle",
|
||||
"visegrip",
|
||||
"vinewhip",
|
||||
"vitalthrow",
|
||||
"watergun",
|
||||
"waterfall",
|
||||
"wingattack"
|
||||
];
|
||||
if (affectedByKingsRock.includes(move.id)) {
|
||||
if (!move.secondaries)
|
||||
move.secondaries = [];
|
||||
move.secondaries.push({
|
||||
chance: 12,
|
||||
volatileStatus: "flinch",
|
||||
kingsrock: true
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
leftovers: {
|
||||
inherit: true,
|
||||
onResidualOrder: 5,
|
||||
onResidualSubOrder: 1
|
||||
},
|
||||
levelball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
lightball: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifySpA() {
|
||||
}
|
||||
},
|
||||
loveball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
luckypunch: {
|
||||
inherit: true,
|
||||
onModifyCritRatioPriority: -1,
|
||||
onModifyCritRatio(critRatio, user) {
|
||||
if (user.species.name === "Chansey") {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
},
|
||||
lureball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
magnet: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Electric") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
metalcoat: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Steel") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
metalpowder: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifyDef() {
|
||||
},
|
||||
onModifySpD() {
|
||||
}
|
||||
},
|
||||
miracleseed: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Grass") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
moonball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mysticwater: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Water") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
nevermeltice: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ice") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
poisonbarb: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Poison") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
sharpbeak: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Flying") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
silverpowder: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Bug") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
softsand: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ground") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
spelltag: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ghost") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
sportball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
stick: {
|
||||
inherit: true,
|
||||
onModifyCritRatioPriority: -1,
|
||||
onModifyCritRatio(critRatio, user) {
|
||||
if (user.species.id === "farfetchd") {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
},
|
||||
thickclub: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifyAtk() {
|
||||
}
|
||||
},
|
||||
twistedspoon: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Psychic") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
berserkgene: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
berry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
bitterberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
burntberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
goldberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
iceberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mintberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
miracleberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mysteryberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
pinkbow: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Normal") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
},
|
||||
isNonstandard: null
|
||||
},
|
||||
polkadotbow: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Normal") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
},
|
||||
isNonstandard: null
|
||||
},
|
||||
przcureberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
psncureberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=items.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/items.ts"],
|
||||
"sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\r\n\tberryjuice: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tblackbelt: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Fighting') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tblackglasses: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Dark') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tbrightpowder: {\r\n\t\tinherit: true,\r\n\t\tonModifyAccuracy(accuracy) {\r\n\t\t\tif (typeof accuracy !== 'number') return;\r\n\t\t\tthis.debug('brightpowder - decreasing accuracy');\r\n\t\t\treturn accuracy - 20;\r\n\t\t},\r\n\t},\r\n\tcharcoal: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Fire') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdragonfang: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t},\r\n\tdragonscale: {\r\n\t\tinherit: true,\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Dragon') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tfastball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tfocusband: {\r\n\t\tinherit: true,\r\n\t\tonDamage(damage, target, source, effect) {\r\n\t\t\tif (this.randomChance(30, 256) && damage >= target.hp && effect && effect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-activate', target, 'item: Focus Band');\r\n\t\t\t\treturn target.hp - 1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\thardstone: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Rock') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\theavyball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tkingsrock: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move) {\r\n\t\t\tconst affectedByKingsRock = [\r\n\t\t\t\t'absorb', 'aeroblast', 'barrage', 'beatup', 'bide', 'bonerush', 'bonemerang', 'cometpunch', 'counter', 'crabhammer', 'crosschop', 'cut', 'dig', 'doublekick', 'doubleslap', 'doubleedge', 'dragonrage', 'drillpeck', 'eggbomb', 'explosion', 'extremespeed', 'falseswipe', 'feintattack', 'flail', 'fly', 'frustration', 'furyattack', 'furycutter', 'furyswipes', 'gigadrain', 'hiddenpower', 'highjumpkick', 'hornattack', 'hydropump', 'jumpkick', 'karatechop', 'leechlife', 'machpunch', 'magnitude', 'megadrain', 'megakick', 'megapunch', 'megahorn', 'mirrorcoat', 'nightshade', 'outrage', 'payday', 'peck', 'petaldance', 'pinmissile', 'pound', 'present', 'pursuit', 'psywave', 'quickattack', 'rage', 'rapidspin', 'razorleaf', 'razorwind', 'return', 'reversal', 'rockthrow', 'rollout', 'scratch', 'seismictoss', 'selfdestruct', 'skullbash', 'skyattack', 'slam', 'slash', 'snore', 'solarbeam', 'sonicboom', 'spikecannon', 'strength', 'struggle', 'submission', 'superfang', 'surf', 'swift', 'tackle', 'takedown', 'thief', 'thrash', 'triplekick', 'twineedle', 'visegrip', 'vinewhip', 'vitalthrow', 'watergun', 'waterfall', 'wingattack',\r\n\t\t\t];\r\n\t\t\tif (affectedByKingsRock.includes(move.id)) {\r\n\t\t\t\tif (!move.secondaries) move.secondaries = [];\r\n\t\t\t\t// The kingsrock flag allows for differentiation from Snore,\r\n\t\t\t\t// which can flinch and is also affected by King's Rock\r\n\t\t\t\tmove.secondaries.push({\r\n\t\t\t\t\tchance: 12,\r\n\t\t\t\t\tvolatileStatus: 'flinch',\r\n\t\t\t\t\tkingsrock: true,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tleftovers: {\r\n\t\tinherit: true,\r\n\t\tonResidualOrder: 5,\r\n\t\tonResidualSubOrder: 1,\r\n\t},\r\n\tlevelball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tlightball: {\r\n\t\tinherit: true,\r\n\t\t// In Gen 2 this happens in stat calculation directly.\r\n\t\tonModifySpA() {},\r\n\t},\r\n\tloveball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tluckypunch: {\r\n\t\tinherit: true,\r\n\t\tonModifyCritRatioPriority: -1,\r\n\t\tonModifyCritRatio(critRatio, user) {\r\n\t\t\tif (user.species.name === 'Chansey') {\r\n\t\t\t\treturn 3;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tlureball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tmagnet: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Electric') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmetalcoat: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Steel') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmetalpowder: {\r\n\t\tinherit: true,\r\n\t\t// In Gen 2 this happens in stat calculation directly.\r\n\t\tonModifyDef() {},\r\n\t\tonModifySpD() {},\r\n\t},\r\n\tmiracleseed: {\r\Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,YAAY;AAC9B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,QAAQ;AAC1B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,iBAAiB,UAAU;AAC1B,UAAI,OAAO,aAAa;AAAU;AAClC,WAAK,MAAM,oCAAoC;AAC/C,aAAO,WAAW;AAAA,IACnB;AAAA,EACD;AA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IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,SAAS;AAC3B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,2BAALine truncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/learnsets.ts"],
|
||||
"sourcesContent": ["export const Learnsets: {[k: string]: ModdedLearnsetData} = {\r\n\tmissingno: {\r\n\t\tlearnset: {\r\n\t\t\tblizzard: [\"1M\"],\r\n\t\t\tbubblebeam: [\"1M\"],\r\n\t\t\tcut: [\"1M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tearthquake: [\"1M\"],\r\n\t\t\tfissure: [\"1M\"],\r\n\t\t\tfly: [\"1M\"],\r\n\t\t\ticebeam: [\"1M\"],\r\n\t\t\tmegakick: [\"1M\"],\r\n\t\t\tmegapunch: [\"1M\"],\r\n\t\t\tpsychic: [\"1M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorwind: [\"1M\"],\r\n\t\t\trest: [\"1M\"],\r\n\t\t\tseismictoss: [\"1M\"],\r\n\t\t\tskyattack: [\"1L1\"],\r\n\t\t\tsubmission: [\"1M\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\tteleport: [\"1M\"],\r\n\t\t\tthunder: [\"1M\"],\r\n\t\t\tthunderwave: [\"1M\"],\r\n\t\t\ttoxic: [\"1M\"],\r\n\t\t\ttriattack: [\"1M\"],\r\n\t\t\twatergun: [\"1M\", \"1L1\"],\r\n\t\t},\r\n\t},\r\n\tbulbasaur: {\r\n\t\tlearnset: {\r\n\t\t\tancientpower: [\"2S0\"],\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2S0\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L32\", \"1L34\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\tleechseed: [\"2L7\", \"1L7\"],\r\n\t\t\tlightscreen: [\"2E\"],\r\n\t\t\tmegadrain: [\"1M\"],\r\n\t\t\tmimic: [\"1M\"],\r\n\t\t\tmudslap: [\"2M\"],\r\n\t\t\tpetaldance: [\"2E\"],\r\n\t\t\tpoisonpowder: [\"2L15\", \"1L20\"],\r\n\t\t\tprotect: [\"2M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorleaf: [\"2L20\", \"1L27\"],\r\n\t\t\trazorwind: [\"2E\"],\r\n\t\t\treflect: [\"1M\"],\r\n\t\t\trest: [\"2M\", \"1M\"],\r\n\t\t\treturn: [\"2M\"],\r\n\t\t\tsafeguard: [\"2E\"],\r\n\t\t\tskullbash: [\"2E\"],\r\n\t\t\tsleeppowder: [\"2L15\", \"1L41\"],\r\n\t\t\tsleeptalk: [\"2M\"],\r\n\t\t\tsnore: [\"2M\"],\r\n\t\t\tsolarbeam: [\"2M\", \"2L46\", \"1M\", \"1L48\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tsunnyday: [\"2M\"],\r\n\t\t\tswagger: [\"2M\"],\r\n\t\t\tsweetscent: [\"2M\", \"2L25\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\tsynthesis: [\"2L39\"],\r\n\t\t\ttackle: [\"2L1\", \"2S0\", \"1L1\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\ttoxic: [\"2M\", \"1M\"],\r\n\t\t\tvinewhip: [\"2L10\", \"1L13\"],\r\n\t\t},\r\n\t\teventData: [\r\n\t\t\t{generation: 2, level: 5, shiny: 1, moves: [\"tackle\", \"growl\", \"ancientpower\"]},\r\n\t\t],\r\n\t\tencounters: [\r\n\t\t\t{generation: 1, level: 5},\r\n\t\t],\r\n\t},\r\n\tivysaur: {\r\n\t\tlearnset: {\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2L1\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L38\", \"1L38\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\tleechseed: [\"2L7\", \"2L1\", \"1L7\", \"1L1\"],\r\n\t\t\tmegadrain: [\"1M\"],\r\n\t\t\tmimic: [\"1M\"],\r\n\t\t\tmudslap: [\"2M\"],\r\n\t\t\tpoisonpowder: [\"2L15\", \"1L22\"],\r\n\t\t\tprotect: [\"2M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorleaf: [\"2L22\", \"1L30\"],\r\n\t\t\treflect: [\"1M\"],\r\n\t\t\trest: [\"2M\", \"1M\"],\r\n\t\t\treturn: [\"2M\"],\r\n\t\t\tsleeppowder: [\"2L15\", \"1L46\"],\r\n\t\t\tsleeptalk: [\"2M\"],\r\n\t\t\tsnore: [\"2M\"],\r\n\t\t\tsolarbeam: [\"2M\", \"2L56\", \"1M\", \"1L54\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tsunnyday: [\"2M\"],\r\n\t\t\tswagger: [\"2M\"],\r\n\t\t\tsweetscent: [\"2M\", \"2L29\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\tsynthesis: [\"2L47\"],\r\n\t\t\ttackle: [\"2L1\", \"1L1\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\ttoxic: [\"2M\", \"1M\"],\r\n\t\t\tvinewhip: [\"2L10\", \"1L13\"],\r\n\t\t},\r\n\t},\r\n\tvenusaur: {\r\n\t\tlearnset: {\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2L1\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L41\", \"1L43\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\thyperbeam: [\"2M\", \"1M\"],\r\n\t\t\tleechseed: [\"2L7\", \"2L1\", \"1L7\", \"1L1\"],\r\n\t\t\tmegadrain: [\"1M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O,OAAO,OAAO,KAAK;AAAA,MACtC,WAAW,CAAC,IAAI;AAAA,MAChB,OAAO,CAAC,IAAI;AAAA,MACZ,SAAS,CAAC,IAAI;AAAA,MACd,cAAc,CAAC,QAAQ,OAAO,MAAM;AAAA,MACpC,SAAS,CAAC,IAAI;AAAA,MACd,MAAM,CAAC,IAAI;AAAA,MACX,WAAW,CAAC,QAAQ,OAAO,MAAM;AAAA,MACjC,SAAS,CAAC,IAAI;AAAA,MACd,MAAM,CAAC,MAAM,IAAI;AAAA,MACjB,QAAQ,CAAC,IAAI;AAAA,MACb,MAAM,CAAC,IAAI;AAAA,MACX,aAAa,CAAC,QAAQ,OAAO,MAAM;AAAA,MACnC,WAAW,CAAC,IAAI;AAAA,MAChB,OAAO,CAAC,IAAI;AAAA,MACZ,WAAW,CAAC,MAAM,QAAQ,MAAM,MAAM;AAAA,MACtC,YAAY,CAAC,IAAI;AAAA,MACjB,UAAU,CAAC,IAAI;AAAA,MACf,SAAS,CAAC,IAAI;AAAA,MACd,YAAY,CAAC,MAAM,QAAQ,KAAK;AAAA,MAChC,aAAa,CAAC,IAAI;AAAA,MAClB,WAAW,CAAC,MAAM;AAAA,MAClB,QAAQ,CAAC,OAAO,KAAK;AAAA,MACrB,UAAU,CAAC,IAAI;AAAA,MACf,OAAO,CAAC,MAAM,IAAI;AAAA,MAClB,UAAU,CAAC,QAAQ,OAAO,QAAQ,KAAK;AAAA,IACxC;AAAA,IACA,WAAW;AAAA,MACV,EAAC,YAAY,GAAG,OAAO,IAAI,OAAO,MAAM,OAAO,CAAC,gBAAgB,eAAe,aAAa,YAAY,EAAC;AAAA,IAC1G;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,UAAU;AAAA,MACTLine truncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/moves.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 2 moves\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\taeroblast: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tbeatup: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move, pokemon) {\r\n\t\t\tmove.type = '???';\r\n\t\t\tmove.category = 'Special';\r\n\t\t\tmove.allies = pokemon.side.pokemon.filter(ally => !ally.fainted && !ally.status);\r\n\t\t\tmove.multihit = move.allies.length;\r\n\t\t},\r\n\t},\r\n\tbellydrum: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tif (target.boosts.atk >= 6) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (target.hp <= target.maxhp / 2) {\r\n\t\t\t\tthis.boost({atk: 2}, null, null, this.dex.conditions.get('bellydrum2'));\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.directDamage(target.maxhp / 2);\r\n\t\t\tconst originalStage = target.boosts.atk;\r\n\t\t\tlet currentStage = originalStage;\r\n\t\t\tlet boosts = 0;\r\n\t\t\tlet loopStage = 0;\r\n\t\t\twhile (currentStage < 6) {\r\n\t\t\t\tloopStage = currentStage;\r\n\t\t\t\tcurrentStage++;\r\n\t\t\t\tif (currentStage < 6) currentStage++;\r\n\t\t\t\ttarget.boosts.atk = loopStage;\r\n\t\t\t\tif (target.getStat('atk', false, true) < 999) {\r\n\t\t\t\t\ttarget.boosts.atk = currentStage;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\ttarget.boosts.atk = currentStage - 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tboosts = target.boosts.atk - originalStage;\r\n\t\t\ttarget.boosts.atk = originalStage;\r\n\t\t\tthis.boost({atk: boosts});\r\n\t\t},\r\n\t},\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tduration: 3,\r\n\t\t\tdurationCallback(target, source, effect) {\r\n\t\t\t\treturn this.random(3, 5);\r\n\t\t\t},\r\n\t\t\tonLockMove: 'bide',\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.totalDamage = 0;\r\n\t\t\t\tthis.add('-start', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonDamagePriority: -101,\r\n\t\t\tonDamage(damage, target, source, move) {\r\n\t\t\t\tif (!move || move.effectType !== 'Move' || !source) return;\r\n\t\t\t\tthis.effectState.totalDamage += damage;\r\n\t\t\t\tthis.effectState.lastDamageSource = source;\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\t\tif (this.effectState.duration === 1) {\r\n\t\t\t\t\tthis.add('-end', pokemon, 'move: Bide');\r\n\t\t\t\t\tif (!this.effectState.totalDamage) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttarget = this.effectState.lastDamageSource;\r\n\t\t\t\t\tif (!target) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!target.isActive) {\r\n\t\t\t\t\t\tconst possibleTarget = this.getRandomTarget(pokemon, this.dex.moves.get('pound'));\r\n\t\t\t\t\t\tif (!possibleTarget) {\r\n\t\t\t\t\t\t\tthis.add('-miss', pokemon);\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttarget = possibleTarget;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst moveData = {\r\n\t\t\t\t\t\tid: 'bide',\r\n\t\t\t\t\t\tname: \"Bide\",\r\n\t\t\t\t\t\taccuracy: 100,\r\n\t\t\t\t\t\tdamage: this.effectState.totalDamage * 2,\r\n\t\t\t\t\t\tcategory: \"Physical\",\r\n\t\t\t\t\t\tpriority: 0,\r\n\t\t\t\t\t\tflags: {contact: 1, protect: 1},\r\n\t\t\t\t\t\teffectType: 'Move',\r\n\t\t\t\t\t\ttype: 'Normal',\r\n\t\t\t\t\t} as unknown as ActiveMove;\r\n\t\t\t\t\tthis.actions.tryMoveHit(target, pokemon, moveData);\r\n\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.add('-activate', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonMoveAborted(pokemon) {\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t},\r\n\t\t\tonEnd(pokemon) {\r\n\t\t\t\tthis.add('-end', pokemon, 'move: Bide', '[silent]');\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tcounter: {\r\n\t\tinherit: true,\r\n\t\tdamageCallback(pokemon, target) {\r\n\t\t\tconst lastAttackedBy = pokemon.getLastAttackedBy();\r\n\t\t\tif (!lastAttackedBy?.move || !lastAttackedBy.thisTurn) return false;\r\n\r\n\t\t\t// Hidden Power counts as physical\r\n\t\t\tif (this.getCategory(lastAttackedBy.move) === 'Physical' && target.lastMove?.id !== 'sleeptalk') {\r\n\t\t\t\treturn 2 * lastAttackedBy.damage;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tbeforeTurnCallback() {},\r\n\t\tonTry() {},\r\n\t\tcondition: {},\r\n\t\tpriority: -1,\r\n\t},\r\n\tcrabhammer: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tcrosschop: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tcurse: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(pokemon, source) {\r\n\t\t\t\tthis.add('-start', pokemon, 'Curse', '[of] ' + source);\r\n\t\t\t},\r\n\t\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\t\tthis.damage(pokemon.baseMaxhp / 4);\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tdetect: {\r\n\t\tinherit: true,\r\n\t\tpriority: 2,\r\n\t},\r\n\tdig: {\r\n\t\tinherit: true,\r\n\t\tonPrepareHit(target, source) {\r\n\t\t\treturn source.status !== 'slp';\r\n\t\t},\r\n\t\tcondition: {\r\n\t\t\tduration: 2,\r\n\t\t\tonImmunity(typeLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,QAAuC;AAAA,EACnD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,aAAa,MAAM,SAAS;AAC3B,WAAK,OAAO;AACZ,WAAK,WAAW;AAChB,WAAK,SAAS,QAAQ,KAAK,QAAQ,OAAO,UAAQ,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM;AAC/E,WAAK,WAAW,KAAK,OAAO;AAAA,IAC7B;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,MAAM,QAAQ;AACb,UAAI,OAAO,OAAO,OAAO,GAAG;AAC3B,eAAO;AAAA,MACR;AACA,UAAI,OAAO,MAAM,OAAO,QAAQ,GAAG;AAClC,aAAK,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,MAAM,KAAK,IAAI,WAAW,IAAI,YAAY,CAAC;AACtE,eAAO;AAAA,MACR;AACA,WAAK,aAAa,OAAO,QAAQ,CAAC;AAClC,YAAM,gBAAgB,OAAO,OAAO;AACpC,UAAI,eAAe;AACnB,UAAI,SAAS;AACb,UAAI,YAAY;AAChB,aAAO,eAAe,GAAG;AACxB,oBAAY;AACZ;AACA,YAAI,eAAe;AAAG;AACtB,eAAO,OAAO,MAAM;AACpB,YAAI,OAAO,QAAQ,OAAO,OAAO,IAAI,IAAI,KAAK;AAC7C,iBAAO,OAAO,MAAM;AACpB;AAAA,QACD;AACA,eAAO,OAAO,MAAM,eAAe;AACnC;AAAA,M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__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 = {
|
||||
unown: {
|
||||
inherit: true,
|
||||
cosmeticFormes: ["Unown-B", "Unown-C", "Unown-D", "Unown-E", "Unown-F", "Unown-G", "Unown-H", "Unown-I", "Unown-J", "Unown-K", "Unown-L", "Unown-M", "Unown-N", "Unown-O", "Unown-P", "Unown-Q", "Unown-R", "Unown-S", "Unown-T", "Unown-U", "Unown-V", "Unown-W", "Unown-X", "Unown-Y", "Unown-Z"],
|
||||
formeOrder: ["Unown", "Unown-B", "Unown-C", "Unown-D", "Unown-E", "Unown-F", "Unown-G", "Unown-H", "Unown-I", "Unown-J", "Unown-K", "Unown-L", "Unown-M", "Unown-N", "Unown-O", "Unown-P", "Unown-Q", "Unown-R", "Unown-S", "Unown-T", "Unown-U", "Unown-V", "Unown-W", "Unown-X", "Unown-Y", "Unown-Z"]
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=pokedex.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/pokedex.ts"],
|
||||
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\tunown: {\r\n\t\tinherit: true,\r\n\t\tcosmeticFormes: [\"Unown-B\", \"Unown-C\", \"Unown-D\", \"Unown-E\", \"Unown-F\", \"Unown-G\", \"Unown-H\", \"Unown-I\", \"Unown-J\", \"Unown-K\", \"Unown-L\", \"Unown-M\", \"Unown-N\", \"Unown-O\", \"Unown-P\", \"Unown-Q\", \"Unown-R\", \"Unown-S\", \"Unown-T\", \"Unown-U\", \"Unown-V\", \"Unown-W\", \"Unown-X\", \"Unown-Y\", \"Unown-Z\"],\r\n\t\tformeOrder: [\"Unown\", \"Unown-B\", \"Unown-C\", \"Unown-D\", \"Unown-E\", \"Unown-F\", \"Unown-G\", \"Unown-H\", \"Unown-I\", \"Unown-J\", \"Unown-K\", \"Unown-L\", \"Unown-M\", \"Unown-N\", \"Unown-O\", \"Unown-P\", \"Unown-Q\", \"Unown-R\", \"Unown-S\", \"Unown-T\", \"Unown-U\", \"Unown-V\", \"Unown-W\", \"Unown-X\", \"Unown-Y\", \"Unown-Z\"],\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAA4C;AAAA,EACxD,OAAO;AAAA,IACN,SAAS;AAAA,IACT,gBAAgB,CAAC,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,SAAS;AAAA,IAClS,YAAY,CAAC,SAAS,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,SAAS;AAAA,EACxS;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
{
|
||||
"venusaur": {
|
||||
"moves": ["growth", "hiddenpowerfire", "hiddenpowerice", "leechseed", "razorleaf", "sleeppowder", "synthesis"]
|
||||
},
|
||||
"charizard": {
|
||||
"moves": ["bellydrum", "earthquake", "fireblast", "hyperbeam", "rockslide"]
|
||||
},
|
||||
"blastoise": {
|
||||
"moves": ["icebeam", "rapidspin", "rest", "sleeptalk", "surf", "toxic", "zapcannon"]
|
||||
},
|
||||
"butterfree": {
|
||||
"moves": ["nightmare", "psychic", "sleeppowder", "stunspore", "substitute"]
|
||||
},
|
||||
"beedrill": {
|
||||
"moves": ["agility", "hiddenpowerground", "sludgebomb", "substitute", "swordsdance"]
|
||||
},
|
||||
"pidgeot": {
|
||||
"moves": ["curse", "hiddenpowerground", "reflect", "rest", "return", "sleeptalk", "toxic", "whirlwind"]
|
||||
},
|
||||
"raticate": {
|
||||
"moves": ["irontail", "rest", "return", "sleeptalk", "superfang"]
|
||||
},
|
||||
"fearow": {
|
||||
"moves": ["doubleedge", "drillpeck", "hiddenpowerground", "rest", "sleeptalk", "substitute"]
|
||||
},
|
||||
"arbok": {
|
||||
"moves": ["curse", "earthquake", "glare", "haze", "rest", "sludgebomb"]
|
||||
},
|
||||
"pikachu": {
|
||||
"moves": ["encore", "hiddenpowerice", "substitute", "surf", "thunderbolt"]
|
||||
},
|
||||
"raichu": {
|
||||
"moves": ["encore", "hiddenpowerice", "rest", "sleeptalk", "surf", "thunder", "thunderbolt"]
|
||||
},
|
||||
"sandslash": {
|
||||
"moves": ["earthquake", "hiddenpowerbug", "rockslide", "substitute", "swordsdance"]
|
||||
},
|
||||
"nidoqueen": {
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "lovelykiss", "moonlight", "thunder"]
|
||||
},
|
||||
"nidoking": {
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "lovelykiss", "morningsun", "thunder"]
|
||||
},
|
||||
"clefable": {
|
||||
"moves": ["bellydrum", "encore", "fireblast", "moonlight", "return", "shadowball"]
|
||||
},
|
||||
"ninetales": {
|
||||
"moves": ["confuseray", "fireblast", "hiddenpowergrass", "hypnosis", "sunnyday"]
|
||||
},
|
||||
"wigglytuff": {
|
||||
"moves": ["bodyslam", "charm", "curse", "doubleedge", "fireblast", "rest", "sleeptalk", "thunderwave"]
|
||||
},
|
||||
"vileplume": {
|
||||
"moves": ["hiddenpowergrass", "moonlight", "sleeppowder", "sludgebomb", "stunspore", "swordsdance"]
|
||||
},
|
||||
"parasect": {
|
||||
"moves": ["bodyslam", "gigadrain", "hiddenpowerbug", "spore", "swordsdance", "synthesis"]
|
||||
},
|
||||
"venomoth": {
|
||||
"moves": ["disable", "gigadrain", "psychic", "sleeppowder", "sludgebomb", "stunspore"]
|
||||
},
|
||||
"dugtrio": {
|
||||
"moves": ["earthquake", "rockslide", "sludgebomb", "substitute", "swagger"]
|
||||
},
|
||||
"persian": {
|
||||
"moves": ["bodyslam", "hypnosis", "irontail", "rest", "return", "thunder"]
|
||||
},
|
||||
"golduck": {
|
||||
"moves": ["crosschop", "hiddenpowerelectric", "hydropump", "hypnosis", "icebeam", "psychic", "surf"]
|
||||
},
|
||||
"primeape": {
|
||||
"moves": ["crosschop", "doubleedge", "hiddenpowerghost", "meditate", "rest", "rockslide", "substitute"]
|
||||
},
|
||||
"arcanine": {
|
||||
"moves": ["bodyslam", "crunch", "extremespeed", "fireblast", "hiddenpowergrass", "rest", "sleeptalk"]
|
||||
},
|
||||
"poliwrath": {
|
||||
"moves": ["bellydrum", "bodyslam", "earthquake", "lovelykiss"]
|
||||
},
|
||||
"alakazam": {
|
||||
"moves": ["encore", "firepunch", "icepunch", "psychic", "recover", "thunderpunch", "thunderwave"]
|
||||
},
|
||||
"machamp": {
|
||||
"moves": ["bodyslam", "crosschop", "curse", "earthquake", "hiddenpowerghost", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"victreebel": {
|
||||
"moves": ["hiddenpowerground", "razorleaf", "sleeppowder", "sludgebomb", "swordsdance", "synthesis"]
|
||||
},
|
||||
"tentacruel": {
|
||||
"moves": ["hydropump", "sludgebomb", "substitute", "swordsdance"]
|
||||
},
|
||||
"golem": {
|
||||
"moves": ["curse", "earthquake", "explosion", "fireblast", "rapidspin", "rockslide"]
|
||||
},
|
||||
"rapidash": {
|
||||
"moves": ["bodyslam", "fireblast", "hiddenpowergrass", "hypnosis", "sunnyday"]
|
||||
},
|
||||
"slowbro": {
|
||||
"moves": ["fireblast", "psychic", "rest", "sleeptalk", "surf", "thunderwave", "toxic"]
|
||||
},
|
||||
"magneton": {
|
||||
"moves": ["hiddenpowerice", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"farfetchd": {
|
||||
"moves": ["agility", "batonpass", "return", "swordsdance"]
|
||||
},
|
||||
"dodrio": {
|
||||
"moves": ["doubleedge", "drillpeck", "hiddenpowerground", "rest", "substitute"]
|
||||
},
|
||||
"dewgong": {
|
||||
"moves": ["bodyslam", "encore", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"muk": {
|
||||
"moves": ["curse", "explosion", "fireblast", "hiddenpowerground", "sludgebomb"]
|
||||
},
|
||||
"cloyster": {
|
||||
"moves": ["explosion", "icebeam", "spikes", "surf", "toxic"]
|
||||
},
|
||||
"gengar": {
|
||||
"moves": ["destinybond", "explosion", "firepunch", "hypnosis", "icepunch", "thunderbolt"]
|
||||
},
|
||||
"hypno": {
|
||||
"moves": ["hypnosis", "lightscreen", "psychic", "reflect", "seismictoss", "thunderwave"]
|
||||
},
|
||||
"kingler": {
|
||||
"moves": ["hiddenpowerground", "rest", "return", "surf", "swordsdance"]
|
||||
},
|
||||
"electrode": {
|
||||
"moves": ["explosion", "hiddenpowerice", "lightscreen", "reflect", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"exeggutor": {
|
||||
"moves": ["explosion", "gigadrain", "hiddenpowerfire", "psychic", "sleeppowder", "stunspore", "synthesis"]
|
||||
},
|
||||
"marowak": {
|
||||
"moves": ["earthquake", "hiddenpowerbug", "rockslide", "swordsdance"]
|
||||
},
|
||||
"hitmonlee": {
|
||||
"moves": ["bodyslam", "hiddenpowerghost", "highjumpkick", "meditate", "rest"]
|
||||
},
|
||||
"hitmonchan": {
|
||||
"moves": ["bodyslam", "counter", "curse", "hiddenpowerghost", "highjumpkick"]
|
||||
},
|
||||
"lickitung": {
|
||||
"moves": ["bodyslam", "earthquake", "fireblast", "rest", "sleeptalk", "swordsdance"]
|
||||
},
|
||||
"weezing": {
|
||||
"moves": ["explosion", "fireblast", "hiddenpowergrass", "painsplit", "sludgebomb", "thunder"]
|
||||
},
|
||||
"rhydon": {
|
||||
"moves": ["curse", "earthquake", "fireblast", "rest", "roar", "rockslide", "sleeptalk", "zapcannon"]
|
||||
},
|
||||
"tangela": {
|
||||
"moves": ["gigadrain", "growth", "hiddenpowerice", "sleeppowder", "synthesis"]
|
||||
},
|
||||
"kangaskhan": {
|
||||
"moves": ["bodyslam", "curse", "earthquake", "rest", "return", "roar", "sleeptalk"]
|
||||
},
|
||||
"seaking": {
|
||||
"moves": ["agility", "return", "substitute", "surf", "swordsdance"]
|
||||
},
|
||||
"starmie": {
|
||||
"moves": ["psychic", "rapidspin", "recover", "surf", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"mrmime": {
|
||||
"moves": ["encore", "firepunch", "hypnosis", "icepunch", "psychic", "thief", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"scyther": {
|
||||
"moves": ["batonpass", "hiddenpowerbug", "hiddenpowerground", "swordsdance", "wingattack"]
|
||||
},
|
||||
"jynx": {
|
||||
"moves": ["icebeam", "lovelykiss", "nightmare", "psychic", "substitute", "thief"]
|
||||
},
|
||||
"electabuzz": {
|
||||
"moves": ["crosschop", "icepunch", "psychic", "pursuit", "thunder", "thunderbolt"]
|
||||
},
|
||||
"magmar": {
|
||||
"moves": ["crosschop", "fireblast", "hiddenpowerground", "sunnyday", "thief", "thunderpunch"]
|
||||
},
|
||||
"pinsir": {
|
||||
"moves": ["bodyslam", "doubleedge", "hiddenpowerbug", "rest", "submission", "swordsdance"]
|
||||
},
|
||||
"tauros": {
|
||||
"moves": ["curse", "doubleedge", "earthquake", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"gyarados": {
|
||||
"moves": ["bodyslam", "doubleedge", "hiddenpowerflying", "hydropump", "rest", "sleeptalk", "thunder"]
|
||||
},
|
||||
"lapras": {
|
||||
"moves": ["icebeam", "rest", "sing", "sleeptalk", "surf", "thunder", "thunderbolt", "toxic"]
|
||||
},
|
||||
"ditto": {
|
||||
"level": 83,
|
||||
"moves": ["transform"]
|
||||
},
|
||||
"vaporeon": {
|
||||
"moves": ["growth", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"jolteon": {
|
||||
"moves": ["batonpass", "growth", "hiddenpowerice", "hiddenpowerwater", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"flareon": {
|
||||
"moves": ["batonpass", "doubleedge", "fireblast", "growth", "hiddenpowergrass", "zapcannon"]
|
||||
},
|
||||
"omastar": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"kabutops": {
|
||||
"moves": ["ancientpower", "hiddenpowerground", "return", "submission", "surf", "swordsdance"]
|
||||
},
|
||||
"aerodactyl": {
|
||||
"moves": ["ancientpower", "curse", "earthquake", "hiddenpowerflying", "reflect", "whirlwind"]
|
||||
},
|
||||
"snorlax": {
|
||||
"moves": ["curse", "doubleedge", "earthquake", "fireblast", "lovelykiss", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"articuno": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "toxic"]
|
||||
},
|
||||
"zapdos": {
|
||||
"moves": ["hiddenpowerice", "rest", "sleeptalk", "thunder"]
|
||||
},
|
||||
"moltres": {
|
||||
"moves": ["fireblast", "hiddenpowergrass", "rest", "sleeptalk", "sunnyday"]
|
||||
},
|
||||
"dragonite": {
|
||||
"moves": ["haze", "hiddenpowerflying", "icebeam", "lightscreen", "reflect", "rest", "thunder"]
|
||||
},
|
||||
"mewtwo": {
|
||||
"moves": ["fireblast", "icebeam", "psychic", "recover", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"mew": {
|
||||
"moves": ["earthquake", "explosion", "psychic", "shadowball", "softboiled", "submission", "swordsdance"]
|
||||
},
|
||||
"meganium": {
|
||||
"moves": ["hiddenpowerfire", "leechseed", "lightscreen", "razorleaf", "reflect", "synthesis"]
|
||||
},
|
||||
"typhlosion": {
|
||||
"moves": ["earthquake", "fireblast", "rest", "sleeptalk", "thunderpunch"]
|
||||
},
|
||||
"feraligatr": {
|
||||
"moves": ["crunch", "earthquake", "icebeam", "rest", "rockslide", "sleeptalk", "surf"]
|
||||
},
|
||||
"furret": {
|
||||
"moves": ["curse", "doubleedge", "rest", "shadowball", "sleeptalk", "surf"]
|
||||
},
|
||||
"noctowl": {
|
||||
"moves": ["hypnosis", "nightshade", "reflect", "thief", "toxic", "whirlwind"]
|
||||
},
|
||||
"ledian": {
|
||||
"moves": ["agility", "barrier", "batonpass", "lightscreen"]
|
||||
},
|
||||
"ariados": {
|
||||
"moves": ["batonpass", "curse", "sludgebomb", "spiderweb"]
|
||||
},
|
||||
"crobat": {
|
||||
"moves": ["gigadrain", "haze", "hiddenpowerground", "rest", "whirlwind", "wingattack"]
|
||||
},
|
||||
"lanturn": {
|
||||
"moves": ["icebeam", "raindance", "rest", "sleeptalk", "surf", "thunder"]
|
||||
},
|
||||
"togetic": {
|
||||
"moves": ["fireblast", "solarbeam", "sunnyday", "zapcannon"]
|
||||
},
|
||||
"xatu": {
|
||||
"moves": ["drillpeck", "haze", "hiddenpowergrass", "hiddenpowerwater", "psychic", "rest", "sleeptalk", "thief"]
|
||||
},
|
||||
"ampharos": {
|
||||
"moves": ["firepunch", "hiddenpowerice", "lightscreen", "reflect", "rest", "sleeptalk", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"bellossom": {
|
||||
"moves": ["doubleedge", "hiddenpowerfire", "leechseed", "moonlight", "razorleaf", "sleeppowder", "stunspore"]
|
||||
},
|
||||
"azumarill": {
|
||||
"moves": ["perishsong", "rest", "surf", "whirlpool"]
|
||||
},
|
||||
"sudowoodo": {
|
||||
"moves": ["curse", "earthquake", "rest", "rockslide", "selfdestruct", "sleeptalk"]
|
||||
},
|
||||
"politoed": {
|
||||
"moves": ["growth", "hiddenpowerelectric", "icebeam", "lovelykiss", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"jumpluff": {
|
||||
"moves": ["gigadrain", "hiddenpowerice", "hiddenpowerwater", "leechseed", "sleeppowder", "stunspore"]
|
||||
},
|
||||
"aipom": {
|
||||
"moves": ["agility", "batonpass", "curse", "return", "shadowball"]
|
||||
},
|
||||
"sunflora": {
|
||||
"moves": ["growth", "hiddenpowerfire", "hiddenpowerwater", "razorleaf", "synthesis"]
|
||||
},
|
||||
"yanma": {
|
||||
"moves": ["gigadrain", "hiddenpowerbug", "hiddenpowerflying", "return", "screech", "thief"]
|
||||
},
|
||||
"quagsire": {
|
||||
"moves": ["bellydrum", "bodyslam", "earthquake", "rest", "surf"]
|
||||
},
|
||||
"espeon": {
|
||||
"moves": ["batonpass", "bite", "growth", "hiddenpowerfire", "morningsun", "psychic", "substitute"]
|
||||
},
|
||||
"umbreon": {
|
||||
"moves": ["batonpass", "growth", "hiddenpowerdark", "meanlook", "moonlight"]
|
||||
},
|
||||
"murkrow": {
|
||||
"moves": ["drillpeck", "haze", "hiddenpowerdark", "hiddenpowerfire", "pursuit", "thief", "toxic"]
|
||||
},
|
||||
"slowking": {
|
||||
"moves": ["fireblast", "psychic", "rest", "sleeptalk", "surf", "thunderwave", "toxic"]
|
||||
},
|
||||
"misdreavus": {
|
||||
"moves": ["meanlook", "painsplit", "perishsong", "psychic", "shadowball", "thief", "thunderbolt"]
|
||||
},
|
||||
"unown": {
|
||||
"level": 87,
|
||||
"moves": ["hiddenpowerpsychic"]
|
||||
},
|
||||
"wobbuffet": {
|
||||
"level": 83,
|
||||
"moves": ["counter", "mimic", "mirrorcoat", "safeguard"]
|
||||
},
|
||||
"girafarig": {
|
||||
"moves": ["crunch", "curse", "earthquake", "psychic", "rest", "return", "thunderbolt"]
|
||||
},
|
||||
"forretress": {
|
||||
"moves": ["doubleedge", "explosion", "hiddenpowerbug", "rapidspin", "reflect", "spikes", "toxic"]
|
||||
},
|
||||
"dunsparce": {
|
||||
"moves": ["curse", "flamethrower", "rest", "return", "sleeptalk", "thunder", "thunderbolt"]
|
||||
},
|
||||
"gligar": {
|
||||
"moves": ["counter", "earthquake", "hiddenpowerflying", "screech", "thief"]
|
||||
},
|
||||
"steelix": {
|
||||
"moves": ["curse", "earthquake", "explosion", "irontail", "rest", "roar", "sleeptalk", "toxic"]
|
||||
},
|
||||
"granbull": {
|
||||
"moves": ["curse", "healbell", "hiddenpowerground", "lovelykiss", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"qwilfish": {
|
||||
"moves": ["curse", "haze", "hydropump", "sludgebomb", "spikes"]
|
||||
},
|
||||
"scizor": {
|
||||
"moves": ["agility", "batonpass", "hiddenpowerbug", "return", "swordsdance"]
|
||||
},
|
||||
"shuckle": {
|
||||
"moves": ["defensecurl", "rest", "rollout", "toxic"]
|
||||
},
|
||||
"heracross": {
|
||||
"moves": ["curse", "earthquake", "megahorn", "rest", "seismictoss", "sleeptalk"]
|
||||
},
|
||||
"sneasel": {
|
||||
"moves": ["icebeam", "moonlight", "return", "screech", "shadowball", "thief"]
|
||||
},
|
||||
"ursaring": {
|
||||
"moves": ["curse", "earthquake", "rest", "return", "roar", "sleeptalk"]
|
||||
},
|
||||
"magcargo": {
|
||||
"moves": ["curse", "earthquake", "fireblast", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"piloswine": {
|
||||
"moves": ["ancientpower", "bodyslam", "curse", "earthquake", "icebeam", "rest", "sleeptalk"]
|
||||
},
|
||||
"corsola": {
|
||||
"moves": ["curse", "recover", "rockslide", "surf", "toxic"]
|
||||
},
|
||||
"octillery": {
|
||||
"moves": ["flamethrower", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"delibird": {
|
||||
"moves": ["hiddenpowerflying", "icebeam", "rapidspin", "spikes", "thief"]
|
||||
},
|
||||
"mantine": {
|
||||
"moves": ["haze", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"skarmory": {
|
||||
"moves": ["curse", "drillpeck", "rest", "sleeptalk", "toxic"]
|
||||
},
|
||||
"houndoom": {
|
||||
"moves": ["crunch", "fireblast", "pursuit", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"kingdra": {
|
||||
"moves": ["dragonbreath", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"donphan": {
|
||||
"moves": ["ancientpower", "curse", "earthquake", "hiddenpowerbug", "rapidspin", "rest", "roar", "sleeptalk"]
|
||||
},
|
||||
"porygon2": {
|
||||
"moves": ["curse", "doubleedge", "icebeam", "recover", "return", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"stantler": {
|
||||
"moves": ["confuseray", "curse", "earthquake", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"smeargle": {
|
||||
"moves": ["agility", "batonpass", "spikes", "spore"]
|
||||
},
|
||||
"hitmontop": {
|
||||
"moves": ["curse", "hiddenpowerghost", "highjumpkick", "rest", "sleeptalk"]
|
||||
},
|
||||
"miltank": {
|
||||
"moves": ["bodyslam", "curse", "earthquake", "healbell", "milkdrink"]
|
||||
},
|
||||
"blissey": {
|
||||
"moves": ["flamethrower", "healbell", "icebeam", "present", "sing", "softboiled", "toxic"]
|
||||
},
|
||||
"raikou": {
|
||||
"moves": ["crunch", "hiddenpowerice", "hiddenpowerwater", "reflect", "rest", "roar", "sleeptalk", "thunder", "thunderbolt"]
|
||||
},
|
||||
"entei": {
|
||||
"moves": ["fireblast", "hiddenpowerrock", "return", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"suicune": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "roar", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"tyranitar": {
|
||||
"moves": ["crunch", "curse", "earthquake", "fireblast", "pursuit", "rest", "roar", "rockslide", "surf"]
|
||||
},
|
||||
"lugia": {
|
||||
"moves": ["aeroblast", "curse", "earthquake", "icebeam", "recover", "whirlwind"]
|
||||
},
|
||||
"hooh": {
|
||||
"moves": ["curse", "earthquake", "hiddenpowerflying", "recover", "sacredfire", "thunder", "thunderbolt"]
|
||||
},
|
||||
"celebi": {
|
||||
"moves": ["hiddenpowergrass", "healbell", "leechseed", "psychic", "recover", "toxic"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
"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, {
|
||||
RandomGen2Teams: () => RandomGen2Teams,
|
||||
default: () => random_teams_default
|
||||
});
|
||||
module.exports = __toCommonJS(random_teams_exports);
|
||||
var import_random_teams = __toESM(require("../gen3/random-teams"));
|
||||
class RandomGen2Teams extends import_random_teams.default {
|
||||
constructor(format, prng) {
|
||||
super(format, prng);
|
||||
this.randomData = require("./random-data.json");
|
||||
this.moveEnforcementCheckers = {
|
||||
Electric: (movePool, moves, abilities, types, counter) => !counter.get("Electric"),
|
||||
Fire: (movePool, moves, abilities, types, counter) => !counter.get("Fire"),
|
||||
Flying: (movePool, moves, abilities, types, counter) => !counter.get("Flying") && types.has("Ground"),
|
||||
Ground: (movePool, moves, abilities, types, counter) => !counter.get("Ground"),
|
||||
Ice: (movePool, moves, abilities, types, counter) => !counter.get("Ice"),
|
||||
Normal: (movePool, moves, abilities, types, counter) => !counter.get("Normal") && counter.setupType === "Physical",
|
||||
Psychic: (movePool, moves, abilities, types, counter) => !counter.get("Psychic") && types.has("Grass"),
|
||||
Rock: (movePool, moves, abilities, types, counter, species) => !counter.get("Rock") && species.baseStats.atk > 60,
|
||||
Water: (movePool, moves, abilities, types, counter) => !counter.get("Water")
|
||||
};
|
||||
}
|
||||
shouldCullMove(move, types, moves, abilities = {}, counter, movePool, teamDetails) {
|
||||
const restTalk = moves.has("rest") && moves.has("sleeptalk");
|
||||
switch (move.id) {
|
||||
case "bellydrum":
|
||||
case "curse":
|
||||
case "meditate":
|
||||
case "screech":
|
||||
case "swordsdance":
|
||||
return {
|
||||
cull: counter.setupType !== "Physical" || counter.get("physicalsetup") > 1 || (!counter.get("Physical") || counter.damagingMoves.size < 2 && !moves.has("batonpass") && !moves.has("sleeptalk")),
|
||||
isSetup: true
|
||||
};
|
||||
case "batonpass":
|
||||
return { cull: !counter.setupType && !counter.get("speedsetup") && !moves.has("meanlook") };
|
||||
case "meanlook":
|
||||
return { cull: movePool.includes("perishsong") };
|
||||
case "nightmare":
|
||||
return { cull: !moves.has("lovelykiss") && !moves.has("sleeppowder") };
|
||||
case "swagger":
|
||||
return { cull: !moves.has("substitute") };
|
||||
case "charm":
|
||||
case "counter":
|
||||
return { cull: !!counter.setupType };
|
||||
case "haze":
|
||||
return { cull: !!counter.setupType || restTalk };
|
||||
case "reflect":
|
||||
case "lightscreen":
|
||||
return { cull: !!counter.setupType || moves.has("rest") };
|
||||
case "doubleedge":
|
||||
return { cull: moves.has("bodyslam") || moves.has("return") };
|
||||
case "explosion":
|
||||
case "selfdestruct":
|
||||
return { cull: moves.has("softboiled") || restTalk };
|
||||
case "extremespeed":
|
||||
return { cull: moves.has("bodyslam") || restTalk };
|
||||
case "hyperbeam":
|
||||
return { cull: moves.has("rockslide") };
|
||||
case "rapidspin":
|
||||
return { cull: !!teamDetails.rapidSpin || !!counter.setupType || moves.has("sleeptalk") };
|
||||
case "return":
|
||||
return { cull: moves.has("bodyslam") };
|
||||
case "surf":
|
||||
return { cull: moves.has("hydropump") };
|
||||
case "thunder":
|
||||
return { cull: moves.has("thunderbolt") };
|
||||
case "razorleaf":
|
||||
return { cull: moves.has("swordsdance") && movePool.includes("sludgebomb") };
|
||||
case "icebeam":
|
||||
return { cull: moves.has("dragonbreath") };
|
||||
case "seismictoss":
|
||||
return { cull: moves.has("rest") || moves.has("sleeptalk") };
|
||||
case "destinybond":
|
||||
return { cull: moves.has("explosion") };
|
||||
case "pursuit":
|
||||
return { cull: moves.has("crunch") && moves.has("solarbeam") };
|
||||
case "thief":
|
||||
return { cull: moves.has("rest") || moves.has("substitute") };
|
||||
case "irontail":
|
||||
return { cull: types.has("Ground") && movePool.includes("earthquake") };
|
||||
case "confuseray":
|
||||
case "encore":
|
||||
case "roar":
|
||||
case "whirlwind":
|
||||
return { cull: restTalk };
|
||||
case "lovelykiss":
|
||||
return { cull: ["healbell", "moonlight", "morningsun", "sleeptalk"].some((m) => moves.has(m)) };
|
||||
case "sleeptalk":
|
||||
return { cull: moves.has("curse") && counter.get("stab") >= 2 };
|
||||
case "softboiled":
|
||||
return { cull: movePool.includes("swordsdance") };
|
||||
case "spikes":
|
||||
return { cull: !!teamDetails.spikes };
|
||||
case "substitute":
|
||||
return { cull: moves.has("agility") || moves.has("rest") };
|
||||
case "synthesis":
|
||||
return { cull: moves.has("explosion") };
|
||||
case "thunderwave":
|
||||
return { cull: moves.has("thunder") || moves.has("toxic") };
|
||||
}
|
||||
return { cull: false };
|
||||
}
|
||||
getItem(ability, types, moves, counter, species) {
|
||||
if (species.name === "Ditto")
|
||||
return "Metal Powder";
|
||||
if (species.name === "Farfetch\u2019d")
|
||||
return "Stick";
|
||||
if (species.name === "Marowak")
|
||||
return "Thick Club";
|
||||
if (species.name === "Pikachu")
|
||||
return "Light Ball";
|
||||
if (species.name === "Unown")
|
||||
return "Twisted Spoon";
|
||||
if (moves.has("thief"))
|
||||
return "";
|
||||
if (moves.has("rest") && !moves.has("sleeptalk"))
|
||||
return "Mint Berry";
|
||||
if ((moves.has("bellydrum") || moves.has("swordsdance")) && species.baseStats.spe >= 60 && !types.has("Ground") && !moves.has("sleeptalk") && !moves.has("substitute") && this.randomChance(1, 2)) {
|
||||
return "Miracle Berry";
|
||||
}
|
||||
return "Leftovers";
|
||||
}
|
||||
randomSet(species, teamDetails = {}) {
|
||||
species = this.dex.species.get(species);
|
||||
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 ivs = { hp: 30, atk: 30, def: 30, spa: 30, spd: 30, spe: 30 };
|
||||
let availableHP = 0;
|
||||
for (const setMoveid of movePool) {
|
||||
if (setMoveid.startsWith("hiddenpower"))
|
||||
availableHP++;
|
||||
}
|
||||
const types = new Set(species.types);
|
||||
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, /* @__PURE__ */ new Set(), movePool);
|
||||
for (const moveid of moves) {
|
||||
const move = this.dex.moves.get(moveid);
|
||||
let { cull, isSetup } = this.shouldCullMove(move, types, moves, {}, counter, movePool, teamDetails);
|
||||
if (counter.setupType === "Physical" && move.category === "Special" && !counter.get("Physical")) {
|
||||
cull = true;
|
||||
}
|
||||
const moveIsRejectable = (move.category !== "Status" || !move.flags.heal) && // These moves cannot be rejected in favor of a forced move
|
||||
!["batonpass", "sleeptalk", "spikes", "sunnyday"].includes(move.id) && (move.category === "Status" || !types.has(move.type) || move.basePower && move.basePower < 40);
|
||||
if (!cull && !isSetup && moveIsRejectable && (counter.setupType || !move.stallingMove)) {
|
||||
if (!counter.get("stab") && !counter.get("damage") && !types.has("Ghost") && counter.get("physicalpool") + counter.get("specialpool") > 0 || (movePool.includes("megahorn") || movePool.includes("softboiled") && moves.has("present")) || (moves.has("rest") && movePool.includes("sleeptalk") || moves.has("sleeptalk") && movePool.includes("rest")) || (moves.has("sunnyday") && movePool.includes("solarbeam") || moves.has("solarbeam") && movePool.includes("sunnyday")) || ["milkdrink", "recover", "spore"].some((m) => movePool.includes(m))) {
|
||||
cull = true;
|
||||
} else {
|
||||
for (const type of types) {
|
||||
if (this.moveEnforcementCheckers[type]?.(movePool, moves, /* @__PURE__ */ new Set(), types, counter, species, teamDetails))
|
||||
cull = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cull && (movePool.length - availableHP || availableHP && (move.id === "hiddenpower" || !hasHiddenPower))) {
|
||||
if (move.category !== "Status" && !move.damage && (move.id !== "hiddenpower" || !availableHP)) {
|
||||
rejectedPool.push(moveid);
|
||||
}
|
||||
moves.delete(moveid);
|
||||
if (moveid.startsWith("hiddenpower"))
|
||||
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));
|
||||
for (const setMoveid of moves) {
|
||||
if (!setMoveid.startsWith("hiddenpower"))
|
||||
continue;
|
||||
const hpType = setMoveid.substr(11, setMoveid.length);
|
||||
const hpIVs = {
|
||||
dragon: { def: 28 },
|
||||
ice: { def: 26 },
|
||||
psychic: { def: 24 },
|
||||
electric: { atk: 28 },
|
||||
grass: { atk: 28, def: 28 },
|
||||
water: { atk: 28, def: 26 },
|
||||
fire: { atk: 28, def: 24 },
|
||||
steel: { atk: 26 },
|
||||
ghost: { atk: 26, def: 28 },
|
||||
bug: { atk: 26, def: 26 },
|
||||
rock: { atk: 26, def: 24 },
|
||||
ground: { atk: 24 },
|
||||
poison: { atk: 24, def: 28 },
|
||||
flying: { atk: 24, def: 26 },
|
||||
fighting: { atk: 24, def: 24 }
|
||||
};
|
||||
if (hpIVs[hpType]) {
|
||||
ivs = { ...ivs, ...hpIVs[hpType] };
|
||||
}
|
||||
if (ivs.atk === 28 || ivs.atk === 24)
|
||||
ivs.hp = 14;
|
||||
if (ivs.def === 28 || ivs.def === 24)
|
||||
ivs.hp -= 8;
|
||||
}
|
||||
const levelScale = {
|
||||
NU: 73,
|
||||
NUBL: 71,
|
||||
UU: 69,
|
||||
UUBL: 67,
|
||||
OU: 65,
|
||||
Uber: 61
|
||||
};
|
||||
const level = this.adjustLevel || data.level || levelScale[species.tier] || 80;
|
||||
return {
|
||||
name: species.name,
|
||||
species: species.name,
|
||||
moves: Array.from(moves),
|
||||
ability: "No Ability",
|
||||
evs: { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 },
|
||||
ivs,
|
||||
item: this.getItem("None", types, moves, counter, species),
|
||||
level,
|
||||
// No shiny chance because Gen 2 shinies have bad IVs
|
||||
shiny: false,
|
||||
gender: species.gender ? species.gender : "M"
|
||||
};
|
||||
}
|
||||
}
|
||||
var random_teams_default = RandomGen2Teams;
|
||||
//# sourceMappingURL=random-teams.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/random-teams.ts"],
|
||||
"sourcesContent": ["import RandomGen3Teams from '../gen3/random-teams';\r\nimport {PRNG, PRNGSeed} from '../../../sim/prng';\r\nimport type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';\r\n\r\nexport class RandomGen2Teams extends RandomGen3Teams {\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\tElectric: (movePool, moves, abilities, types, counter) => !counter.get('Electric'),\r\n\t\t\tFire: (movePool, moves, abilities, types, counter) => !counter.get('Fire'),\r\n\t\t\tFlying: (movePool, moves, abilities, types, counter) => !counter.get('Flying') && types.has('Ground'),\r\n\t\t\tGround: (movePool, moves, abilities, types, counter) => !counter.get('Ground'),\r\n\t\t\tIce: (movePool, moves, abilities, types, counter) => !counter.get('Ice'),\r\n\t\t\tNormal: (movePool, moves, abilities, types, counter) => !counter.get('Normal') && counter.setupType === 'Physical',\r\n\t\t\tPsychic: (movePool, moves, abilities, types, counter) => !counter.get('Psychic') && types.has('Grass'),\r\n\t\t\tRock: (movePool, moves, abilities, types, counter, species) => !counter.get('Rock') && species.baseStats.atk > 60,\r\n\t\t\tWater: (movePool, moves, abilities, types, counter) => !counter.get('Water'),\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 = {},\r\n\t\tcounter: MoveCounter,\r\n\t\tmovePool: string[],\r\n\t\tteamDetails: RandomTeamsTypes.TeamDetails,\r\n\t): {cull: boolean, isSetup?: boolean} {\r\n\t\tconst restTalk = moves.has('rest') && moves.has('sleeptalk');\r\n\r\n\t\tswitch (move.id) {\r\n\t\t// Set up once and only if we have the moves for it\r\n\t\tcase 'bellydrum': case 'curse': case 'meditate': case 'screech': case 'swordsdance':\r\n\t\t\treturn {\r\n\t\t\t\tcull: (\r\n\t\t\t\t\t(counter.setupType !== 'Physical' || counter.get('physicalsetup') > 1) ||\r\n\t\t\t\t\t(!counter.get('Physical') || counter.damagingMoves.size < 2 && !moves.has('batonpass') && !moves.has('sleeptalk'))\r\n\t\t\t\t),\r\n\t\t\t\tisSetup: true,\r\n\t\t\t};\r\n\r\n\t\t// Not very useful without their supporting moves\r\n\t\tcase 'batonpass':\r\n\t\t\treturn {cull: !counter.setupType && !counter.get('speedsetup') && !moves.has('meanlook')};\r\n\t\tcase 'meanlook':\r\n\t\t\treturn {cull: movePool.includes('perishsong')};\r\n\t\tcase 'nightmare':\r\n\t\t\treturn {cull: !moves.has('lovelykiss') && !moves.has('sleeppowder')};\r\n\t\tcase 'swagger':\r\n\t\t\treturn {cull: !moves.has('substitute')};\r\n\r\n\t\t// Bad after setup\r\n\t\tcase 'charm': case 'counter':\r\n\t\t\treturn {cull: !!counter.setupType};\r\n\t\tcase 'haze':\r\n\t\t\treturn {cull: !!counter.setupType || restTalk};\r\n\t\tcase 'reflect': case 'lightscreen':\r\n\t\t\treturn {cull: !!counter.setupType || moves.has('rest')};\r\n\r\n\t\t// Ineffective to have both\r\n\t\tcase 'doubleedge':\r\n\t\t\treturn {cull: moves.has('bodyslam') || moves.has('return')};\r\n\t\tcase 'explosion': case 'selfdestruct':\r\n\t\t\treturn {cull: moves.has('softboiled') || restTalk};\r\n\t\tcase 'extremespeed':\r\n\t\t\treturn {cull: moves.has('bodyslam') || restTalk};\r\n\t\tcase 'hyperbeam':\r\n\t\t\treturn {cull: moves.has('rockslide')};\r\n\t\tcase 'rapidspin':\r\n\t\t\treturn {cull: !!teamDetails.rapidSpin || !!counter.setupType || moves.has('sleeptalk')};\r\n\t\tcase 'return':\r\n\t\t\treturn {cull: moves.has('bodyslam')};\r\n\t\tcase 'surf':\r\n\t\t\treturn {cull: moves.has('hydropump')};\r\n\t\tcase 'thunder':\r\n\t\t\treturn {cull: moves.has('thunderbolt')};\r\n\t\tcase 'razorleaf':\r\n\t\t\treturn {cull: moves.has('swordsdance') && movePool.includes('sludgebomb')};\r\n\t\tcase 'icebeam':\r\n\t\t\treturn {cull: moves.has('dragonbreath')};\r\n\t\tcase 'seismictoss':\r\n\t\t\treturn {cull: moves.has('rest') || moves.has('sleeptalk')};\r\n\t\tcase 'destinybond':\r\n\t\t\treturn {cull: moves.has('explosion')};\r\n\t\tcase 'pursuit':\r\n\t\t\treturn {cull: moves.has('crunch') && moves.has('solarbeam')};\r\n\t\tcase 'thief':\r\n\t\t\treturn {cull: moves.has('rest') || moves.has('substitute')};\r\n\t\tcase 'irontail':\r\n\t\t\treturn {cull: types.has('Ground') && movePool.includes('earthquake')};\r\n\r\n\t\t// Status and illegal move rejections\r\n\t\tcase 'confuseray': case 'encore': case 'roar': case 'whirlwind':\r\n\t\t\treturn {cull: restTalk};\r\n\t\tcase 'lovelykiss':\r\n\t\t\treturn {cull: ['healbell', 'moonlight', 'morningsun', 'sleeptalk'].some(m => moves.has(m))};\r\n\t\tcase 'sleeptalk':\r\n\t\t\treturn {cull: moves.has('curse') && counter.get('stab') >= 2};\r\n\t\tcase 'softboiled':\r\n\t\t\treturn {cull: movePool.includes('swordsdance')};\r\n\t\tcase 'spikes':\r\n\t\t\treturn {cull: !!teamDetails.spikes};\r\n\t\tcase 'substitute':\r\n\t\t\treturn {cull: moves.has('agility') || moves.haLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAIrB,MAAM,wBAAwB,oBAAAA,QAAgB;AAAA,EAGpD,YAAY,QAAyB,MAA8B;AAClE,UAAM,QAAQ,IAAI;AAHnB,sBAA0D,QAAQ,oBAAoB;AAIrF,SAAK,0BAA0B;AAAA,MAC9B,UAAU,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,UAAU;AAAA,MACjF,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,MAAM;AAAA,MACzE,QAAQ,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,QAAQ,KAAK,MAAM,IAAI,QAAQ;AAAA,MACpG,QAAQ,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,QAAQ;AAAA,MAC7E,KAAK,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,KAAK;AAAA,MACvE,QAAQ,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,QAAQ,KAAK,QAAQ,cAAc;AAAA,MACxG,SAAS,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,SAAS,KAAK,MAAM,IAAI,OAAO;AAAA,MACrG,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,SAAS,YAAY,CAAC,QAAQ,IAAI,MAAM,KAAK,QAAQ,UAAU,MAAM;AAAA,MAC/G,OAAO,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,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AO,OLine truncated
|
||||
"names": ["RandomGen3Teams"]
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
"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 = {
|
||||
obtainablemoves: {
|
||||
inherit: true,
|
||||
banlist: [
|
||||
// https://www.smogon.com/forums/threads/implementing-all-old-gens-in-ps-testers-required.3483261/post-5420130
|
||||
// confirmed by Marty
|
||||
"Kakuna + Poison Sting + Harden",
|
||||
"Kakuna + String Shot + Harden",
|
||||
"Beedrill + Poison Sting + Harden",
|
||||
"Beedrill + String Shot + Harden",
|
||||
// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/
|
||||
"Nidoking + Fury Attack + Thrash",
|
||||
"Exeggutor + Poison Powder + Stomp",
|
||||
"Exeggutor + Sleep Powder + Stomp",
|
||||
"Exeggutor + Stun Spore + Stomp",
|
||||
"Eevee + Tackle + Growl",
|
||||
"Vaporeon + Tackle + Growl",
|
||||
"Jolteon + Tackle + Growl",
|
||||
"Jolteon + Focus Energy + Thunder Shock",
|
||||
"Flareon + Tackle + Growl",
|
||||
"Flareon + Focus Energy + Ember",
|
||||
// https://github.com/smogon/pokemon-showdown/pull/8869
|
||||
"Rapidash + Pay Day + Growl",
|
||||
"Rapidash + Pay Day + Tail Whip",
|
||||
"Fearow + Pay Day + Peck",
|
||||
"Fearow + Pay Day + Mirror Move",
|
||||
"Magikarp + Dragon Rage + Tackle"
|
||||
]
|
||||
},
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Sleep Clause Mod", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Items Clause", "Evasion Moves Clause", "Endless battle Clause", "HP Percentage Mod", "Cancel Mod"],
|
||||
banlist: [
|
||||
"Hypnosis + Mean Look",
|
||||
"Hypnosis + Spider Web",
|
||||
"Lovely Kiss + Mean Look",
|
||||
"Lovely Kiss + Spider Web",
|
||||
"Sing + Mean Look",
|
||||
"Sing + Spider Web",
|
||||
"Sleep Powder + Mean Look",
|
||||
"Sleep Powder + Spider Web",
|
||||
"Spore + Mean Look",
|
||||
"Spore + Spider Web"
|
||||
]
|
||||
},
|
||||
nintendocup2000movelegality: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Nintendo Cup 2000 Move Legality",
|
||||
desc: "Prevents Pok\xE9mon from having moves that would only be obtainable in Pok\xE9mon Crystal.",
|
||||
onValidateSet(set) {
|
||||
const illegalCombos = {
|
||||
arbok: { crunch: "E" },
|
||||
sandslash: { metalclaw: "E" },
|
||||
golduck: { crosschop: "E" },
|
||||
marowak: { swordsdance: "E" },
|
||||
electabuzz: { crosschop: "E" },
|
||||
magmar: { crosschop: "E" },
|
||||
jolteon: { batonpass: "L" },
|
||||
vaporeon: { batonpass: "L" },
|
||||
flareon: { batonpass: "L" },
|
||||
espeon: { batonpass: "L" },
|
||||
umbreon: { batonpass: "L" },
|
||||
dragonite: { extremespeed: "S" },
|
||||
meganium: { swordsdance: "E" },
|
||||
typhlosion: { submission: "E" },
|
||||
ariados: { agility: "L" },
|
||||
yanma: { wingattack: "L" },
|
||||
murkrow: { skyattack: "E" },
|
||||
qwilfish: { spikes: "L" },
|
||||
sneasel: { metalclaw: "L" },
|
||||
ursaring: { metalclaw: "E" },
|
||||
piloswine: { amnesia: "L" },
|
||||
skarmory: { skyattack: "E" },
|
||||
donphan: { watergun: "E" },
|
||||
suicune: { aurorabeam: "L" },
|
||||
dugtrio: { triattack: "L" },
|
||||
magneton: { triattack: "L" },
|
||||
cloyster: { spikes: "L" }
|
||||
};
|
||||
const notUsableAsTM = ["icebeam", "flamethrower", "thunderbolt"];
|
||||
const species = this.dex.species.get(set.species || set.name);
|
||||
const learnsetData = { ...this.dex.data.Learnsets[species.id]?.learnset || {} };
|
||||
const legalityList = illegalCombos[species.id];
|
||||
const problems = [];
|
||||
let prevo = species.prevo;
|
||||
while (prevo) {
|
||||
const prevoSpecies = this.dex.species.get(prevo);
|
||||
const prevoLsetData = this.dex.data.Learnsets[prevoSpecies.id]?.learnset || {};
|
||||
for (const moveid in prevoLsetData) {
|
||||
if (!(moveid in learnsetData)) {
|
||||
learnsetData[moveid] = prevoLsetData[moveid];
|
||||
} else {
|
||||
learnsetData[moveid].push(...prevoLsetData[moveid]);
|
||||
}
|
||||
}
|
||||
prevo = prevoSpecies.prevo;
|
||||
}
|
||||
for (const moveid of set.moves.map(this.toID)) {
|
||||
if (!learnsetData[moveid])
|
||||
continue;
|
||||
if (legalityList) {
|
||||
const list = learnsetData[moveid].filter((x) => !x.includes(legalityList[moveid]));
|
||||
if (!list.length) {
|
||||
switch (legalityList[moveid]) {
|
||||
case "L":
|
||||
const levels = new Set(learnsetData[moveid].filter((x) => x.includes(legalityList[moveid])).map((x) => x.slice(2)));
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It learns ${this.dex.moves.get(moveid).name} in Pok\xE9mon Crystal at the following levels: ${[...levels].join(", ")})`
|
||||
);
|
||||
break;
|
||||
case "S":
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It only learns ${this.dex.moves.get(moveid).name} in Pok\xE9mon Crystal via special in-game events.)`
|
||||
);
|
||||
break;
|
||||
case "E":
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It only learns ${this.dex.moves.get(moveid).name} as an egg move in Pok\xE9mon Crystal.)`
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const id of notUsableAsTM) {
|
||||
if (moveid === id && learnsetData[id] && !learnsetData[id].filter((x) => !x.includes("2T")).length) {
|
||||
problems.push(`${species.name} can't learn ${this.dex.moves.get(id).name}.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (problems.some((x) => notUsableAsTM.map((y) => this.dex.moves.get(y).name).some((z) => x.includes(z)))) {
|
||||
problems.push(
|
||||
`(${notUsableAsTM.map((y) => this.dex.moves.get(y).name).join(" / ")} aren't learnable outside of Pok\xE9mon Crystal.)`
|
||||
);
|
||||
}
|
||||
return problems;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tobtainablemoves: {\r\n\t\tinherit: true,\r\n\t\tbanlist: [\r\n\t\t\t// https://www.smogon.com/forums/threads/implementing-all-old-gens-in-ps-testers-required.3483261/post-5420130\r\n\t\t\t// confirmed by Marty\r\n\t\t\t'Kakuna + Poison Sting + Harden', 'Kakuna + String Shot + Harden',\r\n\t\t\t'Beedrill + Poison Sting + Harden', 'Beedrill + String Shot + Harden',\r\n\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/\r\n\t\t\t'Nidoking + Fury Attack + Thrash',\r\n\t\t\t'Exeggutor + Poison Powder + Stomp', 'Exeggutor + Sleep Powder + Stomp', 'Exeggutor + Stun Spore + Stomp',\r\n\t\t\t'Eevee + Tackle + Growl',\r\n\t\t\t'Vaporeon + Tackle + Growl',\r\n\t\t\t'Jolteon + Tackle + Growl', 'Jolteon + Focus Energy + Thunder Shock',\r\n\t\t\t'Flareon + Tackle + Growl', 'Flareon + Focus Energy + Ember',\r\n\r\n\t\t\t// https://github.com/smogon/pokemon-showdown/pull/8869\r\n\t\t\t'Rapidash + Pay Day + Growl',\r\n\t\t\t'Rapidash + Pay Day + Tail Whip',\r\n\t\t\t'Fearow + Pay Day + Peck',\r\n\t\t\t'Fearow + Pay Day + Mirror Move',\r\n\t\t\t'Magikarp + Dragon Rage + Tackle',\r\n\t\t],\r\n\t},\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Sleep Clause Mod', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Items Clause', 'Evasion Moves Clause', 'Endless battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t\tbanlist: [\r\n\t\t\t'Hypnosis + Mean Look',\r\n\t\t\t'Hypnosis + Spider Web',\r\n\t\t\t'Lovely Kiss + Mean Look',\r\n\t\t\t'Lovely Kiss + Spider Web',\r\n\t\t\t'Sing + Mean Look',\r\n\t\t\t'Sing + Spider Web',\r\n\t\t\t'Sleep Powder + Mean Look',\r\n\t\t\t'Sleep Powder + Spider Web',\r\n\t\t\t'Spore + Mean Look',\r\n\t\t\t'Spore + Spider Web',\r\n\t\t],\r\n\t},\r\n\tnintendocup2000movelegality: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Nintendo Cup 2000 Move Legality',\r\n\t\tdesc: \"Prevents Pok\\u00e9mon from having moves that would only be obtainable in Pok\\u00e9mon Crystal.\",\r\n\t\tonValidateSet(set) {\r\n\t\t\tconst illegalCombos: {[speciesid: string]: {[moveid: string]: 'E' | 'L' | 'S'}} = {\r\n\t\t\t\tarbok: {crunch: 'E'},\r\n\t\t\t\tsandslash: {metalclaw: 'E'},\r\n\t\t\t\tgolduck: {crosschop: 'E'},\r\n\t\t\t\tmarowak: {swordsdance: 'E'},\r\n\t\t\t\telectabuzz: {crosschop: 'E'},\r\n\t\t\t\tmagmar: {crosschop: 'E'},\r\n\t\t\t\tjolteon: {batonpass: 'L'},\r\n\t\t\t\tvaporeon: {batonpass: 'L'},\r\n\t\t\t\tflareon: {batonpass: 'L'},\r\n\t\t\t\tespeon: {batonpass: 'L'},\r\n\t\t\t\tumbreon: {batonpass: 'L'},\r\n\t\t\t\tdragonite: {extremespeed: 'S'},\r\n\t\t\t\tmeganium: {swordsdance: 'E'},\r\n\t\t\t\ttyphlosion: {submission: 'E'},\r\n\t\t\t\tariados: {agility: 'L'},\r\n\t\t\t\tyanma: {wingattack: 'L'},\r\n\t\t\t\tmurkrow: {skyattack: 'E'},\r\n\t\t\t\tqwilfish: {spikes: 'L'},\r\n\t\t\t\tsneasel: {metalclaw: 'L'},\r\n\t\t\t\tursaring: {metalclaw: 'E'},\r\n\t\t\t\tpiloswine: {amnesia: 'L'},\r\n\t\t\t\tskarmory: {skyattack: 'E'},\r\n\t\t\t\tdonphan: {watergun: 'E'},\r\n\t\t\t\tsuicune: {aurorabeam: 'L'},\r\n\t\t\t\tdugtrio: {triattack: 'L'},\r\n\t\t\t\tmagneton: {triattack: 'L'},\r\n\t\t\t\tcloyster: {spikes: 'L'},\r\n\t\t\t};\r\n\t\t\tconst notUsableAsTM = ['icebeam', 'flamethrower', 'thunderbolt'];\r\n\t\t\tconst species = this.dex.species.get(set.species || set.name);\r\n\t\t\tconst learnsetData = {...(this.dex.data.Learnsets[species.id]?.learnset || {})};\r\n\t\t\tconst legalityList = illegalCombos[species.id];\r\n\t\t\tconst problems = [];\r\n\t\t\tlet prevo = species.prevo;\r\n\t\t\twhile (prevo) {\r\n\t\t\t\tconst prevoSpecies = this.dex.species.get(prevo);\r\n\t\t\t\tconst prevoLsetData = this.dex.data.Learnsets[prevoSpecies.id]?.learnset || {};\r\n\t\t\t\tfor (const moveid in prevoLsetData) {\r\n\t\t\t\t\tif (!(moveid in learnsetData)) {\r\n\t\t\t\t\t\tlearnsetData[moveid] = prevoLsetData[moveid];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlearnsetData[moveid].push(...prevoLsetData[moveid]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tprevo = prevoSpecies.prevo;\r\n\t\t\t}\r\n\t\t\tfor (const moveid of set.moves.map(this.toID)) {\r\n\t\t\t\t// Diglett Magnemite Shellder\r\n\t\t\t\tif (!learnsetData[moveid]) continue;\r\n\t\t\t\tif (legalityList) {\r\n\t\t\t\t\tconst list = learnsetData[moveid].filter(x => !x.includes(legalityList[moveid]));\r\n\t\t\t\t\tif (!list.length) {\r\n\t\t\t\t\t\tswitch (legalityList[moveid]) {\r\n\t\t\t\t\t\tcase 'L':\r\n\t\t\t\t\t\t\t// Converted to a set to remove duplicate entries\r\n\t\t\t\t\t\t\tconst levels = new Set(learnsetData[moveid].filter(x => x.includes(legalityList[moveid])).map(x => x.slice(2)));\r\n\t\t\t\t\t\t\tproblems.push(\r\n\t\t\t\t\t\t\t\t`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,\r\n\t\t\t\t\t\t\t\t`(It learns ${this.dex.moves.get(moveid).name} in Pok\\u00e9mon Crystal at the following levels: ${[...levels].join(', ')})`\r\n\t\t\t\t\t\t\t)Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,iBAAiB;AAAA,IAChB,SAAS;AAAA,IACT,SAAS;AAAA;AAAA;AAAA,MAGR;AAAA,MAAkC;AAAA,MAClC;AAAA,MAAoC;AAAA;AAAA,MAGpC;AAAA,MACA;AAAA,MAAqC;AAAA,MAAoC;AAAA,MAC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,IAAI,OAAK,KAAK,IAAI,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,KAAK;AAAA,QAClE;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,656 @@
|
||||
"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: "gen3",
|
||||
gen: 2,
|
||||
pokemon: {
|
||||
inherit: true,
|
||||
getStat(statName, unboosted, unmodified, fastReturn) {
|
||||
if (statName === "hp")
|
||||
throw new Error("Please read `maxhp` directly");
|
||||
let stat = this.storedStats[statName];
|
||||
if (!unboosted) {
|
||||
let boost = this.boosts[statName];
|
||||
if (boost > 6)
|
||||
boost = 6;
|
||||
if (boost < -6)
|
||||
boost = -6;
|
||||
if (boost >= 0) {
|
||||
const boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];
|
||||
stat = Math.floor(stat * boostTable[boost]);
|
||||
} else {
|
||||
const numerators = [100, 66, 50, 40, 33, 28, 25];
|
||||
stat = Math.floor(stat * numerators[-boost] / 100);
|
||||
}
|
||||
}
|
||||
if (this.status === "par" && statName === "spe") {
|
||||
stat = Math.floor(stat / 4);
|
||||
}
|
||||
if (!unmodified) {
|
||||
if (this.status === "brn" && statName === "atk") {
|
||||
stat = Math.floor(stat / 2);
|
||||
}
|
||||
}
|
||||
stat = this.battle.clampIntRange(stat, 1, 999);
|
||||
if (fastReturn)
|
||||
return stat;
|
||||
if (!unboosted) {
|
||||
if (statName === "def" && this.side.sideConditions["reflect"] || statName === "spd" && this.side.sideConditions["lightscreen"]) {
|
||||
stat *= 2;
|
||||
}
|
||||
}
|
||||
if (["Cubone", "Marowak"].includes(this.baseSpecies.name) && this.item === "thickclub" && statName === "atk" || this.baseSpecies.name === "Pikachu" && this.item === "lightball" && statName === "spa") {
|
||||
stat *= 2;
|
||||
} else if (this.baseSpecies.name === "Ditto" && this.item === "metalpowder" && ["def", "spd"].includes(statName)) {
|
||||
stat = Math.floor(stat * 1.5);
|
||||
}
|
||||
return stat;
|
||||
},
|
||||
boostBy(boost) {
|
||||
let delta = 0;
|
||||
let i;
|
||||
for (i in boost) {
|
||||
delta = boost[i];
|
||||
if (delta > 0 && this.getStat(i, false, true) === 999) {
|
||||
delta = 0;
|
||||
continue;
|
||||
}
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
delta -= this.boosts[i] - 6;
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
if (this.boosts[i] < -6) {
|
||||
delta -= this.boosts[i] - -6;
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
}
|
||||
return delta;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
inherit: true,
|
||||
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
|
||||
let move = this.dex.getActiveMove(moveOrMoveName);
|
||||
let target = this.battle.getTarget(pokemon, move, targetLoc);
|
||||
if (!sourceEffect && move.id !== "struggle") {
|
||||
const changedMove = this.battle.runEvent("OverrideAction", pokemon, target, move);
|
||||
if (changedMove && changedMove !== true) {
|
||||
move = this.dex.getActiveMove(changedMove);
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
}
|
||||
if (!target && target !== false)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
if (pokemon.moveThisTurn) {
|
||||
this.battle.debug("" + pokemon.fullname + " INCONSISTENT STATE, ALREADY MOVED: " + pokemon.moveThisTurn);
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
if (!this.battle.runEvent("BeforeMove", pokemon, target, move)) {
|
||||
this.battle.runEvent("MoveAborted", pokemon, target, move);
|
||||
this.battle.clearActiveMove(true);
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
return;
|
||||
}
|
||||
if (move.beforeMoveCallback) {
|
||||
if (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
pokemon.lastDamage = 0;
|
||||
let lockedMove = this.battle.runEvent("LockMove", pokemon);
|
||||
if (lockedMove === true)
|
||||
lockedMove = false;
|
||||
if (!lockedMove) {
|
||||
if (!pokemon.deductPP(move, null, target) && move.id !== "struggle") {
|
||||
this.battle.add("cant", pokemon, "nopp", move);
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
pokemon.moveUsed(move);
|
||||
this.battle.actions.useMove(move, pokemon, target, sourceEffect);
|
||||
this.battle.singleEvent("AfterMove", move, null, pokemon, target, move);
|
||||
if (!move.selfSwitch && pokemon.side.foe.active[0].hp)
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
},
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
const positiveBoostTable = [1, 1.33, 1.66, 2, 2.33, 2.66, 3];
|
||||
const negativeBoostTable = [1, 0.75, 0.6, 0.5, 0.43, 0.36, 0.33];
|
||||
const doSelfDestruct = true;
|
||||
let damage = 0;
|
||||
if (move.selfdestruct && doSelfDestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
let hitResult = this.battle.singleEvent("PrepareHit", move, {}, target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
this.battle.runEvent("PrepareHit", pokemon, target, move);
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return false;
|
||||
}
|
||||
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
|
||||
if (move.target === "all") {
|
||||
hitResult = this.battle.runEvent("TryHitField", target, pokemon, move);
|
||||
} else {
|
||||
hitResult = this.battle.runEvent("TryHitSide", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return this.moveHit(target, pokemon, move);
|
||||
}
|
||||
hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, {}, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
let accuracy = move.accuracy;
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true) {
|
||||
accuracy = Math.floor(accuracy * 255 / 100);
|
||||
if (move.ohko) {
|
||||
if (pokemon.level >= target.level) {
|
||||
accuracy += (pokemon.level - target.level) * 2;
|
||||
accuracy = Math.min(accuracy, 255);
|
||||
} else {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!move.ignoreAccuracy) {
|
||||
if (pokemon.boosts.accuracy > 0) {
|
||||
accuracy *= positiveBoostTable[pokemon.boosts.accuracy];
|
||||
} else {
|
||||
accuracy *= negativeBoostTable[-pokemon.boosts.accuracy];
|
||||
}
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
if (target.boosts.evasion > 0 && !move.ignorePositiveEvasion) {
|
||||
accuracy *= negativeBoostTable[target.boosts.evasion];
|
||||
} else if (target.boosts.evasion < 0) {
|
||||
accuracy *= positiveBoostTable[-target.boosts.evasion];
|
||||
}
|
||||
}
|
||||
accuracy = Math.min(Math.floor(accuracy), 255);
|
||||
accuracy = Math.max(accuracy, 1);
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
|
||||
if (accuracy !== true)
|
||||
accuracy = Math.max(accuracy, 0);
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true && accuracy !== 255 && !this.battle.randomChance(accuracy, 256)) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
damage = false;
|
||||
return damage;
|
||||
}
|
||||
move.totalDamage = 0;
|
||||
pokemon.lastDamage = 0;
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let nullDamage = true;
|
||||
let moveDamage;
|
||||
const isSleepUsable = move.sleepUsable || this.dex.moves.get(move.sourceEffect).sleepUsable;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
if (pokemon.status === "slp" && !isSleepUsable)
|
||||
break;
|
||||
move.hit = i + 1;
|
||||
if (move.hit === hits)
|
||||
move.lastHit = true;
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
if (nullDamage && (moveDamage || moveDamage === 0 || moveDamage === void 0))
|
||||
nullDamage = false;
|
||||
damage = moveDamage || 0;
|
||||
move.totalDamage += damage;
|
||||
this.battle.eachEvent("Update");
|
||||
}
|
||||
if (i === 0)
|
||||
return 1;
|
||||
if (nullDamage)
|
||||
damage = false;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
move.totalDamage = damage;
|
||||
}
|
||||
if (move.category !== "Status") {
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
}
|
||||
if (move.ohko)
|
||||
this.battle.add("-ohko");
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
if (move.recoil && move.totalDamage) {
|
||||
this.battle.damage(this.calcRecoilDamage(move.totalDamage, move), pokemon, target, "recoil");
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
moveHit(target, pokemon, move, moveData, isSecondary, isSelf) {
|
||||
let damage = void 0;
|
||||
move = this.dex.getActiveMove(move);
|
||||
if (!moveData)
|
||||
moveData = move;
|
||||
let hitResult = true;
|
||||
if (move.target === "all" && !isSelf) {
|
||||
hitResult = this.battle.singleEvent("TryHitField", moveData, {}, target, pokemon, move);
|
||||
} else if ((move.target === "foeSide" || move.target === "allySide") && !isSelf) {
|
||||
hitResult = this.battle.singleEvent("TryHitSide", moveData, {}, target ? target.side : null, pokemon, move);
|
||||
} else if (target) {
|
||||
hitResult = this.battle.singleEvent("TryHit", moveData, {}, target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
if (target && !isSecondary && !isSelf) {
|
||||
hitResult = this.battle.runEvent("TryPrimaryHit", target, pokemon, moveData);
|
||||
if (hitResult === 0) {
|
||||
hitResult = true;
|
||||
target = null;
|
||||
}
|
||||
}
|
||||
if (target && isSecondary && !moveData.self) {
|
||||
hitResult = true;
|
||||
}
|
||||
if (!hitResult) {
|
||||
return false;
|
||||
}
|
||||
if (target) {
|
||||
let didSomething = false;
|
||||
damage = this.getDamage(pokemon, target, moveData);
|
||||
if ((damage || damage === 0) && !target.fainted) {
|
||||
damage = this.battle.damage(damage, target, pokemon, move);
|
||||
if (!(damage || damage === 0)) {
|
||||
this.battle.debug("damage interrupted");
|
||||
return false;
|
||||
}
|
||||
didSomething = true;
|
||||
}
|
||||
if (damage === false || damage === null) {
|
||||
if (damage === false && !isSecondary && !isSelf) {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
this.battle.debug("damage calculation interrupted");
|
||||
return false;
|
||||
}
|
||||
if (moveData.boosts && !target.fainted) {
|
||||
if (pokemon.volatiles["lockon"] && target === pokemon.volatiles["lockon"].source && target.isSemiInvulnerable() && !isSelf) {
|
||||
if (!isSecondary)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.boost(moveData.boosts, target, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.heal && !target.fainted) {
|
||||
const d = target.heal(Math.round(target.maxhp * moveData.heal[0] / moveData.heal[1]));
|
||||
if (!d && d !== 0) {
|
||||
this.battle.add("-fail", target);
|
||||
this.battle.debug("heal interrupted");
|
||||
return false;
|
||||
}
|
||||
this.battle.add("-heal", target, target.getHealth);
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.status) {
|
||||
hitResult = target.trySetStatus(moveData.status, pokemon, move);
|
||||
if (!hitResult && move.status)
|
||||
return hitResult;
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.forceStatus) {
|
||||
hitResult = target.setStatus(moveData.forceStatus, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.volatileStatus) {
|
||||
hitResult = target.addVolatile(moveData.volatileStatus, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.sideCondition) {
|
||||
hitResult = target.side.addSideCondition(moveData.sideCondition, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.weather) {
|
||||
hitResult = this.battle.field.setWeather(moveData.weather, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.pseudoWeather) {
|
||||
hitResult = this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.forceSwitch) {
|
||||
if (this.battle.canSwitch(target.side))
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.selfSwitch) {
|
||||
if (this.battle.canSwitch(pokemon.side))
|
||||
didSomething = true;
|
||||
}
|
||||
hitResult = null;
|
||||
if (move.target === "all" && !isSelf) {
|
||||
if (moveData.onHitField)
|
||||
hitResult = this.battle.singleEvent("HitField", moveData, {}, target, pokemon, move);
|
||||
} else if ((move.target === "foeSide" || move.target === "allySide") && !isSelf) {
|
||||
if (moveData.onHitSide)
|
||||
hitResult = this.battle.singleEvent("HitSide", moveData, {}, target.side, pokemon, move);
|
||||
} else {
|
||||
if (moveData.onHit)
|
||||
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
|
||||
if (!isSelf && !isSecondary) {
|
||||
this.battle.runEvent("Hit", target, pokemon, move);
|
||||
}
|
||||
if (moveData.onAfterHit)
|
||||
hitResult = this.battle.singleEvent("AfterHit", moveData, {}, target, pokemon, move);
|
||||
}
|
||||
if (!hitResult && !didSomething && !moveData.self && !moveData.selfdestruct) {
|
||||
if (!isSelf && !isSecondary) {
|
||||
if (hitResult === false || didSomething === false)
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
this.battle.debug("move failed because it did nothing");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (moveData.self) {
|
||||
if (!isSecondary && moveData.self.boosts)
|
||||
this.battle.random(100);
|
||||
this.moveHit(pokemon, pokemon, move, moveData.self, isSecondary, true);
|
||||
}
|
||||
if (target?.hp && moveData.secondaries && this.battle.runEvent("TrySecondaryHit", target, pokemon, moveData)) {
|
||||
for (const secondary of moveData.secondaries) {
|
||||
if (secondary.status && ["brn", "frz"].includes(secondary.status) && target.hasType(move.type)) {
|
||||
this.battle.debug("Target immune to [" + secondary.status + "]");
|
||||
continue;
|
||||
}
|
||||
if (secondary.volatileStatus === "flinch" && ["slp", "frz"].includes(target.status) && !secondary.kingsrock) {
|
||||
this.battle.debug("Cannot flinch a sleeping or frozen target");
|
||||
continue;
|
||||
}
|
||||
if (!move.multihit || move.lastHit) {
|
||||
const effectChance = Math.floor((secondary.chance || 100) * 255 / 100);
|
||||
if (typeof secondary.chance === "undefined" || this.battle.randomChance(effectChance, 256)) {
|
||||
this.moveHit(target, pokemon, move, secondary, true, isSelf);
|
||||
} else if (effectChance === 255) {
|
||||
this.battle.hint("In Gen 2, moves with a 100% secondary effect chance will not trigger in 1/256 uses.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (target && target.hp > 0 && pokemon.hp > 0 && moveData.forceSwitch && this.battle.canSwitch(target.side)) {
|
||||
hitResult = this.battle.runEvent("DragOut", target, pokemon, move);
|
||||
if (hitResult) {
|
||||
this.dragIn(target.side, target.position);
|
||||
} else if (hitResult === false) {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
}
|
||||
if (move.selfSwitch && pokemon.hp) {
|
||||
pokemon.switchFlag = move.id;
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string") {
|
||||
move = this.dex.getActiveMove(move);
|
||||
} else if (typeof move === "number") {
|
||||
move = {
|
||||
basePower: move,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
flags: {}
|
||||
};
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
return target.maxhp;
|
||||
}
|
||||
if (move.damageCallback) {
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
}
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
}
|
||||
if (move.damage) {
|
||||
return move.damage;
|
||||
}
|
||||
move.category = this.battle.getCategory(move);
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower) {
|
||||
if (basePower === 0)
|
||||
return;
|
||||
return basePower;
|
||||
}
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let critRatio = this.battle.runEvent("ModifyCritRatio", source, target, move, move.critRatio || 0);
|
||||
critRatio = this.battle.clampIntRange(critRatio, 0, 5);
|
||||
const critMult = [0, 16, 8, 4, 3, 2];
|
||||
let isCrit = move.willCrit || false;
|
||||
if (typeof move.willCrit === "undefined") {
|
||||
if (critRatio) {
|
||||
isCrit = this.battle.randomChance(1, critMult[critRatio]);
|
||||
}
|
||||
}
|
||||
if (isCrit && this.battle.runEvent("CriticalHit", target, null, move)) {
|
||||
target.getMoveHitData(move).crit = true;
|
||||
}
|
||||
if (basePower) {
|
||||
if (move.isConfusionSelfHit) {
|
||||
move.type = move.baseMoveType;
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
move.type = "???";
|
||||
} else {
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
}
|
||||
if (basePower && move.basePowerModifier) {
|
||||
basePower *= move.basePowerModifier;
|
||||
}
|
||||
}
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let level = source.level;
|
||||
if (move.allies) {
|
||||
this.battle.add("-activate", source, "move: Beat Up", "[of] " + move.allies[0].name);
|
||||
level = move.allies[0].level;
|
||||
}
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const atkType = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
|
||||
const defType = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
let unboosted = false;
|
||||
let noburndrop = false;
|
||||
if (isCrit) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
if (attacker.boosts[atkType] <= defender.boosts[defType]) {
|
||||
unboosted = true;
|
||||
noburndrop = true;
|
||||
}
|
||||
}
|
||||
let attack = attacker.getStat(atkType, unboosted, noburndrop);
|
||||
let defense = defender.getStat(defType, unboosted);
|
||||
if (move.allies) {
|
||||
attack = move.allies[0].species.baseStats.atk;
|
||||
move.allies.shift();
|
||||
defense = defender.species.baseStats.def;
|
||||
}
|
||||
if (move.ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
attack = attacker.getStat(atkType, true, true);
|
||||
}
|
||||
if (move.ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defense = target.getStat(defType, true, true);
|
||||
}
|
||||
if (move.id === "present") {
|
||||
const typeIndexes = {
|
||||
Normal: 0,
|
||||
Fighting: 1,
|
||||
Flying: 2,
|
||||
Poison: 3,
|
||||
Ground: 4,
|
||||
Rock: 5,
|
||||
Bug: 7,
|
||||
Ghost: 8,
|
||||
Steel: 9,
|
||||
Fire: 20,
|
||||
Water: 21,
|
||||
Grass: 22,
|
||||
Electric: 23,
|
||||
Psychic: 24,
|
||||
Ice: 25,
|
||||
Dragon: 26,
|
||||
Dark: 27
|
||||
};
|
||||
attack = 10;
|
||||
const attackerLastType = attacker.getTypes().slice(-1)[0];
|
||||
const defenderLastType = defender.getTypes().slice(-1)[0];
|
||||
defense = typeIndexes[attackerLastType] || 1;
|
||||
level = typeIndexes[defenderLastType] || 1;
|
||||
this.battle.hint("Gen 2 Present has a glitched damage calculation using the secondary types of the Pokemon for the Attacker's Level and Defender's Defense.", true);
|
||||
}
|
||||
if (attack >= 256 || defense >= 256) {
|
||||
if (attack >= 1024 || defense >= 1024) {
|
||||
this.battle.hint("In Gen 2, a stat will roll over to a small number if it is larger than 1024.");
|
||||
}
|
||||
attack = this.battle.clampIntRange(Math.floor(attack / 4) % 256, 1);
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 4) % 256, 1);
|
||||
}
|
||||
if (move.selfdestruct && defType === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
let damage = level * 2;
|
||||
damage = Math.floor(damage / 5);
|
||||
damage += 2;
|
||||
damage *= basePower;
|
||||
damage *= attack;
|
||||
damage = Math.floor(damage / defense);
|
||||
damage = Math.floor(damage / 50);
|
||||
if (isCrit)
|
||||
damage *= 2;
|
||||
damage = Math.floor(this.battle.runEvent("ModifyDamage", attacker, defender, move, damage));
|
||||
damage = this.battle.clampIntRange(damage, 1, 997);
|
||||
damage += 2;
|
||||
if (type === "Water" && this.battle.field.isWeather("raindance") || type === "Fire" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage * 1.5);
|
||||
} else if ((type === "Fire" || move.id === "solarbeam") && this.battle.field.isWeather("raindance") || type === "Water" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
if (type !== "???" && source.hasType(type)) {
|
||||
damage += Math.floor(damage / 2);
|
||||
}
|
||||
const totalTypeMod = target.runEffectiveness(move);
|
||||
if (totalTypeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
damage *= 2;
|
||||
if (totalTypeMod >= 2) {
|
||||
damage *= 2;
|
||||
}
|
||||
}
|
||||
if (totalTypeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
damage = Math.floor(damage / 2);
|
||||
if (totalTypeMod <= -2) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
}
|
||||
if (!move.noDamageVariance && damage > 1) {
|
||||
damage *= this.battle.random(217, 256);
|
||||
damage = Math.floor(damage / 255);
|
||||
}
|
||||
if (basePower && !Math.floor(damage)) {
|
||||
return 1;
|
||||
}
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/scripts.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 2 scripts.\r\n */\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen3',\r\n\tgen: 2,\r\n\tpokemon: {\r\n\t\tinherit: true,\r\n\t\tgetStat(statName, unboosted, unmodified, fastReturn) {\r\n\t\t\t// @ts-ignore - type checking prevents 'hp' from being passed, but we're paranoid\r\n\t\t\tif (statName === 'hp') throw new Error(\"Please read `maxhp` directly\");\r\n\r\n\t\t\t// base stat\r\n\t\t\tlet stat = this.storedStats[statName];\r\n\r\n\t\t\t// Stat boosts.\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tlet boost = this.boosts[statName];\r\n\t\t\t\tif (boost > 6) boost = 6;\r\n\t\t\t\tif (boost < -6) boost = -6;\r\n\t\t\t\tif (boost >= 0) {\r\n\t\t\t\t\tconst boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];\r\n\t\t\t\t\tstat = Math.floor(stat * boostTable[boost]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst numerators = [100, 66, 50, 40, 33, 28, 25];\r\n\t\t\t\t\tstat = Math.floor(stat * numerators[-boost] / 100);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.status === 'par' && statName === 'spe') {\r\n\t\t\t\tstat = Math.floor(stat / 4);\r\n\t\t\t}\r\n\r\n\t\t\tif (!unmodified) {\r\n\t\t\t\t// Burn attack drop is checked when you get the attack stat upon switch in and used until switch out.\r\n\t\t\t\tif (this.status === 'brn' && statName === 'atk') {\r\n\t\t\t\t\tstat = Math.floor(stat / 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Gen 2 caps stats at 999 and min is 1.\r\n\t\t\tstat = this.battle.clampIntRange(stat, 1, 999);\r\n\t\t\tif (fastReturn) return stat;\r\n\r\n\t\t\t// Screens\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tif (\r\n\t\t\t\t\t(statName === 'def' && this.side.sideConditions['reflect']) ||\r\n\t\t\t\t\t(statName === 'spd' && this.side.sideConditions['lightscreen'])\r\n\t\t\t\t) {\r\n\t\t\t\t\tstat *= 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Handle boosting items\r\n\t\t\tif (\r\n\t\t\t\t(['Cubone', 'Marowak'].includes(this.baseSpecies.name) && this.item === 'thickclub' && statName === 'atk') ||\r\n\t\t\t\t(this.baseSpecies.name === 'Pikachu' && this.item === 'lightball' && statName === 'spa')\r\n\t\t\t) {\r\n\t\t\t\tstat *= 2;\r\n\t\t\t} else if (this.baseSpecies.name === 'Ditto' && this.item === 'metalpowder' && ['def', 'spd'].includes(statName)) {\r\n\t\t\t\tstat = Math.floor(stat * 1.5);\r\n\t\t\t}\r\n\r\n\t\t\treturn stat;\r\n\t\t},\r\n\t\tboostBy(boost) {\r\n\t\t\tlet delta = 0;\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in boost) {\r\n\t\t\t\tdelta = boost[i]!;\r\n\t\t\t\tif (delta > 0 && this.getStat(i as StatIDExceptHP, false, true) === 999) {\r\n\t\t\t\t\tdelta = 0;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - 6;\r\n\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - (-6);\r\n\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn delta;\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\tinherit: true,\r\n\t\trunMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {\r\n\t\t\tlet move = this.dex.getActiveMove(moveOrMoveName);\r\n\t\t\tlet target = this.battle.getTarget(pokemon, move, targetLoc);\r\n\t\t\tif (!sourceEffect && move.id !== 'struggle') {\r\n\t\t\t\tconst changedMove = this.battle.runEvent('OverrideAction', pokemon, target, move);\r\n\t\t\t\tif (changedMove && changedMove !== true) {\r\n\t\t\t\t\tmove = this.dex.getActiveMove(changedMove);\r\n\t\t\t\t\ttarget = this.battle.getRandomTarget(pokemon, move);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!target && target !== false) target = this.battle.getRandomTarget(pokemon, move);\r\n\r\n\t\t\tthis.battle.setActiveMove(move, pokemon, target);\r\n\r\n\t\t\tif (pokemon.moveThisTurn) {\r\n\t\t\t\t// THIS IS PURELY A SANITY CHECK\r\n\t\t\t\t// DO NOT TAKE ADVANTAGE OF THIS TO PREVENT A POKEMON FROM MOVING;\r\n\t\t\t\t// USE this.battle.queue.cancelMove INSTEAD\r\n\t\t\t\tthis.battle.debug('' + pokemon.fullname + ' INCONSISTENT STATE, ALREADY MOVED: ' + pokemon.moveThisTurn);\r\n\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!this.battle.runEvent('BeforeMove', pokemon, target, move)) {\r\n\t\t\t\tthis.battle.runEvent('MoveAborted', pokemon, target, move);\r\n\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t// This is only run for sleep and fully paralysed.\r\n\t\t\t\tthis.battle.runEvent('AfterMoveSelf', pokemon, target, move);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (move.beforeMoveCallback) {\r\n\t\t\t\tif (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {\r\n\t\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpokemon.lastDamage = 0;\r\n\t\t\tlet lockedMove = this.battle.runEvent('LockMove', pokemon);\r\n\t\t\tif (lockedMove === true) lockedMove = false;\r\n\t\t\tif (!lockedMove) {\r\n\t\t\t\tif (!pokemon.deductPP(move, null, target) && (move.id !== 'struggle')) {\r\n\t\t\t\t\tthis.battle.add('cant', pokemon, 'nLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,SAAS;AAAA,IACR,SAAS;AAAA,IACT,QAAQ,UAAU,WAAW,YAAY,YAAY;AAEpD,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AAY,KAAK,MAAM,IAAI,GAClC;AACD,eAAO;AAAA,MACR;AAEA,kBAAY,KAAK,OAAO,YAAY,eAAe,MAAM,CAAC,GAAG,QAAQ,SAAS,IAAI;AAClF,UAAI,cAAc,OAAO;AACxB,aAAK,OAAO,IAAI,WAAW,MAAM;AACjC,eAAO;AAAA,MACR;AAEA,kBAAY,KAAK,OAAO,SAAS,UAAU,QAAQ,SAAS,IAAI;AAChE,UAAI,CAAC,WAAW;AACf,YAAI,cAAc;AAAO,eAAK,OAAO,IAAI,SAAS,MAAM;AACxD,eAAO;AAAA,MACR;AAEA,UAAI,WAAW,KAAK;AACpB,UAAI,KAAK,WAAW;AACnB,mBAAW;AAAA,MACZ,OAAO;AACN,mBAAW,KAAK,OAAO,SAAS,YAAY,QAAQ,SAAS,MAAM,QAAQ;AAAA,MAC5E;AAEA,UAAI,aAAa,MAAM;AACtB,mBAAW,KAAK,MAAM,WAAW,MAAM,GAAG;AAC1C,YAAI,KAAK,MAAM;AACd,cAAI,QAAQ,SAAS,OAAO,OAAO;AAClC,yBAAa,QAAQ,QAAQ,OAAO,SAAS;AAC7C,uBAAW,KAAK,IAAI,UAAU,GAAG;AAAA,UAClC,OAAO;AACN,iBAAK,OAAO,IAAI,WAAW,QAAQ,QAAQLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
"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 = {
|
||||
fire: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
Bug: 2,
|
||||
Dark: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 0,
|
||||
Fire: 2,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 2,
|
||||
Ground: 1,
|
||||
Ice: 2,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Steel: 2,
|
||||
Water: 1
|
||||
}
|
||||
},
|
||||
ice: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
Bug: 0,
|
||||
Dark: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 1,
|
||||
Fire: 1,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 0,
|
||||
Ground: 0,
|
||||
Ice: 2,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Steel: 1,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
steel: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
sandstorm: 3,
|
||||
Bug: 2,
|
||||
Dark: 2,
|
||||
Dragon: 2,
|
||||
Electric: 0,
|
||||
Fairy: 2,
|
||||
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
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=typechart.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/typechart.ts"],
|
||||
"sourcesContent": ["export const TypeChart: {[k: string]: ModdedTypeData} = {\r\n\tfire: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 0,\r\n\t\t\tFire: 2,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tSteel: 2,\r\n\t\t\tWater: 1,\r\n\t\t},\r\n\t},\r\n\tice: {\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: 0,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tSteel: 1,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tsteel: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\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\tFairy: 2,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1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