Initial Modpack Upload

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

No files matched your search

+275
View File
@@ -0,0 +1,275 @@
"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: 2,
onAfterMoveSelf(pokemon) {
const toxicCounter = pokemon.volatiles["residualdmg"] ? pokemon.volatiles["residualdmg"].counter : 1;
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);
if (pokemon.volatiles["residualdmg"]) {
this.hint("In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.", true);
}
},
onAfterSwitchInSelf(pokemon) {
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
}
},
par: {
name: "par",
effectType: "Status",
onStart(target) {
this.add("-status", target, "par");
},
onBeforeMovePriority: 2,
onBeforeMove(pokemon) {
if (this.randomChance(63, 256)) {
this.add("cant", pokemon, "par");
pokemon.removeVolatile("bide");
if (pokemon.removeVolatile("twoturnmove")) {
if (pokemon.volatiles["invulnerability"]) {
this.hint(`In Gen 1, when a Dig/Fly user is fully paralyzed while semi-invulnerable, it will remain semi-invulnerable until it switches out or fully executes Dig/Fly`, true);
}
}
pokemon.removeVolatile("partialtrappinglock");
pokemon.removeVolatile("lockedmove");
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.startTime = this.random(1, 8);
this.effectState.time = this.effectState.startTime;
if (target.removeVolatile("nightmare")) {
this.add("-end", target, "Nightmare", "[silent]");
}
},
onBeforeMovePriority: 10,
onBeforeMove(pokemon, target, move) {
pokemon.statusState.time--;
if (pokemon.statusState.time > 0) {
this.add("cant", pokemon, "slp");
}
pokemon.lastMove = null;
return false;
},
onAfterMoveSelfPriority: 3,
onAfterMoveSelf(pokemon) {
if (pokemon.statusState.time <= 0)
pokemon.cureStatus();
}
},
frz: {
name: "frz",
effectType: "Status",
onStart(target) {
this.add("-status", target, "frz");
},
onBeforeMovePriority: 12,
onBeforeMove(pokemon, target, move) {
this.add("cant", pokemon, "frz");
pokemon.lastMove = null;
return false;
},
onAfterMoveSecondary(target, source, move) {
if (move.secondary && move.secondary.status === "brn") {
target.cureStatus();
}
}
},
psn: {
name: "psn",
effectType: "Status",
onStart(target) {
this.add("-status", target, "psn");
},
onAfterMoveSelfPriority: 2,
onAfterMoveSelf(pokemon) {
const toxicCounter = pokemon.volatiles["residualdmg"] ? pokemon.volatiles["residualdmg"].counter : 1;
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);
if (pokemon.volatiles["residualdmg"]) {
this.hint("In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.", true);
}
},
onAfterSwitchInSelf(pokemon) {
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
}
},
tox: {
inherit: true,
onAfterMoveSelfPriority: 2
},
confusion: {
name: "confusion",
// this is a volatile status
onStart(target, source, sourceEffect) {
if (sourceEffect && sourceEffect.id === "lockedmove") {
this.add("-start", target, "confusion", "[silent]");
} else {
this.add("-start", target, "confusion");
}
this.effectState.time = this.random(2, 6);
},
onEnd(target) {
this.add("-end", target, "confusion");
},
onBeforeMovePriority: 3,
onBeforeMove(pokemon, target) {
pokemon.volatiles["confusion"].time--;
if (!pokemon.volatiles["confusion"].time) {
pokemon.removeVolatile("confusion");
return;
}
this.add("-activate", pokemon, "confusion");
if (!this.randomChance(128, 256)) {
const damage = Math.floor(Math.floor((Math.floor(2 * pokemon.level / 5) + 2) * pokemon.getStat("atk") * 40 / pokemon.getStat("def", false)) / 50) + 2;
this.directDamage(damage, pokemon, target);
pokemon.removeVolatile("bide");
pokemon.removeVolatile("twoturnmove");
pokemon.removeVolatile("invulnerability");
pokemon.removeVolatile("partialtrappinglock");
pokemon.removeVolatile("lockedmove");
return false;
}
return;
}
},
flinch: {
name: "flinch",
duration: 1,
onStart(target) {
target.removeVolatile("mustrecharge");
},
onBeforeMovePriority: 4,
onBeforeMove(pokemon) {
if (!this.runEvent("Flinch", pokemon)) {
return;
}
this.add("cant", pokemon, "flinch");
return false;
}
},
trapped: {
name: "trapped",
noCopy: true,
onTrapPokemon(pokemon) {
if (!this.effectState.source?.isActive) {
delete pokemon.volatiles["trapped"];
return;
}
pokemon.trapped = true;
}
},
partiallytrapped: {
name: "partiallytrapped",
duration: 2,
onBeforeMovePriority: 4,
onBeforeMove(pokemon) {
this.add("cant", pokemon, "partiallytrapped");
return false;
}
},
partialtrappinglock: {
name: "partialtrappinglock",
durationCallback() {
const duration = this.sample([2, 2, 2, 3, 3, 3, 4, 5]);
return duration;
},
onStart(target, source, effect) {
this.effectState.move = effect.id;
},
onDisableMove(pokemon) {
if (!pokemon.hasMove(this.effectState.move)) {
return;
}
for (const moveSlot of pokemon.moveSlots) {
if (moveSlot.id !== this.effectState.move) {
pokemon.disableMove(moveSlot.id);
}
}
}
},
mustrecharge: {
inherit: true,
duration: 0,
onStart() {
}
},
lockedmove: {
// Thrash and Petal Dance.
name: "lockedmove",
onStart(target, source, effect) {
this.effectState.move = effect.id;
this.effectState.time = this.random(2, 4);
this.effectState.accuracy = 255;
},
onLockMove() {
return this.effectState.move;
},
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 });
}
}
},
twoturnmove: {
// Skull Bash, Solar Beam, ...
name: "twoturnmove",
onStart(attacker, defender, effect) {
this.effectState.move = effect.id;
this.effectState.sourceEffect = effect.sourceEffect;
this.attrLastMove("[still]");
},
onLockMove() {
return this.effectState.move;
}
},
invulnerability: {
// Dig/Fly
name: "invulnerability",
onInvulnerability(target, source, move) {
if (target === source)
return true;
if (move.id === "swift" || move.id === "transform")
return true;
this.add("-message", "The foe " + target.name + " can't be hit while invulnerable!");
return false;
}
}
};
//# sourceMappingURL=conditions.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/conditions.ts"],
"sourcesContent": ["/**\r\n * Status worked very differently in Gen 1.\r\n * - Sleep lasted longer, had no reset on switch and took a whole turn to wake up.\r\n * - Frozen only thaws when hit by fire or Haze.\r\n *\r\n * Stat boosts (-speed, -atk) also worked differently, so they are\r\n * separated as volatile statuses that are applied on switch in, removed\r\n * under certain conditions and re-applied under other conditions.\r\n */\r\n\r\nexport const Conditions: {[id: 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: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst toxicCounter = pokemon.volatiles['residualdmg'] ? pokemon.volatiles['residualdmg'].counter : 1;\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);\r\n\t\t\tif (pokemon.volatiles['residualdmg']) {\r\n\t\t\t\tthis.hint(\"In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.\", true);\r\n\t\t\t}\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\tpar: {\r\n\t\tname: 'par',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'par');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(63, 256)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\tif (pokemon.removeVolatile('twoturnmove')) {\r\n\t\t\t\t\tif (pokemon.volatiles['invulnerability']) {\r\n\t\t\t\t\t\tthis.hint(`In Gen 1, when a Dig/Fly user is fully paralyzed while semi-invulnerable, ` +\r\n\t\t\t\t\t\t`it will remain semi-invulnerable until it switches out or fully executes Dig/Fly`, true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpokemon.removeVolatile('partialtrappinglock');\r\n\t\t\t\tpokemon.removeVolatile('lockedmove');\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-7 turns\r\n\t\t\tthis.effectState.startTime = this.random(1, 8);\r\n\t\t\tthis.effectState.time = this.effectState.startTime;\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\tthis.add('cant', pokemon, 'slp');\r\n\t\t\t}\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tif (pokemon.statusState.time <= 0) pokemon.cureStatus();\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'frz');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 12,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tif (move.secondary && move.secondary.status === 'brn') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\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: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst toxicCounter = pokemon.volatiles['residualdmg'] ? pokemon.volatiles['residualdmg'].counter : 1;\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);\r\n\t\t\tif (pokemon.volatiles['residualdmg']) {\r\n\t\t\t\tthis.hint(\"In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.\", true);\r\n\t\t\t}\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\ttox: {\r\n\t\tinherit: true,\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t},\r\n\tconfusion: {\r\n\t\tname: 'confusion',\r\n\t\t// this is a volatile status\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\tthis.effectState.time = this.random(2, 6);\r\n\t\t},\r\n\t\tonEnd(target) {\r\n\t\t\tthis.add('-end', target, 'confusion');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 3,\r\n\t\tonBeforeMove(pokemon, tarLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,aAAkD;AAAA,EAC9D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ;AACf,WAAK,IAAI,WAAW,QAAQ,KAAK;AAAA,IAClC;AAAA,IACA,yBAAyB;AAAA,IACzB,gBAAgB,SAAS;AACxB,YAAM,eAAe,QAAQ,UAAU,aAAa,IAAI,QAAQ,UAAU,aAAa,EAAE,UAAU;AACnG,WAAK,OAAO,KAAK,cAAc,KAAK,MAAM,QAAQ,QAAQ,EAAE,GAAG,CAAC,IAAI,cAAc,OAAO;AACzF,UAAI,QAAQ,UAAU,aAAa,GAAG;AACrC,aAAK,KAAK,4EAA4E,IAAI;AAAA,MAC3F;AAAA,IACD;AAAA,IACA,oBAAoB,SAAS;AAC5B,WAAK,OAAO,KAAK,cAAc,KAAK,MAAM,QAAQ,QAAQ,EAAE,GAAG,CAAC,CAAC;AAAA,IAClE;AAAA,EACD;AAAA,EACA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AI;AACrD,UAAI,KAAK,IAAI;AACZ,aAAK,MAAM,kBAAkB,KAAK,EAAE;AACpC,aAAK,MAAM,aAAa,SAAS,EAAC,QAAQ,QAAQ,QAAQ,KAAK,GAAE,CAAC;AAAA,MACnE;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AAAA;AAAA,IAEZ,MAAM;AAAA,IACN,QAAQ,UAAU,UAAU,QAAQ;AAEnC,WAAK,YAAY,OAAO,OAAO;AAC/B,WAAK,YAAY,eAAe,OAAO;AACvC,WAAK,aALine truncated
"names": []
}
+483
View File
@@ -0,0 +1,483 @@
"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: "UU"
},
charmander: {
tier: "LC"
},
charmeleon: {
tier: "NFE"
},
charizard: {
tier: "NU"
},
squirtle: {
tier: "LC"
},
wartortle: {
tier: "NFE"
},
blastoise: {
tier: "NU"
},
caterpie: {
tier: "LC"
},
metapod: {
tier: "NFE"
},
butterfree: {
tier: "PU"
},
weedle: {
tier: "LC"
},
kakuna: {
tier: "NFE"
},
beedrill: {
tier: "PU"
},
pidgey: {
tier: "LC"
},
pidgeotto: {
tier: "NFE"
},
pidgeot: {
tier: "PU"
},
rattata: {
tier: "LC"
},
raticate: {
tier: "NU"
},
spearow: {
tier: "LC"
},
fearow: {
tier: "PU"
},
ekans: {
tier: "LC"
},
arbok: {
tier: "PU"
},
pikachu: {
tier: "LC"
},
raichu: {
tier: "NUBL"
},
sandshrew: {
tier: "LC"
},
sandslash: {
tier: "PU"
},
nidoranf: {
tier: "LC"
},
nidorina: {
tier: "NFE"
},
nidoqueen: {
tier: "PU"
},
nidoranm: {
tier: "LC"
},
nidorino: {
tier: "NFE"
},
nidoking: {
tier: "NU"
},
clefairy: {
tier: "LC"
},
clefable: {
tier: "NU"
},
vulpix: {
tier: "LC"
},
ninetales: {
tier: "NU"
},
jigglypuff: {
tier: "LC"
},
wigglytuff: {
tier: "NU"
},
zubat: {
tier: "LC"
},
golbat: {
tier: "PU"
},
oddish: {
tier: "LC"
},
gloom: {
tier: "NFE"
},
vileplume: {
tier: "PU"
},
paras: {
tier: "LC"
},
parasect: {
tier: "PU"
},
venonat: {
tier: "LC"
},
venomoth: {
tier: "NU"
},
diglett: {
tier: "LC"
},
dugtrio: {
tier: "UU"
},
meowth: {
tier: "LC"
},
persian: {
tier: "UU"
},
psyduck: {
tier: "LC"
},
golduck: {
tier: "NUBL"
},
mankey: {
tier: "LC"
},
primeape: {
tier: "PU"
},
growlithe: {
tier: "LC"
},
arcanine: {
tier: "PU"
},
poliwag: {
tier: "LC"
},
poliwhirl: {
tier: "NUBL"
},
poliwrath: {
tier: "NUBL"
},
abra: {
tier: "LC"
},
kadabra: {
tier: "UU"
},
alakazam: {
tier: "OU"
},
machop: {
tier: "LC"
},
machoke: {
tier: "NFE"
},
machamp: {
tier: "PU"
},
bellsprout: {
tier: "LC"
},
weepinbell: {
tier: "NFE"
},
victreebel: {
tier: "UU"
},
tentacool: {
tier: "LC"
},
tentacruel: {
tier: "UU"
},
geodude: {
tier: "LC"
},
graveler: {
tier: "NFE"
},
golem: {
tier: "NU"
},
ponyta: {
tier: "LC"
},
rapidash: {
tier: "PU"
},
slowpoke: {
tier: "LC"
},
slowbro: {
tier: "OU"
},
magnemite: {
tier: "LC"
},
magneton: {
tier: "PU"
},
farfetchd: {
tier: "PU"
},
doduo: {
tier: "LC"
},
dodrio: {
tier: "UU"
},
seel: {
tier: "LC"
},
dewgong: {
tier: "UU"
},
grimer: {
tier: "LC"
},
muk: {
tier: "PU"
},
shellder: {
tier: "LC"
},
cloyster: {
tier: "OU"
},
gastly: {
tier: "LC"
},
haunter: {
tier: "UU"
},
gengar: {
tier: "OU"
},
onix: {
tier: "PU"
},
drowzee: {
tier: "LC"
},
hypno: {
tier: "UU"
},
krabby: {
tier: "LC"
},
kingler: {
tier: "NU"
},
voltorb: {
tier: "LC"
},
electrode: {
tier: "PU"
},
exeggcute: {
tier: "NU"
},
exeggutor: {
tier: "OU"
},
cubone: {
tier: "LC"
},
marowak: {
tier: "PU"
},
hitmonlee: {
tier: "PU"
},
hitmonchan: {
tier: "PU"
},
lickitung: {
tier: "PU"
},
koffing: {
tier: "LC"
},
weezing: {
tier: "PU"
},
rhyhorn: {
tier: "LC"
},
rhydon: {
tier: "OU"
},
chansey: {
tier: "OU"
},
tangela: {
tier: "UU"
},
kangaskhan: {
tier: "UU"
},
horsea: {
tier: "LC"
},
seadra: {
tier: "NU"
},
goldeen: {
tier: "LC"
},
seaking: {
tier: "PU"
},
staryu: {
tier: "LC"
},
starmie: {
tier: "OU"
},
mrmime: {
tier: "NU"
},
scyther: {
tier: "PU"
},
jynx: {
tier: "OU"
},
electabuzz: {
tier: "UU"
},
magmar: {
tier: "PU"
},
pinsir: {
tier: "PU"
},
tauros: {
tier: "OU"
},
magikarp: {
tier: "LC"
},
gyarados: {
tier: "UU"
},
lapras: {
tier: "UU"
},
ditto: {
tier: "PU"
},
eevee: {
tier: "LC"
},
vaporeon: {
tier: "UU"
},
jolteon: {
tier: "OU"
},
flareon: {
tier: "PU"
},
porygon: {
tier: "NU"
},
omanyte: {
tier: "LC"
},
omastar: {
tier: "UU"
},
kabuto: {
tier: "LC"
},
kabutops: {
tier: "NU"
},
aerodactyl: {
tier: "UU"
},
snorlax: {
tier: "OU"
},
articuno: {
tier: "UU"
},
zapdos: {
tier: "OU"
},
moltres: {
tier: "NU"
},
dratini: {
tier: "LC"
},
dragonair: {
tier: "NFE"
},
dragonite: {
tier: "UU"
},
mewtwo: {
tier: "Uber"
},
mew: {
tier: "Uber"
},
missingno: {
isNonstandard: "Unobtainable",
tier: "Illegal"
}
};
//# sourceMappingURL=formats-data.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/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: \"UU\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"NU\",\r\n\t},\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: \"NU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"PU\",\r\n\t},\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: \"PU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"LC\",\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: \"PU\",\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: \"PU\",\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: \"NU\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"NU\",\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\tjigglypuff: {\r\n\t\ttier: \"LC\",\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: \"PU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"PU\",\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: \"UU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"UU\",\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: \"PU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"NUBL\",\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: \"OU\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"PU\",\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: \"LC\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"PU\",\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: \"UU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"PU\",\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: \"LC\",\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: \"PU\",\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},\r\n\tkingler: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvoltorb: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\telectrode: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\texeggcute: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\texeggutor: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tcubone: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmarowak: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\thitmonlee: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\thitmonchan: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tlickitung: {\r\n\t\ttLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,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,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IAC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A,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,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;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,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,QAAQ;AAAA,IACP,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": []
}
+922
View File
@@ -0,0 +1,922 @@
"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 moves_exports = {};
__export(moves_exports, {
Moves: () => Moves
});
module.exports = __toCommonJS(moves_exports);
const Moves = {
acid: {
inherit: true,
secondary: {
chance: 33,
boosts: {
def: -1
}
},
target: "normal"
},
amnesia: {
inherit: true,
boosts: {
spa: 2,
spd: 2
}
},
aurorabeam: {
inherit: true,
secondary: {
chance: 33,
boosts: {
atk: -1
}
}
},
bide: {
inherit: true,
priority: 0,
accuracy: true,
condition: {
onStart(pokemon) {
this.effectState.damage = 0;
this.effectState.time = this.random(2, 4);
this.add("-start", pokemon, "Bide");
},
onBeforeMove(pokemon, t, move) {
const currentMove = this.dex.getActiveMove("bide");
if (pokemon.volatiles["disable"]?.move === "bide") {
this.add("cant", pokemon, "Disable", currentMove);
return false;
}
this.effectState.damage += this.lastDamage;
this.effectState.time--;
if (!this.effectState.time) {
this.add("-end", pokemon, currentMove);
if (!this.effectState.damage) {
this.debug("Bide failed because no damage was stored");
this.add("-fail", pokemon);
pokemon.removeVolatile("bide");
return false;
}
const target = this.getRandomTarget(pokemon, "Pound");
this.actions.moveHit(target, pokemon, currentMove, { damage: this.effectState.damage * 2 });
pokemon.removeVolatile("bide");
return false;
}
this.add("-activate", pokemon, "Bide");
return false;
},
onDisableMove(pokemon) {
if (!pokemon.hasMove("bide")) {
return;
}
for (const moveSlot of pokemon.moveSlots) {
if (moveSlot.id !== "bide") {
pokemon.disableMove(moveSlot.id);
}
}
}
},
type: "???"
// Will look as Normal but it's STAB-less
},
bind: {
inherit: true,
ignoreImmunity: true,
volatileStatus: "partiallytrapped",
self: {
volatileStatus: "partialtrappinglock"
},
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
onHit(target, source) {
if (target.volatiles["partiallytrapped"]) {
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
target.volatiles["partiallytrapped"].duration = 2;
}
}
}
},
bite: {
inherit: true,
category: "Physical",
secondary: {
chance: 10,
volatileStatus: "flinch"
},
type: "Normal"
},
blizzard: {
inherit: true,
accuracy: 90,
target: "normal"
},
bubble: {
inherit: true,
secondary: {
chance: 33,
boosts: {
spe: -1
}
},
target: "normal"
},
bubblebeam: {
inherit: true,
secondary: {
chance: 33,
boosts: {
spe: -1
}
}
},
clamp: {
inherit: true,
accuracy: 75,
pp: 10,
volatileStatus: "partiallytrapped",
self: {
volatileStatus: "partialtrappinglock"
},
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
onHit(target, source) {
if (target.volatiles["partiallytrapped"]) {
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
target.volatiles["partiallytrapped"].duration = 2;
}
}
}
},
constrict: {
inherit: true,
secondary: {
chance: 33,
boosts: {
spe: -1
}
}
},
conversion: {
inherit: true,
target: "normal",
onHit(target, source) {
source.setType(target.getTypes(true));
this.add("-start", source, "typechange", source.types.join("/"), "[from] move: Conversion", "[of] " + target);
}
},
counter: {
inherit: true,
ignoreImmunity: true,
willCrit: false,
basePower: 1,
damageCallback(pokemon, target) {
const lastMove = target.side.lastMove && this.dex.moves.get(target.side.lastMove.id);
const lastMoveIsCounterable = lastMove && lastMove.basePower > 0 && ["Normal", "Fighting"].includes(lastMove.type) && lastMove.id !== "counter";
const lastSelectedMove = target.side.lastSelectedMove && this.dex.moves.get(target.side.lastSelectedMove);
const lastSelectedMoveIsCounterable = lastSelectedMove && lastSelectedMove.basePower > 0 && ["Normal", "Fighting"].includes(lastSelectedMove.type) && lastSelectedMove.id !== "counter";
if (!lastMoveIsCounterable && !lastSelectedMoveIsCounterable) {
this.debug("Gen 1 Counter: last move was not Counterable");
this.add("-fail", pokemon);
return false;
}
if (this.lastDamage <= 0) {
this.debug("Gen 1 Counter: no previous damage exists");
this.add("-fail", pokemon);
return false;
}
if (!lastMoveIsCounterable || !lastSelectedMoveIsCounterable) {
this.hint("Desync Clause Mod activated!");
this.add("-fail", pokemon);
return false;
}
return 2 * this.lastDamage;
}
},
crabhammer: {
inherit: true,
critRatio: 2
},
dig: {
inherit: true,
basePower: 100,
condition: {},
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
attacker.addVolatile("invulnerability", defender);
return null;
}
},
disable: {
num: 50,
accuracy: 55,
basePower: 0,
category: "Status",
name: "Disable",
pp: 20,
priority: 0,
flags: { protect: 1, mirror: 1, bypasssub: 1 },
volatileStatus: "disable",
onTryHit(target) {
return target.moveSlots.some((ms) => ms.pp > 0) && !("disable" in target.volatiles) && void 0;
},
condition: {
onStart(pokemon) {
const moveSlot = this.sample(pokemon.moveSlots.filter((ms) => ms.pp > 0));
this.add("-start", pokemon, "Disable", moveSlot.move);
this.effectState.move = moveSlot.id;
this.effectState.time = this.random(1, 9);
},
onEnd(pokemon) {
this.add("-end", pokemon, "Disable");
},
onBeforeMovePriority: 7,
onBeforeMove(pokemon, target, move) {
pokemon.volatiles["disable"].time--;
if (!pokemon.volatiles["disable"].time) {
pokemon.removeVolatile("disable");
return;
}
if (move.id === this.effectState.move) {
this.add("cant", pokemon, "Disable", move);
pokemon.removeVolatile("twoturnmove");
return false;
}
},
onDisableMove(pokemon) {
for (const moveSlot of pokemon.moveSlots) {
if (moveSlot.id === this.effectState.move) {
pokemon.disableMove(moveSlot.id);
}
}
}
},
secondary: null,
target: "normal",
type: "Normal"
},
dizzypunch: {
inherit: true,
secondary: null
},
doubleedge: {
inherit: true,
basePower: 100
},
dragonrage: {
inherit: true,
basePower: 1
},
explosion: {
inherit: true,
basePower: 170,
target: "normal"
},
fireblast: {
inherit: true,
secondary: {
chance: 30,
status: "brn"
}
},
firespin: {
inherit: true,
accuracy: 70,
basePower: 15,
volatileStatus: "partiallytrapped",
self: {
volatileStatus: "partialtrappinglock"
},
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
onHit(target, source) {
if (target.volatiles["partiallytrapped"]) {
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
target.volatiles["partiallytrapped"].duration = 2;
}
}
}
},
fly: {
inherit: true,
condition: {},
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
attacker.addVolatile("invulnerability", defender);
return null;
}
},
focusenergy: {
inherit: true,
condition: {
onStart(pokemon) {
this.add("-start", pokemon, "move: Focus Energy");
},
// This does nothing as it's dealt with on critical hit calculation.
onModifyMove() {
}
}
},
glare: {
inherit: true,
ignoreImmunity: true
},
growth: {
inherit: true,
boosts: {
spa: 1,
spd: 1
}
},
gust: {
inherit: true,
type: "Normal"
},
haze: {
inherit: true,
onHit(target, source) {
this.add("-activate", target, "move: Haze");
this.add("-clearallboost", "[silent]");
for (const pokemon of this.getAllActive()) {
pokemon.clearBoosts();
if (pokemon !== source) {
pokemon.cureStatus(true);
}
if (pokemon.status === "tox") {
pokemon.setStatus("psn");
}
pokemon.updateSpeed();
const silentHack = "|[silent]";
const silentHackVolatiles = ["disable", "confusion"];
const hazeVolatiles = {
"disable": "",
"confusion": "",
"mist": "Mist",
"focusenergy": "move: Focus Energy",
"leechseed": "move: Leech Seed",
"lightscreen": "Light Screen",
"reflect": "Reflect",
"residualdmg": "Toxic counter"
};
for (const v in hazeVolatiles) {
if (!pokemon.removeVolatile(v)) {
continue;
}
if (silentHackVolatiles.includes(v)) {
this.log[this.log.length - 1] += silentHack;
} else {
this.add("-end", pokemon, hazeVolatiles[v], "[silent]");
}
}
}
},
target: "self"
},
highjumpkick: {
inherit: true,
onMoveFail(target, source, move) {
this.directDamage(1, source, target);
}
},
jumpkick: {
inherit: true,
onMoveFail(target, source, move) {
this.directDamage(1, source, target);
}
},
karatechop: {
inherit: true,
critRatio: 2,
type: "Normal"
},
leechseed: {
inherit: true,
onHit() {
},
condition: {
onStart(target) {
this.add("-start", target, "move: Leech Seed");
},
onAfterMoveSelfPriority: 1,
onAfterMoveSelf(pokemon) {
const leecher = this.getAtSlot(pokemon.volatiles["leechseed"].sourceSlot);
if (!leecher || leecher.fainted || leecher.hp <= 0) {
this.debug("Nothing to leech into");
return;
}
let toxicCounter = 1;
const residualdmg = pokemon.volatiles["residualdmg"];
if (residualdmg) {
residualdmg.counter++;
toxicCounter = residualdmg.counter;
}
const toLeech = this.clampIntRange(Math.floor(pokemon.baseMaxhp / 16), 1) * toxicCounter;
const damage = this.damage(toLeech, pokemon, leecher);
if (residualdmg)
this.hint("In Gen 1, Leech Seed's damage is affected by Toxic's counter.", true);
if (!damage || toLeech > damage) {
this.hint("In Gen 1, Leech Seed recovery is not limited by the remaining HP of the seeded Pokemon.", true);
}
this.heal(toLeech, leecher, pokemon);
}
}
},
lightscreen: {
num: 113,
accuracy: true,
basePower: 0,
category: "Status",
name: "Light Screen",
pp: 30,
priority: 0,
flags: {},
volatileStatus: "lightscreen",
onTryHit(pokemon) {
if (pokemon.volatiles["lightscreen"]) {
return false;
}
},
condition: {
onStart(pokemon) {
this.add("-start", pokemon, "Light Screen");
}
},
target: "self",
type: "Psychic"
},
metronome: {
inherit: true,
noMetronome: ["Metronome", "Struggle"]
},
mimic: {
inherit: true,
onHit(target, source) {
const moveslot = source.moves.indexOf("mimic");
if (moveslot < 0)
return false;
const moves = target.moves;
const moveid = this.sample(moves);
if (!moveid)
return false;
const move = this.dex.moves.get(moveid);
source.moveSlots[moveslot] = {
move: move.name,
id: move.id,
pp: source.moveSlots[moveslot].pp,
maxpp: move.pp * 8 / 5,
target: move.target,
disabled: false,
used: false,
virtual: true
};
this.add("-start", source, "Mimic", move.name);
}
},
mirrormove: {
inherit: true,
onHit(pokemon) {
const foe = pokemon.side.foe.active[0];
if (!foe?.lastMove || foe.lastMove.id === "mirrormove") {
return false;
}
pokemon.side.lastSelectedMove = foe.lastMove.id;
this.actions.useMove(foe.lastMove.id, pokemon);
}
},
mist: {
inherit: true,
condition: {
onStart(pokemon) {
this.add("-start", pokemon, "Mist");
},
onTryBoost(boost, target, source, effect) {
if (effect.effectType === "Move" && effect.category !== "Status")
return;
if (source && target !== source) {
let showMsg = false;
let i;
for (i in boost) {
if (boost[i] < 0) {
delete boost[i];
showMsg = true;
}
}
if (showMsg && !effect.secondaries) {
this.add("-activate", target, "move: Mist");
}
}
}
}
},
nightshade: {
inherit: true,
ignoreImmunity: true,
basePower: 1
},
petaldance: {
inherit: true,
onMoveFail() {
}
},
poisonsting: {
inherit: true,
secondary: {
chance: 20,
status: "psn"
}
},
psychic: {
inherit: true,
secondary: {
chance: 33,
boosts: {
spa: -1,
spd: -1
}
}
},
psywave: {
inherit: true,
basePower: 1,
damageCallback(pokemon) {
const psywaveDamage = this.random(0, this.trunc(1.5 * pokemon.level));
if (psywaveDamage <= 0) {
this.hint("Desync Clause Mod activated!");
return false;
}
return psywaveDamage;
}
},
rage: {
inherit: true,
self: {
volatileStatus: "rage"
},
condition: {
// Rage lock
onStart(target, source, effect) {
this.effectState.move = "rage";
this.effectState.accuracy = 255;
},
onLockMove: "rage",
onHit(target, source, move) {
if (target.boosts.atk < 6 && (move.category !== "Status" && !move.selfdestruct)) {
this.boost({ atk: 1 });
}
}
}
},
razorleaf: {
inherit: true,
critRatio: 2,
target: "normal"
},
razorwind: {
inherit: true,
critRatio: 1,
target: "normal",
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
return null;
}
},
recover: {
inherit: true,
heal: null,
onHit(target) {
if (target.hp === target.maxhp)
return false;
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511 || target.hp === target.maxhp) {
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
return false;
}
this.heal(Math.floor(target.maxhp / 2), target, target);
}
},
reflect: {
num: 115,
accuracy: true,
basePower: 0,
category: "Status",
name: "Reflect",
pp: 20,
priority: 0,
flags: {},
volatileStatus: "reflect",
onTryHit(pokemon) {
if (pokemon.volatiles["reflect"]) {
return false;
}
},
condition: {
onStart(pokemon) {
this.add("-start", pokemon, "Reflect");
}
},
secondary: null,
target: "self",
type: "Psychic"
},
rest: {
inherit: true,
onTry() {
},
onHit(target, source, move) {
if (target.hp === target.maxhp)
return false;
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511) {
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
return false;
}
if (!target.setStatus("slp", source, move))
return false;
target.statusState.time = 2;
target.statusState.startTime = 2;
this.heal(target.maxhp);
}
},
roar: {
inherit: true,
forceSwitch: false,
onTryHit() {
},
priority: 0
},
rockslide: {
inherit: true,
secondary: null,
target: "normal"
},
rockthrow: {
inherit: true,
accuracy: 65
},
sandattack: {
inherit: true,
ignoreImmunity: true,
type: "Normal"
},
seismictoss: {
inherit: true,
ignoreImmunity: true,
basePower: 1
},
selfdestruct: {
inherit: true,
basePower: 130,
target: "normal"
},
skullbash: {
inherit: true,
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
return null;
}
},
skyattack: {
inherit: true,
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
return null;
}
},
slash: {
inherit: true,
critRatio: 2
},
sludge: {
inherit: true,
secondary: {
chance: 40,
status: "psn"
}
},
solarbeam: {
inherit: true,
onTryMove(attacker, defender, move) {
if (attacker.removeVolatile("twoturnmove")) {
attacker.removeVolatile("invulnerability");
return;
}
this.add("-prepare", attacker, move.name);
attacker.addVolatile("twoturnmove", defender);
return null;
}
},
sonicboom: {
inherit: true,
ignoreImmunity: true,
basePower: 1
},
softboiled: {
inherit: true,
heal: null,
onHit(target) {
if (target.hp === target.maxhp)
return false;
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511 || target.hp === target.maxhp) {
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
return false;
}
this.heal(Math.floor(target.maxhp / 2), target, target);
}
},
struggle: {
inherit: true,
pp: 10,
recoil: [1, 2],
onModifyMove() {
}
},
substitute: {
num: 164,
accuracy: true,
basePower: 0,
category: "Status",
name: "Substitute",
pp: 10,
priority: 0,
volatileStatus: "substitute",
onTryHit(target) {
if (target.volatiles["substitute"]) {
this.add("-fail", target, "move: Substitute");
return null;
}
if (target.hp < target.maxhp / 4) {
this.add("-fail", target, "move: Substitute", "[weak]");
return null;
}
},
onHit(target) {
if (target.maxhp > 3) {
this.directDamage(target.maxhp / 4, target, target);
}
},
condition: {
onStart(target) {
this.add("-start", target, "Substitute");
this.effectState.hp = Math.floor(target.maxhp / 4) + 1;
delete target.volatiles["partiallytrapped"];
},
onTryHitPriority: -1,
onTryHit(target, source, move) {
if (move.category === "Status") {
const SubBlocked = ["lockon", "meanlook", "mindreader", "nightmare"];
if (move.status === "psn" || move.status === "tox" || move.boosts && target !== source || move.volatileStatus === "confusion" || SubBlocked.includes(move.id)) {
return false;
}
return;
}
if (move.volatileStatus && target === source)
return;
let uncappedDamage = move.hit > 1 ? this.lastDamage : this.actions.getDamage(source, target, move);
if (move.id === "bide")
uncappedDamage = source.volatiles["bide"].damage * 2;
if (!uncappedDamage && uncappedDamage !== 0)
return null;
uncappedDamage = this.runEvent("SubDamage", target, source, move, uncappedDamage);
if (!uncappedDamage && uncappedDamage !== 0)
return uncappedDamage;
this.lastDamage = uncappedDamage;
target.volatiles["substitute"].hp -= uncappedDamage > target.volatiles["substitute"].hp ? target.volatiles["substitute"].hp : uncappedDamage;
if (target.volatiles["substitute"].hp <= 0) {
target.removeVolatile("substitute");
target.subFainted = true;
} else {
this.add("-activate", target, "Substitute", "[damage]");
}
if (target.volatiles["substitute"]) {
if (move.recoil) {
this.damage(
this.clampIntRange(Math.floor(uncappedDamage * move.recoil[0] / move.recoil[1]), 1),
source,
target,
"recoil"
);
}
if (move.drain) {
const amount = this.clampIntRange(Math.floor(uncappedDamage * move.drain[0] / move.drain[1]), 1);
this.lastDamage = amount;
this.heal(amount, source, target, "drain");
}
if (move.secondary?.volatileStatus === "confusion") {
const secondary = move.secondary;
if (secondary.chance === void 0 || this.randomChance(Math.ceil(secondary.chance * 256 / 100) - 1, 256)) {
target.addVolatile(move.secondary.volatileStatus, source, move);
this.hint(
"In Gen 1, moves that inflict confusion as a secondary effect can confuse targets with a Substitute, as long as the move does not break the Substitute."
);
}
}
}
this.runEvent("AfterSubDamage", target, source, move, uncappedDamage);
const lastAttackedBy = target.getLastAttackedBy();
if (!lastAttackedBy) {
target.attackedBy.push({ source, move: move.id, damage: uncappedDamage, slot: source.getSlot(), thisTurn: true });
} else {
lastAttackedBy.move = move.id;
lastAttackedBy.damage = uncappedDamage;
}
return 0;
},
onEnd(target) {
this.add("-end", target, "Substitute");
}
},
secondary: null,
target: "self",
type: "Normal",
flags: {}
},
superfang: {
inherit: true,
ignoreImmunity: true,
basePower: 1
},
thrash: {
inherit: true,
onMoveFail() {
}
},
thunder: {
inherit: true,
secondary: {
chance: 10,
status: "par"
}
},
triattack: {
inherit: true,
onHit() {
},
secondary: null
},
whirlwind: {
inherit: true,
accuracy: 85,
forceSwitch: false,
onTryHit() {
},
priority: 0
},
wingattack: {
inherit: true,
basePower: 35
},
wrap: {
inherit: true,
accuracy: 85,
ignoreImmunity: true,
volatileStatus: "partiallytrapped",
self: {
volatileStatus: "partialtrappinglock"
},
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
onHit(target, source) {
if (target.volatiles["partiallytrapped"]) {
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
target.volatiles["partiallytrapped"].duration = 2;
}
}
}
}
};
//# sourceMappingURL=moves.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/moves.ts"],
"sourcesContent": ["/**\r\n * A lot of Gen 1 moves have to be updated due to different mechanics.\r\n * Some moves have had major changes, such as Bite's typing.\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\tacid: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tdef: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tamnesia: {\r\n\t\tinherit: true,\r\n\t\tboosts: {\r\n\t\t\tspa: 2,\r\n\t\t\tspd: 2,\r\n\t\t},\r\n\t},\r\n\taurorabeam: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tatk: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\tpriority: 0,\r\n\t\taccuracy: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.damage = 0;\r\n\t\t\t\tthis.effectState.time = this.random(2, 4);\r\n\t\t\t\tthis.add('-start', pokemon, 'Bide');\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, t, move) {\r\n\t\t\t\tconst currentMove = this.dex.getActiveMove('bide');\r\n\t\t\t\tif (pokemon.volatiles['disable']?.move === 'bide') {\r\n\t\t\t\t\tthis.add('cant', pokemon, 'Disable', currentMove);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.effectState.damage += this.lastDamage;\r\n\t\t\t\tthis.effectState.time--;\r\n\t\t\t\tif (!this.effectState.time) {\r\n\t\t\t\t\tthis.add('-end', pokemon, currentMove);\r\n\t\t\t\t\tif (!this.effectState.damage) {\r\n\t\t\t\t\t\tthis.debug(\"Bide failed because no damage was stored\");\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst target = this.getRandomTarget(pokemon, 'Pound');\r\n\t\t\t\t\tthis.actions.moveHit(target, pokemon, currentMove, {damage: this.effectState.damage * 2} as ActiveMove);\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, 'Bide');\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t\tonDisableMove(pokemon) {\r\n\t\t\t\tif (!pokemon.hasMove('bide')) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfor (const moveSlot of pokemon.moveSlots) {\r\n\t\t\t\t\tif (moveSlot.id !== 'bide') {\r\n\t\t\t\t\t\tpokemon.disableMove(moveSlot.id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\ttype: \"???\", // Will look as Normal but it's STAB-less\r\n\t},\r\n\tbind: {\r\n\t\tinherit: true,\r\n\t\tignoreImmunity: true,\r\n\t\tvolatileStatus: 'partiallytrapped',\r\n\t\tself: {\r\n\t\t\tvolatileStatus: 'partialtrappinglock',\r\n\t\t},\r\n\t\t// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}\r\n\t\tonHit(target, source) {\r\n\t\t\t/**\r\n\t\t\t * The duration of the partially trapped must be always renewed to 2\r\n\t\t\t * so target doesn't move on trapper switch out as happens in gen 1.\r\n\t\t\t * However, this won't happen if there's no switch and the trapper is\r\n\t\t\t * about to end its partial trapping.\r\n\t\t\t **/\r\n\t\t\tif (target.volatiles['partiallytrapped']) {\r\n\t\t\t\tif (source.volatiles['partialtrappinglock'] && source.volatiles['partialtrappinglock'].duration > 1) {\r\n\t\t\t\t\ttarget.volatiles['partiallytrapped'].duration = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tbite: {\r\n\t\tinherit: true,\r\n\t\tcategory: \"Physical\",\r\n\t\tsecondary: {\r\n\t\t\tchance: 10,\r\n\t\t\tvolatileStatus: 'flinch',\r\n\t\t},\r\n\t\ttype: \"Normal\",\r\n\t},\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 90,\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tbubble: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tbubblebeam: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tclamp: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 75,\r\n\t\tpp: 10,\r\n\t\tvolatileStatus: 'partiallytrapped',\r\n\t\tself: {\r\n\t\t\tvolatileStatus: 'partialtrappinglock',\r\n\t\t},\r\n\t\t// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}\r\n\t\tonHit(target, source) {\r\n\t\t\t/**\r\n\t\t\t * The duration of the partially trapped must be always renewed to 2\r\n\t\t\t * so target doesn't move on trapper switch out as happens in gen 1.\r\n\t\t\t * However, this won't happen if there's no switch and the trapper is\r\n\t\t\t * about to end its partial trapping.\r\n\t\t\t **/\r\n\t\t\tif (target.volatiles['partiallytrapped']) {\r\n\t\t\t\tif (source.volatiles['partialtrappinglock'] && source.volatiles['partialtrappinglock'].duration > 1) {\r\n\t\t\t\t\ttarget.volatiles['partiallytrapped'].duration = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tconstrict: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tconversion: {\r\n\t\tinherit: true,\r\n\t\ttarget: \"normal\",\r\n\t\tonHit(targLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,QAAuC;AAAA,EACnD,MAAM;AAAA,IACL,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,QACP,KAAK;AAAA,MACN;AAAA,IACD;AAAA,IACA,QAAQ;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,IACN;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,QACP,KAAK;AAAA,MACN;AAAA,IACD;AAAA,EACD;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,MACV,QAAQ,SAAS;AAChB,aAAK,YAAY,SAAS;AAC1B,aAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AACxC,aAAK,IAAI,UAAU,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,aAAa,SAAS,GAAG,MAAM;AAC9B,cAAM,cAAc,KAAK,IAAI,cAAc,MAAM;AACjD,YAAI,QAAQ,UAAU,SAAS,GAAG,SAAS,QAAQ;AAClD,eAAK,IAAI,QAAQ,SAAS,WAAW,WAAW;AAChD,iBAAO;AAAA,QACR;AACA,aAAK,YAAY,UAAU,KAAK;AAChC,aAAK,YAAY;AACjB,YAAI,CAAC,KAAK,YAAY,MAAM;AAC3B,eAAK,IAAI,QA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,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,OAAO,EAAC,SAAS,GAAG,QAAQ,GAAG,WAAW,EAAC;AAAA,IAC3C,gBAAgB;AAAA,IAChB,SAAS,QAAQ;AAEhB,aAAO,OAAO,UAAU,KAAK,QAAM,GAAG,KAAK,CAAC,KAC3C,EAAE,aAAa,OAAO,cACtB;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACV,QAAQ,SAAS;AAEhB,cAAM,WAAW,KAAK,OAAO,QAAQ,UAAU,OAAO,QAAM,GAAG,KAAK,CAAC,CAAC;AACtE,aAAK,IAAI,UAAU,SAAS,WAAW,SAAS,IAAI;AACpD,aAAK,YAAY,OAAO,SAAS;AAEjC,aAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AAAA,MACzC;AAAA,MACA,MAAM,SAAS;AACd,aAAK,IAAI,QAAQ,SAAS,SAAS;AAAA,MACpC;AAAA,MACA,sBAAsB;AAAA,MACtB,aAAa,SAAS,QAAQ,MAAM;AACnC,gBAAQ,UAAU,SAAS,EAAE;AAC7B,YAAI,CAAC,QAAQ,UAAU,SAAS,EAAE,MAAM;AACvC,kBAAQ,eAAe,SAAS;AAChC;AAAA,QACD;AACA,YAAI,KAAK,OAAO,KAAK,YAAY,MAAM;AACtC,eAAK,IAAI,QAAQ,SAAS,WAAW,IAAI;AACzC,kBAAQ,eAAe,aAAa;AACpC,iBAAO;AAAA,QACR;AAAA,MACD;AAAA,MACA,cAAc,SAAS;AACtB,mBAAW,YAAY,QAAQ,WAAW;AACzC,cAAI,SAAS,OAAO,KAAK,YAAY,MAAM;AAC1C,oBAAQ,YAAY,SAAS,EAAE;AAAA,UAChC;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,WAAW;AAAA,IACX,Line truncated
"names": []
}
+636
View File
@@ -0,0 +1,636 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var pokedex_exports = {};
__export(pokedex_exports, {
Pokedex: () => Pokedex
});
module.exports = __toCommonJS(pokedex_exports);
const Pokedex = {
missingno: {
inherit: true,
baseStats: { hp: 33, atk: 136, def: 0, spa: 6, spd: 6, spe: 29 }
},
bulbasaur: {
inherit: true,
baseStats: { hp: 45, atk: 49, def: 49, spa: 65, spd: 65, spe: 45 }
},
ivysaur: {
inherit: true,
baseStats: { hp: 60, atk: 62, def: 63, spa: 80, spd: 80, spe: 60 }
},
venusaur: {
inherit: true,
baseStats: { hp: 80, atk: 82, def: 83, spa: 100, spd: 100, spe: 80 }
},
charmander: {
inherit: true,
baseStats: { hp: 39, atk: 52, def: 43, spa: 50, spd: 50, spe: 65 }
},
charmeleon: {
inherit: true,
baseStats: { hp: 58, atk: 64, def: 58, spa: 65, spd: 65, spe: 80 }
},
charizard: {
inherit: true,
baseStats: { hp: 78, atk: 84, def: 78, spa: 85, spd: 85, spe: 100 }
},
squirtle: {
inherit: true,
baseStats: { hp: 44, atk: 48, def: 65, spa: 50, spd: 50, spe: 43 }
},
wartortle: {
inherit: true,
baseStats: { hp: 59, atk: 63, def: 80, spa: 65, spd: 65, spe: 58 }
},
blastoise: {
inherit: true,
baseStats: { hp: 79, atk: 83, def: 100, spa: 85, spd: 85, spe: 78 }
},
caterpie: {
inherit: true,
baseStats: { hp: 45, atk: 30, def: 35, spa: 20, spd: 20, spe: 45 }
},
metapod: {
inherit: true,
baseStats: { hp: 50, atk: 20, def: 55, spa: 25, spd: 25, spe: 30 }
},
butterfree: {
inherit: true,
baseStats: { hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70 }
},
weedle: {
inherit: true,
baseStats: { hp: 40, atk: 35, def: 30, spa: 20, spd: 20, spe: 50 }
},
kakuna: {
inherit: true,
baseStats: { hp: 45, atk: 25, def: 50, spa: 25, spd: 25, spe: 35 }
},
beedrill: {
inherit: true,
baseStats: { hp: 65, atk: 80, def: 40, spa: 45, spd: 45, spe: 75 }
},
pidgey: {
inherit: true,
baseStats: { hp: 40, atk: 45, def: 40, spa: 35, spd: 35, spe: 56 }
},
pidgeotto: {
inherit: true,
baseStats: { hp: 63, atk: 60, def: 55, spa: 50, spd: 50, spe: 71 }
},
pidgeot: {
inherit: true,
baseStats: { hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91 }
},
rattata: {
inherit: true,
baseStats: { hp: 30, atk: 56, def: 35, spa: 25, spd: 25, spe: 72 }
},
raticate: {
inherit: true,
baseStats: { hp: 55, atk: 81, def: 60, spa: 50, spd: 50, spe: 97 }
},
spearow: {
inherit: true,
baseStats: { hp: 40, atk: 60, def: 30, spa: 31, spd: 31, spe: 70 }
},
fearow: {
inherit: true,
baseStats: { hp: 65, atk: 90, def: 65, spa: 61, spd: 61, spe: 100 }
},
ekans: {
inherit: true,
baseStats: { hp: 35, atk: 60, def: 44, spa: 40, spd: 40, spe: 55 }
},
arbok: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 69, spa: 65, spd: 65, spe: 80 }
},
pikachu: {
inherit: true,
baseStats: { hp: 35, atk: 55, def: 30, spa: 50, spd: 50, spe: 90 }
},
raichu: {
inherit: true,
baseStats: { hp: 60, atk: 90, def: 55, spa: 90, spd: 90, spe: 100 }
},
sandshrew: {
inherit: true,
baseStats: { hp: 50, atk: 75, def: 85, spa: 30, spd: 30, spe: 40 }
},
sandslash: {
inherit: true,
baseStats: { hp: 75, atk: 100, def: 110, spa: 55, spd: 55, spe: 65 }
},
nidoranf: {
inherit: true,
baseStats: { hp: 55, atk: 47, def: 52, spa: 40, spd: 40, spe: 41 }
},
nidorina: {
inherit: true,
baseStats: { hp: 70, atk: 62, def: 67, spa: 55, spd: 55, spe: 56 }
},
nidoqueen: {
inherit: true,
baseStats: { hp: 90, atk: 82, def: 87, spa: 75, spd: 75, spe: 76 }
},
nidoranm: {
inherit: true,
baseStats: { hp: 46, atk: 57, def: 40, spa: 40, spd: 40, spe: 50 }
},
nidorino: {
inherit: true,
baseStats: { hp: 61, atk: 72, def: 57, spa: 55, spd: 55, spe: 65 }
},
nidoking: {
inherit: true,
baseStats: { hp: 81, atk: 92, def: 77, spa: 75, spd: 75, spe: 85 }
},
clefairy: {
inherit: true,
baseStats: { hp: 70, atk: 45, def: 48, spa: 60, spd: 60, spe: 35 }
},
clefable: {
inherit: true,
baseStats: { hp: 95, atk: 70, def: 73, spa: 85, spd: 85, spe: 60 }
},
vulpix: {
inherit: true,
baseStats: { hp: 38, atk: 41, def: 40, spa: 65, spd: 65, spe: 65 }
},
ninetales: {
inherit: true,
baseStats: { hp: 73, atk: 76, def: 75, spa: 100, spd: 100, spe: 100 }
},
jigglypuff: {
inherit: true,
baseStats: { hp: 115, atk: 45, def: 20, spa: 25, spd: 25, spe: 20 }
},
wigglytuff: {
inherit: true,
baseStats: { hp: 140, atk: 70, def: 45, spa: 50, spd: 50, spe: 45 }
},
zubat: {
inherit: true,
baseStats: { hp: 40, atk: 45, def: 35, spa: 40, spd: 40, spe: 55 }
},
golbat: {
inherit: true,
baseStats: { hp: 75, atk: 80, def: 70, spa: 75, spd: 75, spe: 90 }
},
oddish: {
inherit: true,
baseStats: { hp: 45, atk: 50, def: 55, spa: 75, spd: 75, spe: 30 }
},
gloom: {
inherit: true,
baseStats: { hp: 60, atk: 65, def: 70, spa: 85, spd: 85, spe: 40 }
},
vileplume: {
inherit: true,
baseStats: { hp: 75, atk: 80, def: 85, spa: 100, spd: 100, spe: 50 }
},
paras: {
inherit: true,
baseStats: { hp: 35, atk: 70, def: 55, spa: 55, spd: 55, spe: 25 }
},
parasect: {
inherit: true,
baseStats: { hp: 60, atk: 95, def: 80, spa: 80, spd: 80, spe: 30 }
},
venonat: {
inherit: true,
baseStats: { hp: 60, atk: 55, def: 50, spa: 40, spd: 40, spe: 45 }
},
venomoth: {
inherit: true,
baseStats: { hp: 70, atk: 65, def: 60, spa: 90, spd: 90, spe: 90 }
},
diglett: {
inherit: true,
baseStats: { hp: 10, atk: 55, def: 25, spa: 45, spd: 45, spe: 95 }
},
dugtrio: {
inherit: true,
baseStats: { hp: 35, atk: 80, def: 50, spa: 70, spd: 70, spe: 120 }
},
meowth: {
inherit: true,
baseStats: { hp: 40, atk: 45, def: 35, spa: 40, spd: 40, spe: 90 }
},
persian: {
inherit: true,
baseStats: { hp: 65, atk: 70, def: 60, spa: 65, spd: 65, spe: 115 }
},
psyduck: {
inherit: true,
baseStats: { hp: 50, atk: 52, def: 48, spa: 50, spd: 50, spe: 55 }
},
golduck: {
inherit: true,
baseStats: { hp: 80, atk: 82, def: 78, spa: 80, spd: 80, spe: 85 }
},
mankey: {
inherit: true,
baseStats: { hp: 40, atk: 80, def: 35, spa: 35, spd: 35, spe: 70 }
},
primeape: {
inherit: true,
baseStats: { hp: 65, atk: 105, def: 60, spa: 60, spd: 60, spe: 95 }
},
growlithe: {
inherit: true,
baseStats: { hp: 55, atk: 70, def: 45, spa: 50, spd: 50, spe: 60 }
},
arcanine: {
inherit: true,
baseStats: { hp: 90, atk: 110, def: 80, spa: 80, spd: 80, spe: 95 }
},
poliwag: {
inherit: true,
baseStats: { hp: 40, atk: 50, def: 40, spa: 40, spd: 40, spe: 90 }
},
poliwhirl: {
inherit: true,
baseStats: { hp: 65, atk: 65, def: 65, spa: 50, spd: 50, spe: 90 }
},
poliwrath: {
inherit: true,
baseStats: { hp: 90, atk: 85, def: 95, spa: 70, spd: 70, spe: 70 }
},
abra: {
inherit: true,
baseStats: { hp: 25, atk: 20, def: 15, spa: 105, spd: 105, spe: 90 }
},
kadabra: {
inherit: true,
baseStats: { hp: 40, atk: 35, def: 30, spa: 120, spd: 120, spe: 105 }
},
alakazam: {
inherit: true,
baseStats: { hp: 55, atk: 50, def: 45, spa: 135, spd: 135, spe: 120 }
},
machop: {
inherit: true,
baseStats: { hp: 70, atk: 80, def: 50, spa: 35, spd: 35, spe: 35 }
},
machoke: {
inherit: true,
baseStats: { hp: 80, atk: 100, def: 70, spa: 50, spd: 50, spe: 45 }
},
machamp: {
inherit: true,
baseStats: { hp: 90, atk: 130, def: 80, spa: 65, spd: 65, spe: 55 }
},
bellsprout: {
inherit: true,
baseStats: { hp: 50, atk: 75, def: 35, spa: 70, spd: 70, spe: 40 }
},
weepinbell: {
inherit: true,
baseStats: { hp: 65, atk: 90, def: 50, spa: 85, spd: 85, spe: 55 }
},
victreebel: {
inherit: true,
baseStats: { hp: 80, atk: 105, def: 65, spa: 100, spd: 100, spe: 70 }
},
tentacool: {
inherit: true,
baseStats: { hp: 40, atk: 40, def: 35, spa: 100, spd: 100, spe: 70 }
},
tentacruel: {
inherit: true,
baseStats: { hp: 80, atk: 70, def: 65, spa: 120, spd: 120, spe: 100 }
},
geodude: {
inherit: true,
baseStats: { hp: 40, atk: 80, def: 100, spa: 30, spd: 30, spe: 20 }
},
graveler: {
inherit: true,
baseStats: { hp: 55, atk: 95, def: 115, spa: 45, spd: 45, spe: 35 }
},
golem: {
inherit: true,
baseStats: { hp: 80, atk: 110, def: 130, spa: 55, spd: 55, spe: 45 }
},
ponyta: {
inherit: true,
baseStats: { hp: 50, atk: 85, def: 55, spa: 65, spd: 65, spe: 90 }
},
rapidash: {
inherit: true,
baseStats: { hp: 65, atk: 100, def: 70, spa: 80, spd: 80, spe: 105 }
},
slowpoke: {
inherit: true,
baseStats: { hp: 90, atk: 65, def: 65, spa: 40, spd: 40, spe: 15 }
},
slowbro: {
inherit: true,
baseStats: { hp: 95, atk: 75, def: 110, spa: 80, spd: 80, spe: 30 }
},
magnemite: {
inherit: true,
types: ["Electric"],
baseStats: { hp: 25, atk: 35, def: 70, spa: 95, spd: 95, spe: 45 }
},
magneton: {
inherit: true,
types: ["Electric"],
baseStats: { hp: 50, atk: 60, def: 95, spa: 120, spd: 120, spe: 70 }
},
farfetchd: {
inherit: true,
baseStats: { hp: 52, atk: 65, def: 55, spa: 58, spd: 58, spe: 60 }
},
doduo: {
inherit: true,
baseStats: { hp: 35, atk: 85, def: 45, spa: 35, spd: 35, spe: 75 }
},
dodrio: {
inherit: true,
baseStats: { hp: 60, atk: 110, def: 70, spa: 60, spd: 60, spe: 100 }
},
seel: {
inherit: true,
baseStats: { hp: 65, atk: 45, def: 55, spa: 70, spd: 70, spe: 45 }
},
dewgong: {
inherit: true,
baseStats: { hp: 90, atk: 70, def: 80, spa: 95, spd: 95, spe: 70 }
},
grimer: {
inherit: true,
baseStats: { hp: 80, atk: 80, def: 50, spa: 40, spd: 40, spe: 25 }
},
muk: {
inherit: true,
baseStats: { hp: 105, atk: 105, def: 75, spa: 65, spd: 65, spe: 50 }
},
shellder: {
inherit: true,
baseStats: { hp: 30, atk: 65, def: 100, spa: 45, spd: 45, spe: 40 }
},
cloyster: {
inherit: true,
baseStats: { hp: 50, atk: 95, def: 180, spa: 85, spd: 85, spe: 70 }
},
gastly: {
inherit: true,
baseStats: { hp: 30, atk: 35, def: 30, spa: 100, spd: 100, spe: 80 }
},
haunter: {
inherit: true,
baseStats: { hp: 45, atk: 50, def: 45, spa: 115, spd: 115, spe: 95 }
},
gengar: {
inherit: true,
baseStats: { hp: 60, atk: 65, def: 60, spa: 130, spd: 130, spe: 110 }
},
onix: {
inherit: true,
baseStats: { hp: 35, atk: 45, def: 160, spa: 30, spd: 30, spe: 70 }
},
drowzee: {
inherit: true,
baseStats: { hp: 60, atk: 48, def: 45, spa: 90, spd: 90, spe: 42 }
},
hypno: {
inherit: true,
baseStats: { hp: 85, atk: 73, def: 70, spa: 115, spd: 115, spe: 67 }
},
krabby: {
inherit: true,
baseStats: { hp: 30, atk: 105, def: 90, spa: 25, spd: 25, spe: 50 }
},
kingler: {
inherit: true,
baseStats: { hp: 55, atk: 130, def: 115, spa: 50, spd: 50, spe: 75 }
},
voltorb: {
inherit: true,
baseStats: { hp: 40, atk: 30, def: 50, spa: 55, spd: 55, spe: 100 }
},
electrode: {
inherit: true,
baseStats: { hp: 60, atk: 50, def: 70, spa: 80, spd: 80, spe: 140 }
},
exeggcute: {
inherit: true,
baseStats: { hp: 60, atk: 40, def: 80, spa: 60, spd: 60, spe: 40 }
},
exeggutor: {
inherit: true,
baseStats: { hp: 95, atk: 95, def: 85, spa: 125, spd: 125, spe: 55 }
},
cubone: {
inherit: true,
baseStats: { hp: 50, atk: 50, def: 95, spa: 40, spd: 40, spe: 35 }
},
marowak: {
inherit: true,
baseStats: { hp: 60, atk: 80, def: 110, spa: 50, spd: 50, spe: 45 }
},
hitmonlee: {
inherit: true,
baseStats: { hp: 50, atk: 120, def: 53, spa: 35, spd: 35, spe: 87 }
},
hitmonchan: {
inherit: true,
baseStats: { hp: 50, atk: 105, def: 79, spa: 35, spd: 35, spe: 76 }
},
lickitung: {
inherit: true,
baseStats: { hp: 90, atk: 55, def: 75, spa: 60, spd: 60, spe: 30 }
},
koffing: {
inherit: true,
baseStats: { hp: 40, atk: 65, def: 95, spa: 60, spd: 60, spe: 35 }
},
weezing: {
inherit: true,
baseStats: { hp: 65, atk: 90, def: 120, spa: 85, spd: 85, spe: 60 }
},
rhyhorn: {
inherit: true,
baseStats: { hp: 80, atk: 85, def: 95, spa: 30, spd: 30, spe: 25 }
},
rhydon: {
inherit: true,
baseStats: { hp: 105, atk: 130, def: 120, spa: 45, spd: 45, spe: 40 }
},
chansey: {
inherit: true,
baseStats: { hp: 250, atk: 5, def: 5, spa: 105, spd: 105, spe: 50 }
},
tangela: {
inherit: true,
baseStats: { hp: 65, atk: 55, def: 115, spa: 100, spd: 100, spe: 60 }
},
kangaskhan: {
inherit: true,
baseStats: { hp: 105, atk: 95, def: 80, spa: 40, spd: 40, spe: 90 }
},
horsea: {
inherit: true,
baseStats: { hp: 30, atk: 40, def: 70, spa: 70, spd: 70, spe: 60 }
},
seadra: {
inherit: true,
baseStats: { hp: 55, atk: 65, def: 95, spa: 95, spd: 95, spe: 85 }
},
goldeen: {
inherit: true,
baseStats: { hp: 45, atk: 67, def: 60, spa: 50, spd: 50, spe: 63 }
},
seaking: {
inherit: true,
baseStats: { hp: 80, atk: 92, def: 65, spa: 80, spd: 80, spe: 68 }
},
staryu: {
inherit: true,
baseStats: { hp: 30, atk: 45, def: 55, spa: 70, spd: 70, spe: 85 }
},
starmie: {
inherit: true,
baseStats: { hp: 60, atk: 75, def: 85, spa: 100, spd: 100, spe: 115 }
},
mrmime: {
inherit: true,
baseStats: { hp: 40, atk: 45, def: 65, spa: 100, spd: 100, spe: 90 }
},
scyther: {
inherit: true,
baseStats: { hp: 70, atk: 110, def: 80, spa: 55, spd: 55, spe: 105 }
},
jynx: {
inherit: true,
baseStats: { hp: 65, atk: 50, def: 35, spa: 95, spd: 95, spe: 95 }
},
electabuzz: {
inherit: true,
baseStats: { hp: 65, atk: 83, def: 57, spa: 85, spd: 85, spe: 105 }
},
magmar: {
inherit: true,
baseStats: { hp: 65, atk: 95, def: 57, spa: 85, spd: 85, spe: 93 }
},
pinsir: {
inherit: true,
baseStats: { hp: 65, atk: 125, def: 100, spa: 55, spd: 55, spe: 85 }
},
tauros: {
inherit: true,
baseStats: { hp: 75, atk: 100, def: 95, spa: 70, spd: 70, spe: 110 }
},
magikarp: {
inherit: true,
baseStats: { hp: 20, atk: 10, def: 55, spa: 20, spd: 20, spe: 80 }
},
gyarados: {
inherit: true,
baseStats: { hp: 95, atk: 125, def: 79, spa: 100, spd: 100, spe: 81 }
},
lapras: {
inherit: true,
baseStats: { hp: 130, atk: 85, def: 80, spa: 95, spd: 95, spe: 60 }
},
ditto: {
inherit: true,
baseStats: { hp: 48, atk: 48, def: 48, spa: 48, spd: 48, spe: 48 }
},
eevee: {
inherit: true,
baseStats: { hp: 55, atk: 55, def: 50, spa: 65, spd: 65, spe: 55 }
},
vaporeon: {
inherit: true,
baseStats: { hp: 130, atk: 65, def: 60, spa: 110, spd: 110, spe: 65 }
},
jolteon: {
inherit: true,
baseStats: { hp: 65, atk: 65, def: 60, spa: 110, spd: 110, spe: 130 }
},
flareon: {
inherit: true,
baseStats: { hp: 65, atk: 130, def: 60, spa: 110, spd: 110, spe: 65 }
},
porygon: {
inherit: true,
baseStats: { hp: 65, atk: 60, def: 70, spa: 75, spd: 75, spe: 40 }
},
omanyte: {
inherit: true,
baseStats: { hp: 35, atk: 40, def: 100, spa: 90, spd: 90, spe: 35 }
},
omastar: {
inherit: true,
baseStats: { hp: 70, atk: 60, def: 125, spa: 115, spd: 115, spe: 55 }
},
kabuto: {
inherit: true,
baseStats: { hp: 30, atk: 80, def: 90, spa: 45, spd: 45, spe: 55 }
},
kabutops: {
inherit: true,
baseStats: { hp: 60, atk: 115, def: 105, spa: 70, spd: 70, spe: 80 }
},
aerodactyl: {
inherit: true,
baseStats: { hp: 80, atk: 105, def: 65, spa: 60, spd: 60, spe: 130 }
},
snorlax: {
inherit: true,
baseStats: { hp: 160, atk: 110, def: 65, spa: 65, spd: 65, spe: 30 }
},
articuno: {
inherit: true,
baseStats: { hp: 90, atk: 85, def: 100, spa: 125, spd: 125, spe: 85 }
},
zapdos: {
inherit: true,
baseStats: { hp: 90, atk: 90, def: 85, spa: 125, spd: 125, spe: 100 }
},
moltres: {
inherit: true,
baseStats: { hp: 90, atk: 100, def: 90, spa: 125, spd: 125, spe: 90 }
},
dratini: {
inherit: true,
baseStats: { hp: 41, atk: 64, def: 45, spa: 50, spd: 50, spe: 50 }
},
dragonair: {
inherit: true,
baseStats: { hp: 61, atk: 84, def: 65, spa: 70, spd: 70, spe: 70 }
},
dragonite: {
inherit: true,
baseStats: { hp: 91, atk: 134, def: 95, spa: 100, spd: 100, spe: 80 }
},
mewtwo: {
inherit: true,
baseStats: { hp: 106, atk: 110, def: 90, spa: 154, spd: 154, spe: 130 }
},
mew: {
inherit: true,
baseStats: { hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100 }
}
};
//# sourceMappingURL=pokedex.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/pokedex.ts"],
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\tmissingno: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 33, atk: 136, def: 0, spa: 6, spd: 6, spe: 29},\r\n\t},\r\n\tbulbasaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 49, def: 49, spa: 65, spd: 65, spe: 45},\r\n\t},\r\n\tivysaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 62, def: 63, spa: 80, spd: 80, spe: 60},\r\n\t},\r\n\tvenusaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 80, atk: 82, def: 83, spa: 100, spd: 100, spe: 80},\r\n\t},\r\n\tcharmander: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 39, atk: 52, def: 43, spa: 50, spd: 50, spe: 65},\r\n\t},\r\n\tcharmeleon: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 58, atk: 64, def: 58, spa: 65, spd: 65, spe: 80},\r\n\t},\r\n\tcharizard: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 78, atk: 84, def: 78, spa: 85, spd: 85, spe: 100},\r\n\t},\r\n\tsquirtle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 44, atk: 48, def: 65, spa: 50, spd: 50, spe: 43},\r\n\t},\r\n\twartortle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 59, atk: 63, def: 80, spa: 65, spd: 65, spe: 58},\r\n\t},\r\n\tblastoise: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 79, atk: 83, def: 100, spa: 85, spd: 85, spe: 78},\r\n\t},\r\n\tcaterpie: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 30, def: 35, spa: 20, spd: 20, spe: 45},\r\n\t},\r\n\tmetapod: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 50, atk: 20, def: 55, spa: 25, spd: 25, spe: 30},\r\n\t},\r\n\tbutterfree: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70},\r\n\t},\r\n\tweedle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 35, def: 30, spa: 20, spd: 20, spe: 50},\r\n\t},\r\n\tkakuna: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 25, def: 50, spa: 25, spd: 25, spe: 35},\r\n\t},\r\n\tbeedrill: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 65, atk: 80, def: 40, spa: 45, spd: 45, spe: 75},\r\n\t},\r\n\tpidgey: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 45, def: 40, spa: 35, spd: 35, spe: 56},\r\n\t},\r\n\tpidgeotto: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 63, atk: 60, def: 55, spa: 50, spd: 50, spe: 71},\r\n\t},\r\n\tpidgeot: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91},\r\n\t},\r\n\trattata: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 30, atk: 56, def: 35, spa: 25, spd: 25, spe: 72},\r\n\t},\r\n\traticate: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 55, atk: 81, def: 60, spa: 50, spd: 50, spe: 97},\r\n\t},\r\n\tspearow: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 60, def: 30, spa: 31, spd: 31, spe: 70},\r\n\t},\r\n\tfearow: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 65, atk: 90, def: 65, spa: 61, spd: 61, spe: 100},\r\n\t},\r\n\tekans: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 35, atk: 60, def: 44, spa: 40, spd: 40, spe: 55},\r\n\t},\r\n\tarbok: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 85, def: 69, spa: 65, spd: 65, spe: 80},\r\n\t},\r\n\tpikachu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 35, atk: 55, def: 30, spa: 50, spd: 50, spe: 90},\r\n\t},\r\n\traichu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 90, def: 55, spa: 90, spd: 90, spe: 100},\r\n\t},\r\n\tsandshrew: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 50, atk: 75, def: 85, spa: 30, spd: 30, spe: 40},\r\n\t},\r\n\tsandslash: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 75, atk: 100, def: 110, spa: 55, spd: 55, spe: 65},\r\n\t},\r\n\tnidoranf: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 55, atk: 47, def: 52, spa: 40, spd: 40, spe: 41},\r\n\t},\r\n\tnidorina: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 70, atk: 62, def: 67, spa: 55, spd: 55, spe: 56},\r\n\t},\r\n\tnidoqueen: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 90, atk: 82, def: 87, spa: 75, spd: 75, spe: 76},\r\n\t},\r\n\tnidoranm: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 46, atk: 57, def: 40, spa: 40, spd: 40, spe: 50},\r\n\t},\r\n\tnidorino: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 61, atk: 72, def: 57, spa: 55, spd: 55, spe: 65},\r\n\t},\r\n\tnidoking: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 81, atk: 92, def: 77, spa: 75, spd: 75, spe: 85},\r\n\t},\r\n\tclefairy: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 70, atk: 45, def: 48, spa: 60, spd: 60, spe: 35},\r\n\t},\r\n\tclefable: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 95, atk: 70, def: 73, spa: 85, spd: 85, spe: 60},\r\n\t},\r\n\tvulpix: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 38, atk: 41, def: 40, spa: 65, spd: 65, spe: 65},\r\n\t},\r\n\tninetales: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 73, atk: 76, def: 75, spa: 100, spd: 100, spe: 100},\r\n\t},\r\n\tjigglypuff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 115, atk: 45, def: 20, spa: 25, spd: 25, spe: 20},\r\n\t},\r\n\twigglytuff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 140, atk: 70, def: 45, spa: 50, spd: 50, spe: 45},Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAA4C;AAAA,EACxD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,KAAK,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAE;AAAA,EAC9D;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK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,KAAK,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,IAAG;AAAA,EACnE;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EACjE;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAKLine truncated
"names": []
}
+612
View File
@@ -0,0 +1,612 @@
{
"bulbasaur": {
"moves": ["bodyslam", "sleeppowder"],
"essentialMove": "razorleaf",
"exclusiveMoves": ["megadrain", "swordsdance", "swordsdance"]
},
"ivysaur": {
"moves": ["bodyslam", "sleeppowder", "swordsdance"],
"essentialMove": "razorleaf"
},
"venusaur": {
"moves": ["bodyslam", "hyperbeam", "sleeppowder", "swordsdance"],
"essentialMove": "razorleaf"
},
"charmander": {
"moves": ["bodyslam", "slash"],
"essentialMove": "fireblast",
"exclusiveMoves": ["counter", "seismictoss"],
"comboMoves": ["bodyslam", "fireblast", "submission", "swordsdance"]
},
"charmeleon": {
"moves": ["bodyslam", "slash"],
"essentialMove": "fireblast",
"exclusiveMoves": ["counter", "swordsdance"],
"comboMoves": ["bodyslam", "fireblast", "submission", "swordsdance"]
},
"charizard": {
"moves": ["bodyslam", "earthquake", "slash"],
"essentialMove": "fireblast",
"comboMoves": ["hyperbeam", "swordsdance"]
},
"squirtle": {
"moves": ["blizzard", "hydropump", "seismictoss", "surf"],
"exclusiveMoves": ["bodyslam", "counter"]
},
"wartortle": {
"moves": ["blizzard", "bodyslam", "hydropump", "surf"],
"exclusiveMoves": ["counter", "rest", "seismictoss"]
},
"blastoise": {
"moves": ["blizzard", "bodyslam", "hydropump", "surf"],
"exclusiveMoves": ["earthquake", "rest"]
},
"butterfree": {
"moves": ["psychic", "sleeppowder", "stunspore"],
"exclusiveMoves": ["megadrain", "psywave"]
},
"beedrill": {
"moves": ["megadrain", "swordsdance", "twineedle"],
"exclusiveMoves": ["doubleedge", "doubleedge", "hyperbeam"],
"comboMoves": ["agility", "hyperbeam", "swordsdance", "twineedle"]
},
"pidgey": {
"moves": ["agility", "doubleedge", "skyattack"],
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "substitute", "quickattack", "toxic"]
},
"pidgeotto": {
"moves": ["agility", "doubleedge", "skyattack"],
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "substitute", "quickattack", "toxic"]
},
"pidgeot": {
"moves": ["agility", "doubleedge", "hyperbeam"],
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "skyattack", "skyattack", "substitute", "quickattack", "toxic"]
},
"rattata": {
"moves": ["blizzard", "bodyslam"],
"essentialMove": "superfang",
"exclusiveMoves": ["thunderbolt", "thunderbolt", "quickattack"]
},
"raticate": {
"moves": ["blizzard", "bodyslam", "hyperbeam"],
"essentialMove": "superfang"
},
"spearow": {
"moves": ["agility", "doubleedge", "drillpeck"],
"exclusiveMoves": ["leer", "mimic", "mirrormove", "substitute", "toxic"]
},
"fearow": {
"moves": ["agility", "doubleedge", "drillpeck", "hyperbeam"]
},
"ekans": {
"moves": ["bodyslam", "earthquake", "glare", "rockslide"]
},
"arbok": {
"moves": ["earthquake", "glare", "hyperbeam"],
"exclusiveMoves": ["bodyslam", "rockslide"]
},
"pikachu": {
"moves": ["surf", "thunderwave"],
"essentialMove": "thunderbolt",
"exclusiveMoves": ["agility", "bodyslam", "seismictoss", "thunder"]
},
"raichu": {
"moves": ["surf", "thunderwave"],
"essentialMove": "thunderbolt",
"exclusiveMoves": ["agility", "bodyslam", "hyperbeam", "seismictoss", "thunder"]
},
"sandshrew": {
"moves": ["bodyslam", "rockslide", "swordsdance"],
"essentialMove": "earthquake"
},
"sandslash": {
"moves": ["bodyslam", "rockslide", "swordsdance"],
"essentialMove": "earthquake"
},
"nidoranf": {
"moves": ["blizzard", "bodyslam", "thunderbolt"],
"exclusiveMoves": ["doubleedge", "doublekick"]
},
"nidorina": {
"moves": ["blizzard", "bodyslam", "thunderbolt"],
"exclusiveMoves": ["bubblebeam", "doubleedge", "doublekick"]
},
"nidoqueen": {
"moves": ["blizzard", "bodyslam", "thunderbolt"],
"essentialMove": "earthquake"
},
"nidoranm": {
"moves": ["blizzard", "bodyslam", "thunderbolt"],
"exclusiveMoves": ["doubleedge", "doublekick"]
},
"nidorino": {
"moves": ["blizzard", "bodyslam", "thunderbolt"],
"exclusiveMoves": ["bubblebeam", "doubleedge", "doublekick"]
},
"nidoking": {
"moves": ["blizzard", "bodyslam"],
"essentialMove": "earthquake",
"exclusiveMoves": ["rockslide", "thunder", "thunderbolt"]
},
"clefairy": {
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
"essentialMove": "blizzard",
"exclusiveMoves": ["counter", "psychic", "seismictoss", "sing", "sing"]
},
"clefable": {
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
"essentialMove": "blizzard",
"exclusiveMoves": ["counter", "hyperbeam", "psychic", "sing", "sing"]
},
"vulpix": {
"moves": ["bodyslam", "confuseray", "fireblast"],
"exclusiveMoves": ["flamethrower", "reflect", "substitute"]
},
"ninetales": {
"moves": ["bodyslam", "confuseray", "fireblast"],
"exclusiveMoves": ["flamethrower", "hyperbeam", "reflect", "substitute"]
},
"jigglypuff": {
"moves": ["blizzard", "bodyslam", "seismictoss", "thunderwave"],
"exclusiveMoves": ["counter", "sing"]
},
"wigglytuff": {
"moves": ["blizzard", "bodyslam", "thunderwave"],
"exclusiveMoves": ["counter", "hyperbeam", "sing"]
},
"zubat": {
"moves": ["confuseray", "doubleedge", "megadrain", "toxic"]
},
"golbat": {
"moves": ["confuseray", "doubleedge", "hyperbeam", "megadrain"]
},
"oddish": {
"moves": ["doubleedge", "sleeppowder"],
"essentialMove": "megadrain",
"exclusiveMoves": ["stunspore", "stunspore", "swordsdance"]
},
"gloom": {
"moves": ["doubleedge", "sleeppowder"],
"essentialMove": "megadrain",
"exclusiveMoves": ["stunspore", "stunspore", "swordsdance"]
},
"vileplume": {
"moves": ["bodyslam", "sleeppowder", "stunspore", "swordsdance"],
"essentialMove": "megadrain"
},
"paras": {
"moves": ["bodyslam", "megadrain"],
"essentialMove": "spore",
"exclusiveMoves": ["growth", "slash", "stunspore", "stunspore", "swordsdance"]
},
"parasect": {
"moves": ["bodyslam", "megadrain"],
"essentialMove": "spore",
"exclusiveMoves": ["growth", "hyperbeam", "slash", "stunspore", "stunspore", "swordsdance"]
},
"venonat": {
"moves": ["psychic", "sleeppowder", "stunspore"],
"exclusiveMoves": ["doubleedge", "megadrain", "psywave"]
},
"venomoth": {
"moves": ["psychic", "sleeppowder", "stunspore"],
"exclusiveMoves": ["doubleedge", "megadrain", "megadrain"]
},
"diglett": {
"moves": ["bodyslam", "rockslide", "slash"],
"essentialMove": "earthquake"
},
"dugtrio": {
"moves": ["bodyslam", "rockslide", "slash"],
"essentialMove": "earthquake"
},
"meowth": {
"moves": ["bodyslam", "bubblebeam"],
"essentialMove": "slash",
"exclusiveMoves": ["thunder", "thunderbolt"]
},
"persian": {
"moves": ["bodyslam", "bubblebeam"],
"essentialMove": "slash",
"exclusiveMoves": ["hyperbeam", "hyperbeam", "thunder", "thunderbolt"]
},
"psyduck": {
"moves": ["amnesia", "blizzard"],
"essentialMove": "surf",
"exclusiveMoves": ["bodyslam", "hydropump", "rest", "seismictoss"]
},
"golduck": {
"moves": ["amnesia", "blizzard"],
"essentialMove": "surf",
"exclusiveMoves": ["bodyslam", "hydropump", "rest", "seismictoss"]
},
"mankey": {
"moves": ["bodyslam", "rockslide", "submission"],
"exclusiveMoves": ["counter", "megakick"]
},
"primeape": {
"moves": ["bodyslam", "rockslide", "submission"],
"exclusiveMoves": ["counter", "hyperbeam", "hyperbeam"]
},
"growlithe": {
"moves": ["bodyslam", "fireblast", "flamethrower", "reflect"]
},
"arcanine": {
"moves": ["bodyslam", "fireblast", "hyperbeam"],
"exclusiveMoves": ["flamethrower", "reflect"]
},
"poliwag": {
"moves": ["blizzard", "surf"],
"essentialMove": "amnesia",
"exclusiveMoves": ["hypnosis", "hypnosis", "psychic"]
},
"poliwhirl": {
"moves": ["blizzard", "surf"],
"essentialMove": "amnesia",
"exclusiveMoves": ["counter", "hypnosis", "hypnosis", "psychic"]
},
"poliwrath": {
"moves": ["blizzard", "bodyslam", "earthquake", "submission"],
"essentialMove": "surf",
"exclusiveMoves": ["hypnosis", "hypnosis", "psychic"],
"comboMoves": ["amnesia", "blizzard"]
},
"abra": {
"moves": ["psychic", "seismictoss", "thunderwave"],
"exclusiveMoves": ["counter", "reflect"]
},
"kadabra": {
"moves": ["psychic", "recover", "thunderwave"],
"exclusiveMoves": ["counter", "reflect", "reflect", "seismictoss", "seismictoss"]
},
"alakazam": {
"moves": ["psychic", "recover", "thunderwave"],
"exclusiveMoves": ["counter", "reflect", "reflect", "seismictoss", "seismictoss"]
},
"machop": {
"moves": ["bodyslam", "earthquake", "submission"],
"exclusiveMoves": ["counter", "rockslide", "rockslide"]
},
"machoke": {
"moves": ["bodyslam", "earthquake", "submission"],
"exclusiveMoves": ["counter", "rockslide", "rockslide"]
},
"machamp": {
"moves": ["bodyslam", "earthquake", "submission"],
"exclusiveMoves": ["counter", "hyperbeam", "rockslide", "rockslide"]
},
"bellsprout": {
"moves": ["doubleedge", "sleeppowder", "stunspore", "swordsdance"],
"essentialMove": "razorleaf"
},
"weepinbell": {
"moves": ["doubleedge", "sleeppowder", "stunspore", "swordsdance"],
"essentialMove": "razorleaf"
},
"victreebel": {
"moves": ["bodyslam", "sleeppowder", "stunspore"],
"essentialMove": "razorleaf",
"comboMoves": ["hyperbeam", "swordsdance"]
},
"tentacool": {
"moves": ["barrier", "hydropump", "surf"],
"essentialMove": "blizzard",
"exclusiveMoves": ["megadrain", "megadrain"],
"comboMoves": ["hydropump", "surf"]
},
"tentacruel": {
"moves": ["blizzard", "hydropump", "hyperbeam", "surf"],
"essentialMove": "swordsdance"
},
"geodude": {
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
},
"graveler": {
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
},
"golem": {
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
},
"ponyta": {
"moves": ["agility", "bodyslam", "fireblast", "reflect"]
},
"rapidash": {
"moves": ["agility", "bodyslam", "fireblast", "hyperbeam"]
},
"slowpoke": {
"moves": ["earthquake", "surf"],
"essentialMove": "thunderwave",
"exclusiveMoves": ["blizzard", "psychic", "rest"],
"comboMoves": ["amnesia", "surf"]
},
"slowbro": {
"moves": ["amnesia", "surf", "thunderwave"],
"exclusiveMoves": ["blizzard", "psychic", "rest", "rest"]
},
"magnemite": {
"moves": ["thunder", "thunderbolt", "thunderwave"],
"exclusiveMoves": ["doubleedge", "mimic", "substitute", "toxic"]
},
"magneton": {
"moves": ["thunder", "thunderbolt", "thunderwave"],
"exclusiveMoves": ["doubleedge", "hyperbeam", "hyperbeam", "mimic", "substitute", "toxic"]
},
"farfetchd": {
"moves": ["agility", "bodyslam", "swordsdance"],
"essentialMove": "slash"
},
"doduo": {
"moves": ["agility", "bodyslam", "doubleedge", "drillpeck"]
},
"dodrio": {
"moves": ["agility", "bodyslam", "drillpeck", "hyperbeam"]
},
"seel": {
"moves": ["blizzard", "bodyslam", "surf"],
"exclusiveMoves": ["mimic", "rest"]
},
"dewgong": {
"moves": ["blizzard", "bodyslam", "surf"],
"exclusiveMoves": ["hyperbeam", "mimic", "rest", "rest"]
},
"grimer": {
"moves": ["bodyslam", "sludge"],
"essentialMove": "explosion",
"exclusiveMoves": ["fireblast", "megadrain", "megadrain", "screech"]
},
"muk": {
"moves": ["bodyslam", "sludge"],
"essentialMove": "explosion",
"exclusiveMoves": ["fireblast", "hyperbeam", "megadrain", "megadrain"]
},
"shellder": {
"moves": ["blizzard", "doubleedge", "explosion", "surf"]
},
"cloyster": {
"moves": ["blizzard", "explosion", "surf"],
"exclusiveMoves": ["doubleedge", "hyperbeam", "hyperbeam"]
},
"gastly": {
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
"essentialMove": "thunderbolt",
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
},
"haunter": {
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
"essentialMove": "thunderbolt",
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
},
"gengar": {
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
"essentialMove": "thunderbolt",
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
},
"onix": {
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
},
"drowzee": {
"moves": ["hypnosis", "psychic", "thunderwave"],
"exclusiveMoves": ["counter", "reflect", "rest", "seismictoss", "seismictoss"]
},
"hypno": {
"moves": ["hypnosis", "psychic", "thunderwave"],
"exclusiveMoves": ["counter", "reflect", "rest", "rest", "seismictoss", "seismictoss"]
},
"krabby": {
"moves": ["blizzard", "bodyslam", "crabhammer", "swordsdance"]
},
"kingler": {
"moves": ["bodyslam", "crabhammer", "hyperbeam", "swordsdance"]
},
"voltorb": {
"moves": ["explosion", "thunderbolt", "thunderwave"],
"exclusiveMoves": ["screech", "thunder", "toxic"]
},
"electrode": {
"moves": ["explosion", "thunderbolt", "thunderwave"],
"exclusiveMoves": ["hyperbeam", "screech", "thunder", "toxic"]
},
"exeggcute": {
"moves": ["sleeppowder", "stunspore"],
"essentialMove": "psychic",
"exclusiveMoves": ["doubleedge", "explosion", "explosion"]
},
"exeggutor": {
"moves": ["explosion", "psychic", "sleeppowder"],
"exclusiveMoves": ["doubleedge", "eggbomb", "hyperbeam", "megadrain", "megadrain", "stunspore", "stunspore", "stunspore"]
},
"cubone": {
"moves": ["blizzard", "bodyslam", "earthquake", "seismictoss"]
},
"marowak": {
"moves": ["blizzard", "bodyslam", "earthquake", "seismictoss"]
},
"hitmonlee": {
"moves": ["bodyslam", "highjumpkick", "seismictoss"],
"exclusiveMoves": ["counter", "counter", "meditate"]
},
"hitmonchan": {
"moves": ["bodyslam", "seismictoss", "submission"],
"exclusiveMoves": ["agility", "counter", "counter"]
},
"lickitung": {
"moves": ["hyperbeam", "swordsdance"],
"essentialMove": "bodyslam",
"exclusiveMoves": ["blizzard", "earthquake", "earthquake", "earthquake"]
},
"koffing": {
"moves": ["explosion", "fireblast", "sludge", "thunderbolt"]
},
"weezing": {
"moves": ["explosion", "fireblast", "sludge", "thunderbolt"]
},
"rhyhorn": {
"moves": ["bodyslam", "earthquake", "rockslide", "substitute"]
},
"rhydon": {
"moves": ["bodyslam", "earthquake", "rockslide"],
"exclusiveMoves": ["hyperbeam", "substitute", "substitute"]
},
"chansey": {
"moves": ["icebeam", "thunderwave"],
"essentialMove": "softboiled",
"exclusiveMoves": ["counter", "reflect", "seismictoss", "sing", "thunderbolt", "thunderbolt", "thunderbolt"]
},
"tangela": {
"moves": ["bodyslam", "sleeppowder"],
"essentialMove": "megadrain",
"exclusiveMoves": ["growth", "stunspore", "stunspore", "stunspore", "swordsdance", "swordsdance"]
},
"kangaskhan": {
"moves": ["bodyslam", "earthquake", "hyperbeam"],
"exclusiveMoves": ["counter", "rockslide", "rockslide", "surf"]
},
"horsea": {
"moves": ["agility", "blizzard"],
"essentialMove": "surf",
"exclusiveMoves": ["doubleedge", "hydropump", "smokescreen"]
},
"seadra": {
"moves": ["agility", "blizzard"],
"essentialMove": "surf",
"exclusiveMoves": ["doubleedge", "hydropump", "hyperbeam", "smokescreen"]
},
"goldeen": {
"moves": ["agility", "blizzard", "doubleedge", "surf"]
},
"seaking": {
"moves": ["blizzard", "doubleedge", "surf"],
"exclusiveMoves": ["agility", "agility", "hyperbeam"]
},
"staryu": {
"moves": ["blizzard", "thunderbolt", "thunderwave"],
"essentialMove": "recover",
"exclusiveMoves": ["hydropump", "surf", "surf"]
},
"starmie": {
"moves": ["blizzard", "thunderbolt", "thunderwave"],
"essentialMove": "recover",
"exclusiveMoves": ["hydropump", "psychic", "surf", "surf"]
},
"mrmime": {
"moves": ["psychic", "seismictoss", "thunderbolt", "thunderwave"]
},
"scyther": {
"moves": ["agility", "hyperbeam", "slash", "swordsdance"]
},
"jynx": {
"moves": ["blizzard", "lovelykiss", "psychic"],
"exclusiveMoves": ["bodyslam", "counter", "counter", "mimic", "seismictoss"]
},
"electabuzz": {
"moves": ["psychic", "seismictoss", "thunderbolt", "thunderwave"]
},
"magmar": {
"moves": ["bodyslam", "confuseray", "fireblast"],
"exclusiveMoves": ["hyperbeam", "psychic"]
},
"pinsir": {
"moves": ["bodyslam", "hyperbeam", "swordsdance"],
"exclusiveMoves": ["seismictoss", "submission", "submission"]
},
"tauros": {
"moves": ["bodyslam", "earthquake", "hyperbeam"],
"exclusiveMoves": ["blizzard", "blizzard", "blizzard", "thunderbolt"]
},
"gyarados": {
"moves": ["blizzard", "bodyslam", "hyperbeam", "thunderbolt"],
"exclusiveMoves": ["hydropump", "surf"]
},
"lapras": {
"moves": ["bodyslam", "confuseray", "rest", "sing", "surf"],
"essentialMove": "blizzard",
"exclusiveMoves": ["thunderbolt", "thunderbolt"]
},
"ditto": {
"level": 100,
"moves": ["transform"]
},
"eevee": {
"moves": ["doubleedge", "quickattack", "reflect"],
"essentialMove": "bodyslam",
"exclusiveMoves": ["bide", "mimic", "sandattack", "tailwhip"]
},
"vaporeon": {
"moves": ["blizzard", "rest"],
"essentialMove": "surf",
"exclusiveMoves": ["bodyslam", "hydropump", "mimic"]
},
"jolteon": {
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
"exclusiveMoves": ["agility", "agility", "doublekick", "pinmissile", "pinmissile"]
},
"flareon": {
"moves": ["bodyslam", "fireblast", "hyperbeam", "quickattack"]
},
"porygon": {
"moves": ["blizzard", "thunderwave"],
"essentialMove": "recover",
"exclusiveMoves": ["doubleedge", "psychic", "thunderbolt", "triattack"]
},
"omanyte": {
"moves": ["bodyslam", "hydropump", "rest", "surf"],
"essentialMove": "blizzard"
},
"omastar": {
"moves": ["blizzard", "hydropump", "seismictoss", "surf"],
"exclusiveMoves": ["bodyslam", "rest"]
},
"kabuto": {
"moves": ["blizzard", "bodyslam", "slash", "surf"]
},
"kabutops": {
"moves": ["hyperbeam", "surf", "swordsdance"],
"exclusiveMoves": ["bodyslam", "slash"]
},
"aerodactyl": {
"moves": ["doubleedge", "fireblast", "hyperbeam", "skyattack"]
},
"snorlax": {
"moves": ["bodyslam", "rest", "selfdestruct", "thunderbolt"],
"essentialMove": "amnesia",
"exclusiveMoves": ["blizzard", "blizzard"],
"comboMoves": ["bodyslam", "earthquake", "hyperbeam", "selfdestruct"]
},
"articuno": {
"moves": ["agility", "hyperbeam", "icebeam", "mimic", "reflect"],
"essentialMove": "blizzard",
"comboMoves": ["icebeam", "reflect", "rest"]
},
"zapdos": {
"moves": ["agility", "drillpeck", "thunderbolt", "thunderwave"]
},
"moltres": {
"moves": ["agility", "fireblast", "hyperbeam"],
"exclusiveMoves": ["doubleedge", "reflect", "skyattack"]
},
"dratini": {
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
"essentialMove": "blizzard"
},
"dragonair": {
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
"essentialMove": "blizzard"
},
"dragonite": {
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
"essentialMove": "blizzard"
},
"mewtwo": {
"level": 62,
"moves": ["blizzard", "recover", "thunderbolt"],
"essentialMove": "amnesia",
"exclusiveMoves": ["psychic", "psychic"],
"comboMoves": ["barrier", "rest"]
},
"mew": {
"moves": ["blizzard", "earthquake", "thunderbolt", "thunderwave"],
"essentialMove": "psychic",
"exclusiveMoves": ["explosion", "softboiled", "softboiled"],
"comboMoves": ["earthquake", "hyperbeam", "swordsdance"]
}
}
+436
View File
@@ -0,0 +1,436 @@
"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, {
RandomGen1Teams: () => RandomGen1Teams,
default: () => random_teams_default
});
module.exports = __toCommonJS(random_teams_exports);
var import_random_teams = __toESM(require("../gen2/random-teams"));
var import_lib = require("../../../lib");
var import_random_teams2 = require("../gen8/random-teams");
class RandomGen1Teams extends import_random_teams.default {
constructor() {
super(...arguments);
this.randomData = require("./random-data.json");
}
// Challenge Cup or CC teams are basically fully random teams.
randomCCTeam() {
this.enforceNoDirectCustomBanlistChanges();
const team = [];
const randomN = this.randomNPokemon(this.maxTeamSize, this.forceMonotype);
for (const pokemon of randomN) {
const species = this.dex.species.get(pokemon);
const learnset = this.dex.species.getLearnset(species.id);
const mbstmin = 1307;
const stats = species.baseStats;
let mbst = stats["hp"] * 2 + 30 + 63 + 100 + 10;
mbst += stats["atk"] * 2 + 30 + 63 + 100 + 5;
mbst += stats["def"] * 2 + 30 + 63 + 100 + 5;
mbst += stats["spa"] * 2 + 30 + 63 + 100 + 5;
mbst += stats["spd"] * 2 + 30 + 63 + 100 + 5;
mbst += stats["spe"] * 2 + 30 + 63 + 100 + 5;
let level;
if (this.adjustLevel) {
level = this.adjustLevel;
} else {
level = Math.floor(100 * mbstmin / mbst);
while (level < 100) {
mbst = Math.floor((stats["hp"] * 2 + 30 + 63 + 100) * level / 100 + 10);
mbst += Math.floor(((stats["atk"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);
mbst += Math.floor((stats["def"] * 2 + 30 + 63 + 100) * level / 100 + 5);
mbst += Math.floor(((stats["spa"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);
mbst += Math.floor((stats["spd"] * 2 + 30 + 63 + 100) * level / 100 + 5);
mbst += Math.floor((stats["spe"] * 2 + 30 + 63 + 100) * level / 100 + 5);
if (mbst >= mbstmin)
break;
level++;
}
}
const ivs = {
hp: 0,
atk: this.random(16),
def: this.random(16),
spa: this.random(16),
spd: 0,
spe: this.random(16)
};
ivs["hp"] = ivs["atk"] % 2 * 16 + ivs["def"] % 2 * 8 + ivs["spe"] % 2 * 4 + ivs["spa"] % 2 * 2;
ivs["atk"] *= 2;
ivs["def"] *= 2;
ivs["spa"] *= 2;
ivs["spd"] = ivs["spa"];
ivs["spe"] *= 2;
const evs = { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 };
const pool = [];
if (learnset) {
for (const move in learnset) {
if (this.dex.moves.get(move).gen !== 1)
continue;
if (learnset[move].some((learned) => learned.startsWith("1"))) {
pool.push(move);
}
}
}
team.push({
name: species.baseSpecies,
species: species.name,
moves: this.multipleSamplesNoReplace(pool, 4),
gender: false,
ability: "No Ability",
evs,
ivs,
item: "",
level,
happiness: 0,
shiny: false,
nature: "Serious"
});
}
return team;
}
// Random team generation for Gen 1 Random Battles.
randomTeam() {
this.enforceNoDirectCustomBanlistChanges();
const seed = this.prng.seed;
const ruleTable = this.dex.formats.getRuleTable(this.format);
const pokemon = [];
const isMonotype = !!this.forceMonotype || ruleTable.has("sametypeclause");
const typePool = this.dex.types.names();
const type = this.forceMonotype || this.sample(typePool);
const rejectedButNotInvalidPool = [];
const nuTiers = ["UU", "UUBL", "NFE", "LC", "NU"];
const uuTiers = ["NFE", "UU", "UUBL", "NU"];
const typeCount = {};
const weaknessCount = { Electric: 0, Psychic: 0, Water: 0, Ice: 0, Ground: 0 };
let uberCount = 0;
let nuCount = 0;
const pokemonPool = this.getPokemonPool(type, pokemon, isMonotype);
while (pokemonPool.length && pokemon.length < this.maxTeamSize) {
const species = this.dex.species.get(this.sampleNoReplace(pokemonPool));
if (!species.exists || !this.randomData[species.id]?.moves)
continue;
if (species.id === "ditto" && this.battleHasDitto)
continue;
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;
const tier = species.tier;
switch (tier) {
case "LC":
case "NFE":
if (nuCount >= 4 * limitFactor || this.randomChance(1, 3))
continue;
break;
case "Uber":
if (uberCount >= 1 * limitFactor)
continue;
break;
default:
if (uuTiers.includes(tier) && pokemonPool.length > 1 && (nuCount >= 4 * limitFactor && this.randomChance(1, 2))) {
continue;
}
}
let skip = false;
if (!isMonotype && !this.forceMonotype) {
for (const typeName of species.types) {
if (typeCount[typeName] >= 2 * limitFactor || typeCount[typeName] >= 1 * limitFactor && this.randomChance(1, 2) && pokemonPool.length > 1) {
skip = true;
break;
}
}
if (skip) {
rejectedButNotInvalidPool.push(species.id);
continue;
}
}
const pokemonWeaknesses = [];
for (const typeName in weaknessCount) {
const increaseCount = this.dex.getImmunity(typeName, species) && this.dex.getEffectiveness(typeName, species) > 0;
if (!increaseCount)
continue;
if (weaknessCount[typeName] >= 2 * limitFactor) {
skip = true;
break;
}
pokemonWeaknesses.push(typeName);
}
if (skip) {
rejectedButNotInvalidPool.push(species.id);
continue;
}
pokemon.push(this.randomSet(species));
for (const typeName of species.types) {
if (typeCount[typeName]) {
typeCount[typeName]++;
} else {
typeCount[typeName] = 1;
}
}
for (const weakness of pokemonWeaknesses) {
weaknessCount[weakness]++;
}
if (tier === "Uber") {
uberCount++;
} else if (nuTiers.includes(tier)) {
nuCount++;
}
if (species.id === "ditto")
this.battleHasDitto = true;
}
while (pokemon.length < this.maxTeamSize && rejectedButNotInvalidPool.length) {
const species = this.sampleNoReplace(rejectedButNotInvalidPool);
pokemon.push(this.randomSet(species));
}
if (pokemon.length < this.maxTeamSize && pokemon.length < 12 && !isMonotype) {
throw new Error(`Could not build a random team for ${this.format} (seed=${seed})`);
}
return pokemon;
}
shouldCullMove(move, types, moves, counter) {
switch (move.id) {
case "hydropump":
return { cull: moves.has("surf") };
case "surf":
return { cull: moves.has("hydropump") };
case "selfdestruct":
return { cull: moves.has("rest") };
case "rest":
return { cull: moves.has("selfdestruct") };
case "sharpen":
case "swordsdance":
return { cull: counter.get("Special") > counter.get("Physical") || !counter.get("Physical") || moves.has("growth") };
case "growth":
return { cull: counter.get("Special") < counter.get("Physical") || !counter.get("Special") || moves.has("swordsdance") };
case "poisonpowder":
case "stunspore":
case "sleeppowder":
case "toxic":
return { cull: counter.get("Status") > 1 };
}
return { cull: false };
}
/**
* Random set generation for Gen 1 Random Battles.
*/
randomSet(species) {
species = this.dex.species.get(species);
if (!species.exists)
species = this.dex.species.get("pikachu");
const data = this.randomData[species.id];
const movePool = data.moves?.slice() || [];
const moves = /* @__PURE__ */ new Set();
const types = new Set(species.types);
const counter = new import_random_teams2.MoveCounter();
const PhysicalSetup = ["swordsdance", "sharpen"];
const SpecialSetup = ["amnesia", "growth"];
if (data.comboMoves && data.comboMoves.length <= this.maxMoveCount && this.randomChance(1, 2)) {
for (const m of data.comboMoves)
moves.add(m);
}
if (moves.size < this.maxMoveCount && data.exclusiveMoves) {
moves.add(this.sample(data.exclusiveMoves));
}
if (moves.size < this.maxMoveCount && data.essentialMove) {
moves.add(data.essentialMove);
}
while (moves.size < this.maxMoveCount && movePool.length) {
while (moves.size < this.maxMoveCount && movePool.length) {
const moveid = this.sampleNoReplace(movePool);
moves.add(moveid);
}
if (movePool.length) {
for (const setMoveid of moves) {
const move = this.dex.moves.get(setMoveid);
const moveid = move.id;
if (!move.damage && !move.damageCallback)
counter.add(move.category);
if (PhysicalSetup.includes(moveid))
counter.add("physicalsetup");
if (SpecialSetup.includes(moveid))
counter.add("specialsetup");
}
for (const moveid of moves) {
if (moveid === data.essentialMove)
continue;
const move = this.dex.moves.get(moveid);
if ((!data.essentialMove || moveid !== data.essentialMove) && this.shouldCullMove(move, types, moves, counter).cull) {
moves.delete(moveid);
break;
}
counter.add(move.category);
}
}
}
const levelScale = {
LC: 88,
NFE: 80,
PU: 77,
NU: 77,
NUBL: 76,
UU: 74,
UUBL: 71,
OU: 68,
Uber: 65
};
const level = this.adjustLevel || data.level || levelScale[species.tier] || 80;
const evs = { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 };
const ivs = { hp: 30, atk: 30, def: 30, spa: 30, spd: 30, spe: 30 };
if (moves.has("substitute")) {
while (evs.hp > 3) {
const hp = Math.floor(Math.floor(2 * species.baseStats.hp + ivs.hp + Math.floor(evs.hp / 4) + 100) * level / 100 + 10);
if (hp % 4 !== 0)
break;
evs.hp -= 4;
}
}
return {
name: species.name,
species: species.name,
moves: Array.from(moves),
ability: "No Ability",
evs,
ivs,
item: "",
level,
shiny: false,
gender: false
};
}
randomHCTeam() {
this.enforceNoDirectCustomBanlistChanges();
const team = [];
const movePool = [...this.dex.moves.all()];
const typesPool = ["Bird", ...this.dex.types.names()];
const randomN = this.randomNPokemon(this.maxTeamSize);
const hackmonsCup = {};
for (const forme of randomN) {
const species = this.dex.species.get(forme);
if (!hackmonsCup[species.id]) {
hackmonsCup[species.id] = {
types: [this.sample(typesPool), this.sample(typesPool)],
baseStats: {
hp: import_lib.Utils.clampIntRange(this.random(256), 1),
atk: import_lib.Utils.clampIntRange(this.random(256), 1),
def: import_lib.Utils.clampIntRange(this.random(256), 1),
spa: import_lib.Utils.clampIntRange(this.random(256), 1),
spd: 0,
spe: import_lib.Utils.clampIntRange(this.random(256), 1)
}
};
if (this.forceMonotype && !hackmonsCup[species.id].types.includes(this.forceMonotype)) {
hackmonsCup[species.id].types[1] = this.forceMonotype;
}
hackmonsCup[species.id].baseStats.spd = hackmonsCup[species.id].baseStats.spa;
}
if (hackmonsCup[species.id].types[0] === hackmonsCup[species.id].types[1]) {
hackmonsCup[species.id].types.splice(1, 1);
}
const moves = [];
do {
const move = this.sampleNoReplace(movePool);
if (move.gen <= this.gen && !move.isNonstandard && !move.name.startsWith("Hidden Power ")) {
moves.push(move.id);
}
} while (moves.length < this.maxMoveCount);
const evs = {
hp: this.random(256),
atk: this.random(256),
def: this.random(256),
spa: this.random(256),
spd: 0,
spe: this.random(256)
};
evs["spd"] = evs["spa"];
const ivs = {
hp: 0,
atk: this.random(16),
def: this.random(16),
spa: this.random(16),
spd: 0,
spe: this.random(16)
};
ivs["hp"] = ivs["atk"] % 2 * 16 + ivs["def"] % 2 * 8 + ivs["spe"] % 2 * 4 + ivs["spa"] % 2 * 2;
for (const iv in ivs) {
if (iv === "hp" || iv === "spd")
continue;
ivs[iv] *= 2;
}
ivs["spd"] = ivs["spa"];
const mbstmin = 425;
const baseStats = hackmonsCup[species.id].baseStats;
const calcStat = (statName, lvl) => {
if (lvl) {
return Math.floor(Math.floor(2 * baseStats[statName] + ivs[statName] + Math.floor(evs[statName] / 4)) * lvl / 100 + 5);
}
return Math.floor(2 * baseStats[statName] + ivs[statName] + Math.floor(evs[statName] / 4)) + 5;
};
let mbst = 0;
for (const statName of Object.keys(baseStats)) {
mbst += calcStat(statName);
if (statName === "hp")
mbst += 5;
}
let level;
if (this.adjustLevel) {
level = this.adjustLevel;
} else {
level = Math.floor(100 * mbstmin / mbst);
while (level < 100) {
for (const statName of Object.keys(baseStats)) {
mbst += calcStat(statName, level);
if (statName === "hp")
mbst += 5;
}
if (mbst >= mbstmin)
break;
level++;
}
if (level > 100)
level = 100;
}
team.push({
name: species.baseSpecies,
species: species.name,
gender: species.gender,
item: "",
ability: "No Ability",
moves,
evs,
ivs,
nature: "",
level,
shiny: false,
// Hacky but the only way to communicate stats/level generation properly
hc: hackmonsCup[species.id]
});
}
return team;
}
}
var random_teams_default = RandomGen1Teams;
//# sourceMappingURL=random-teams.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/random-teams.ts"],
"sourcesContent": ["import RandomGen2Teams from '../gen2/random-teams';\r\nimport {Utils} from '../../../lib';\r\nimport {MoveCounter} from '../gen8/random-teams';\r\n\r\ninterface HackmonsCupEntry {\r\n\ttypes: string[];\r\n\tbaseStats: StatsTable;\r\n}\r\n\r\ninterface Gen1RandomBattleSpecies {\r\n\tlevel?: number;\r\n\tmoves?: ID[];\r\n\tessentialMove?: ID;\r\n\texclusiveMoves?: ID[];\r\n\tcomboMoves?: ID[];\r\n}\r\n\r\nexport class RandomGen1Teams extends RandomGen2Teams {\r\n\trandomData: {[species: string]: Gen1RandomBattleSpecies} = require('./random-data.json');\r\n\r\n\t// Challenge Cup or CC teams are basically fully random teams.\r\n\trandomCCTeam() {\r\n\t\tthis.enforceNoDirectCustomBanlistChanges();\r\n\r\n\t\tconst team = [];\r\n\r\n\t\tconst randomN = this.randomNPokemon(this.maxTeamSize, this.forceMonotype);\r\n\r\n\t\tfor (const pokemon of randomN) {\r\n\t\t\tconst species = this.dex.species.get(pokemon);\r\n\t\t\tconst learnset = this.dex.species.getLearnset(species.id);\r\n\r\n\t\t\t// Level balance: calculate directly from stats rather than using some silly lookup table.\r\n\t\t\tconst mbstmin = 1307;\r\n\t\t\tconst stats = species.baseStats;\r\n\r\n\t\t\t// Modified base stat total assumes 15 DVs, 255 EVs in every stat\r\n\t\t\tlet mbst = (stats[\"hp\"] * 2 + 30 + 63 + 100) + 10;\r\n\t\t\tmbst += (stats[\"atk\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"def\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spa\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spd\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spe\"] * 2 + 30 + 63 + 100) + 5;\r\n\r\n\t\t\tlet level;\r\n\t\t\tif (this.adjustLevel) {\r\n\t\t\t\tlevel = this.adjustLevel;\r\n\t\t\t} else {\r\n\t\t\t\tlevel = Math.floor(100 * mbstmin / mbst); // Initial level guess will underestimate\r\n\r\n\t\t\t\twhile (level < 100) {\r\n\t\t\t\t\tmbst = Math.floor((stats[\"hp\"] * 2 + 30 + 63 + 100) * level / 100 + 10);\r\n\t\t\t\t\t// Since damage is roughly proportional to lvl\r\n\t\t\t\t\tmbst += Math.floor(((stats[\"atk\"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"def\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\t\t\t\t\tmbst += Math.floor(((stats[\"spa\"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"spd\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"spe\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\r\n\t\t\t\t\tif (mbst >= mbstmin) break;\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Random DVs.\r\n\t\t\tconst ivs = {\r\n\t\t\t\thp: 0,\r\n\t\t\t\tatk: this.random(16),\r\n\t\t\t\tdef: this.random(16),\r\n\t\t\t\tspa: this.random(16),\r\n\t\t\t\tspd: 0,\r\n\t\t\t\tspe: this.random(16),\r\n\t\t\t};\r\n\t\t\tivs[\"hp\"] = (ivs[\"atk\"] % 2) * 16 + (ivs[\"def\"] % 2) * 8 + (ivs[\"spe\"] % 2) * 4 + (ivs[\"spa\"] % 2) * 2;\r\n\t\t\tivs[\"atk\"] *= 2;\r\n\t\t\tivs[\"def\"] *= 2;\r\n\t\t\tivs[\"spa\"] *= 2;\r\n\t\t\tivs[\"spd\"] = ivs[\"spa\"];\r\n\t\t\tivs[\"spe\"] *= 2;\r\n\r\n\t\t\t// Maxed EVs.\r\n\t\t\tconst evs = {hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255};\r\n\r\n\t\t\t// Four random unique moves from movepool. don't worry about \"attacking\" or \"viable\".\r\n\t\t\t// Since Gens 1 and 2 learnsets are shared, we need to weed out Gen 2 moves.\r\n\t\t\tconst pool: string[] = [];\r\n\t\t\tif (learnset) {\r\n\t\t\t\tfor (const move in learnset) {\r\n\t\t\t\t\tif (this.dex.moves.get(move).gen !== 1) continue;\r\n\t\t\t\t\tif (learnset[move].some(learned => learned.startsWith('1'))) {\r\n\t\t\t\t\t\tpool.push(move);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tteam.push({\r\n\t\t\t\tname: species.baseSpecies,\r\n\t\t\t\tspecies: species.name,\r\n\t\t\t\tmoves: this.multipleSamplesNoReplace(pool, 4),\r\n\t\t\t\tgender: false,\r\n\t\t\t\tability: 'No Ability',\r\n\t\t\t\tevs: evs,\r\n\t\t\t\tivs: ivs,\r\n\t\t\t\titem: '',\r\n\t\t\t\tlevel,\r\n\t\t\t\thappiness: 0,\r\n\t\t\t\tshiny: false,\r\n\t\t\t\tnature: 'Serious',\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn team;\r\n\t}\r\n\r\n\t// Random team generation for Gen 1 Random Battles.\r\n\trandomTeam() {\r\n\t\tthis.enforceNoDirectCustomBanlistChanges();\r\n\r\n\t\t// Get what we need ready.\r\n\t\tconst seed = this.prng.seed;\r\n\t\tconst ruleTable = this.dex.formats.getRuleTable(this.format);\r\n\t\tconst pokemon: RandomTeamsTypes.RandomSet[] = [];\r\n\r\n\t\t// For Monotype\r\n\t\tconst isMonotype = !!this.forceMonotype || ruleTable.has('sametypeclause');\r\n\t\tconst typePool = this.dex.types.names();\r\n\t\tconst type = this.forceMonotype || this.sample(typePool);\r\n\r\n\t\t/** Pok\u00E9mon that are not wholly incompatible with the team, but still pretty bad */\r\n\t\tconst rejectedButNotInvalidPool: string[] = [];\r\n\t\tconst nuT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strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var rulesets_exports = {};
__export(rulesets_exports, {
Rulesets: () => Rulesets
});
module.exports = __toCommonJS(rulesets_exports);
const Rulesets = {
standard: {
effectType: "ValidatorRule",
name: "Standard",
ruleset: ["Obtainable", "Desync Clause Mod", "Sleep Clause Mod", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Moves Clause", "Endless Battle Clause", "HP Percentage Mod", "Cancel Mod"],
banlist: ["Dig", "Fly"]
},
"350cupmod": {
effectType: "Rule",
name: "350 Cup Mod",
desc: "If a Pok&eacute;mon's BST is 350 or lower, all of its stats get doubled.",
onBegin() {
this.add("rule", "350 Cup Mod: If a Pokemon's BST is 350 or lower, all of its stats get doubled.");
},
onModifySpecies(species) {
const newSpecies = this.dex.deepClone(species);
const bst = newSpecies.bst;
if (bst <= 350) {
newSpecies.bst = 0;
for (const stat in newSpecies.baseStats) {
if (stat === "spd")
continue;
newSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * 2, 1, 255);
newSpecies.bst += newSpecies.baseStats[stat];
}
newSpecies.baseStats["spd"] = newSpecies.baseStats["spa"];
}
return newSpecies;
}
},
flippedmod: {
effectType: "Rule",
name: "Flipped Mod",
desc: "Every Pok&eacute;mon's stats are reversed. HP becomes Spe, Atk becomes Spc, Def stays the same.",
onBegin() {
this.add("rule", "Pokemon have their stats flipped (HP becomes Spe, vice versa).");
},
onModifySpecies(species) {
const newSpecies = this.dex.deepClone(species);
const stats = {
hp: newSpecies.baseStats.spe,
atk: newSpecies.baseStats.spa,
def: newSpecies.baseStats.def,
spa: newSpecies.baseStats.atk,
spd: newSpecies.baseStats.atk,
spe: newSpecies.baseStats.hp
};
for (const i in newSpecies.baseStats) {
newSpecies.baseStats[i] = stats[i];
}
return newSpecies;
}
},
scalemonsmod: {
effectType: "Rule",
name: "Scalemons Mod",
desc: "Every Pok&eacute;mon's stats, barring HP, are scaled to give them a BST as close to 500 as possible",
onBegin() {
this.add("rule", "Scalemons Mod: Every Pokemon's stats, barring HP, are scaled to come as close to a BST of 500 as possible");
},
onModifySpecies(species, target, source) {
const newSpecies = this.dex.deepClone(species);
const pst = newSpecies.bst - newSpecies.baseStats["hp"];
const scale = 500 - newSpecies.baseStats["hp"];
newSpecies.bst = newSpecies.baseStats["hp"];
for (const stat in newSpecies.baseStats) {
if (stat === "hp" || stat === "spd")
continue;
newSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * scale / pst, 1, 255);
newSpecies.bst += newSpecies.baseStats[stat];
}
newSpecies.baseStats["spd"] = newSpecies.baseStats["spa"];
return newSpecies;
}
}
};
//# sourceMappingURL=rulesets.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/rulesets.ts"],
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Desync Clause Mod', 'Sleep Clause Mod', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t\tbanlist: ['Dig', 'Fly'],\r\n\t},\r\n\t'350cupmod': {\r\n\t\teffectType: 'Rule',\r\n\t\tname: '350 Cup Mod',\r\n\t\tdesc: \"If a Pok&eacute;mon's BST is 350 or lower, all of its stats get doubled.\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', '350 Cup Mod: If a Pokemon\\'s BST is 350 or lower, all of its stats get doubled.');\r\n\t\t},\r\n\t\tonModifySpecies(species) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst bst = newSpecies.bst;\r\n\t\t\tif (bst <= 350) {\r\n\t\t\t\tnewSpecies.bst = 0;\r\n\t\t\t\tfor (const stat in newSpecies.baseStats) {\r\n\t\t\t\t\tif (stat === 'spd') continue;\r\n\t\t\t\t\tnewSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * 2, 1, 255);\r\n\t\t\t\t\tnewSpecies.bst += newSpecies.baseStats[stat];\r\n\t\t\t\t}\r\n\t\t\t\tnewSpecies.baseStats['spd'] = newSpecies.baseStats['spa'];\r\n\t\t\t}\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n\tflippedmod: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Flipped Mod',\r\n\t\tdesc: \"Every Pok&eacute;mon's stats are reversed. HP becomes Spe, Atk becomes Spc, Def stays the same.\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', 'Pokemon have their stats flipped (HP becomes Spe, vice versa).');\r\n\t\t},\r\n\t\tonModifySpecies(species) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst stats: {[k: string]: number} = {\r\n\t\t\t\thp: newSpecies.baseStats.spe,\r\n\t\t\t\tatk: newSpecies.baseStats.spa,\r\n\t\t\t\tdef: newSpecies.baseStats.def,\r\n\t\t\t\tspa: newSpecies.baseStats.atk,\r\n\t\t\t\tspd: newSpecies.baseStats.atk,\r\n\t\t\t\tspe: newSpecies.baseStats.hp,\r\n\t\t\t};\r\n\t\t\tfor (const i in newSpecies.baseStats) {\r\n\t\t\t\tnewSpecies.baseStats[i] = stats[i];\r\n\t\t\t}\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n\tscalemonsmod: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Scalemons Mod',\r\n\t\tdesc: \"Every Pok&eacute;mon's stats, barring HP, are scaled to give them a BST as close to 500 as possible\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', 'Scalemons Mod: Every Pokemon\\'s stats, barring HP, are scaled to come as close to a BST of 500 as possible');\r\n\t\t},\r\n\t\tonModifySpecies(species, target, source) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst pst: number = newSpecies.bst - newSpecies.baseStats['hp'];\r\n\t\t\tconst scale = 500 - newSpecies.baseStats['hp'];\r\n\t\t\tnewSpecies.bst = newSpecies.baseStats['hp'];\r\n\t\t\tfor (const stat in newSpecies.baseStats) {\r\n\t\t\t\tif (stat === 'hp' || stat === 'spd') continue;\r\n\t\t\t\tnewSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * scale / pst, 1, 255);\r\n\t\t\t\tnewSpecies.bst += newSpecies.baseStats[stat];\r\n\t\t\t}\r\n\t\t\tnewSpecies.baseStats['spd'] = newSpecies.baseStats['spa'];\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,qBAAqB,oBAAoB,qBAAqB,kBAAkB,eAAe,wBAAwB,yBAAyB,qBAAqB,YAAY;AAAA,IACzM,SAAS,CAAC,OAAO,KAAK;AAAA,EACvB;AAAA,EACA,aAAa;AAAA,IACZ,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AACT,WAAK,IAAI,QAAQ,gFAAiF;AAAA,IACnG;AAAA,IACA,gBAAgB,SAAS;AACxB,YAAM,aA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AW,MAAM,WAAW,UAAU,IAAI;AAC1C,iBAAW,QAAQ,WAAW,WAAW;AACxC,YAAI,SAAS,QAAQ,SAAS;AAAO;AACrC,mBAAW,UAAU,IAAI,IAAI,KAAK,cAAc,WAAW,UAAU,IAAI,IAAI,QAAQ,KAAK,GAAG,GAAG;AAChG,mBAAW,OAAO,WAAW,UAAU,IAAI;AAAA,MAC5C;AACA,iBAAW,UAAU,KAAK,IAAI,WAAW,UAAU,KAAK;AACxD,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
"names": []
}
+866
View File
@@ -0,0 +1,866 @@
"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 SKIP_LASTDAMAGE = /* @__PURE__ */ new Set([
"confuseray",
"conversion",
"counter",
"focusenergy",
"glare",
"haze",
"leechseed",
"lightscreen",
"mimic",
"mist",
"poisongas",
"poisonpowder",
"recover",
"reflect",
"rest",
"softboiled",
"splash",
"stunspore",
"substitute",
"supersonic",
"teleport",
"thunderwave",
"toxic",
"transform"
]);
const TWO_TURN_MOVES = ["dig", "fly", "razorwind", "skullbash", "skyattack", "solarbeam"];
const Scripts = {
inherit: "gen2",
gen: 1,
init() {
for (const i in this.data.Pokedex) {
this.data.Pokedex[i].gender = "N";
this.data.Pokedex[i].eggGroups = null;
}
},
// BattlePokemon scripts.
pokemon: {
getStat(statName, unmodified) {
if (statName === "hp")
throw new Error("Please read `maxhp` directly");
if (unmodified)
return this.baseStoredStats[statName];
return this.modifiedStats[statName];
},
// Gen 1 function to apply a stat modification that is only active until the stat is recalculated or mon switched.
modifyStat(statName, modifier) {
if (!(statName in this.storedStats))
throw new Error("Invalid `statName` passed to `modifyStat`");
const modifiedStats = this.battle.clampIntRange(Math.floor(this.modifiedStats[statName] * modifier), 1);
this.modifiedStats[statName] = modifiedStats;
},
// In generation 1, boosting function increases the stored modified stat and checks for opponent's status.
boostBy(boost) {
let changed = false;
let i;
for (i in boost) {
const delta = boost[i];
if (delta === void 0)
continue;
if (delta > 0 && this.boosts[i] >= 6)
continue;
if (delta < 0 && this.boosts[i] <= -6)
continue;
if (i === "evasion" || i === "accuracy") {
this.boosts[i] += delta;
if (this.boosts[i] > 6) {
this.boosts[i] = 6;
}
if (this.boosts[i] < -6) {
this.boosts[i] = -6;
}
changed = true;
continue;
}
if (delta > 0) {
if (this.modifiedStats[i] === 999) {
this.boosts[i] += delta;
if (this.boosts[i] > 6) {
this.boosts[i] = 6;
}
this.boosts[i]--;
changed = 0;
} else {
this.boosts[i] += delta;
if (this.boosts[i] > 6) {
this.boosts[i] = 6;
}
changed = true;
}
}
if (delta < 0) {
if (this.modifiedStats[i] === 1) {
this.boosts[i] += delta;
if (this.boosts[i] < -6) {
this.boosts[i] = -6;
}
this.boosts[i]++;
changed = 0;
} else {
this.boosts[i] += delta;
if (this.boosts[i] < -6) {
this.boosts[i] = -6;
}
changed = true;
}
}
if (changed) {
this.modifiedStats[i] = this.storedStats[i];
if (this.boosts[i] >= 0) {
this.modifyStat(i, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[i]]);
} else {
this.modifyStat(i, [100, 66, 50, 40, 33, 28, 25][-this.boosts[i]] / 100);
}
if (delta > 0 && this.modifiedStats[i] > 999) {
this.modifiedStats[i] = 999;
}
}
}
return changed;
},
clearBoosts() {
let i;
for (i in this.boosts) {
this.boosts[i] = 0;
if (i === "evasion" || i === "accuracy")
continue;
this.modifiedStats[i] = this.storedStats[i];
}
}
},
actions: {
// This function is the main one when running a move.
// It deals with the beforeMove event.
// It also deals with how PP reduction works on gen 1.
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
const target = this.battle.getTarget(pokemon, moveOrMoveName, targetLoc);
const move = this.battle.dex.getActiveMove(moveOrMoveName);
if (target?.subFainted)
target.subFainted = null;
this.battle.setActiveMove(move, pokemon, target);
if (pokemon.moveThisTurn || !this.battle.runEvent("BeforeMove", 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;
}
}
let lockedMove = this.battle.runEvent("LockMove", pokemon);
if (lockedMove === true)
lockedMove = false;
if (!lockedMove && (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].locked !== target)) {
pokemon.deductPP(move, null, target);
} else {
sourceEffect = move;
if (pokemon.volatiles["twoturnmove"]) {
pokemon.deductPP(pokemon.volatiles["twoturnmove"].originalMove, null, target);
}
}
if (pokemon.volatiles["partialtrappinglock"] && target !== pokemon.volatiles["partialtrappinglock"].locked) {
const moveSlot = pokemon.moveSlots.find((ms) => ms.id === move.id);
if (moveSlot && moveSlot.pp < 0) {
moveSlot.pp = 63;
this.battle.hint("In Gen 1, if a player is forced to use a move with 0 PP, the move will underflow to have 63 PP.");
}
}
this.useMove(move, pokemon, target, sourceEffect);
if (pokemon.volatiles["twoturnmove"]) {
pokemon.deductPP(move, -1, target);
pokemon.volatiles["twoturnmove"].originalMove = move.id;
}
},
// This function deals with AfterMoveSelf events.
// This leads with partial trapping moves shenanigans after the move has been used.
useMove(moveOrMoveName, pokemon, target, sourceEffect) {
if (!sourceEffect && this.battle.effect.id)
sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
let move = this.battle.dex.getActiveMove(baseMove);
if (target === void 0)
target = this.battle.getRandomTarget(pokemon, move);
if (move.target === "self") {
target = pokemon;
}
if (sourceEffect)
move.sourceEffect = sourceEffect.id;
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
if (baseMove.target !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
}
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
if (baseMove.target !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
}
if (!TWO_TURN_MOVES.includes(move.id) || pokemon.volatiles["twoturnmove"])
pokemon.lastMove = move;
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);
if (move.id !== "metronome") {
if (move.id !== "mirrormove" || (!pokemon.side.foe.active[0]?.lastMove || pokemon.side.foe.active[0].lastMove?.id === "mirrormove")) {
pokemon.side.lastMove = move;
if (pokemon.volatiles["lockedmove"]?.time <= 0)
pokemon.removeVolatile("lockedmove");
if (target && target.hp <= 0) {
if (pokemon.volatiles["mustrecharge"])
pokemon.removeVolatile("mustrecharge");
delete pokemon.volatiles["partialtrappinglock"];
} else {
if (pokemon.volatiles["mustrecharge"])
this.battle.add("-mustrecharge", pokemon);
if (pokemon.hp)
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
}
if (move.volatileStatus === "partiallytrapped" && target && target.hp > 0) {
if (pokemon.volatiles["partialtrappinglock"] && target.volatiles["partiallytrapped"]) {
const sourceVolatile = pokemon.volatiles["partialtrappinglock"];
const targetVolatile = target.volatiles["partiallytrapped"];
if (!sourceVolatile.locked) {
sourceVolatile.locked = target;
} else if (target !== pokemon && target !== sourceVolatile.locked) {
const duration = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
sourceVolatile.duration = duration;
sourceVolatile.locked = target;
targetVolatile.duration = 2;
}
}
}
}
}
return moveResult;
},
// This is the function that actually uses the move, running ModifyMove events.
// It uses the move and then deals with the effects after the move.
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect) {
if (!sourceEffect && this.battle.effect.id)
sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
let move = this.battle.dex.getActiveMove(baseMove);
if (target === void 0)
target = this.battle.getRandomTarget(pokemon, move);
if (move.target === "self") {
target = pokemon;
}
if (sourceEffect)
move.sourceEffect = sourceEffect.id;
this.battle.setActiveMove(move, pokemon, target);
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
if (baseMove.target !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
}
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
if (baseMove.target !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
this.battle.debug("not a gen 1 mechanic");
}
if (!move)
return false;
let attrs = "";
if (pokemon.fainted) {
return false;
}
if (sourceEffect)
attrs += "|[from]" + this.battle.dex.conditions.get(sourceEffect);
this.battle.addMove("move", pokemon, move.name, target + attrs);
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
return true;
}
if (!this.battle.singleEvent("TryMove", move, null, pokemon, target, move) || !this.battle.runEvent("TryMove", pokemon, target, move)) {
return true;
}
if (move.ignoreImmunity === void 0) {
move.ignoreImmunity = move.category === "Status";
}
let damage = false;
if (!target || target.fainted) {
this.battle.attrLastMove("[notarget]");
this.battle.add("-notarget");
return true;
}
if (!SKIP_LASTDAMAGE.has(move.id))
this.battle.lastDamage = 0;
damage = this.tryMoveHit(target, pokemon, move);
if (target.boosts.atk < 6 && (move.selfdestruct || move.id === "disable") && target.volatiles["rage"]) {
this.battle.boost({ atk: 1 }, target, pokemon, this.dex.conditions.get("rage"));
this.battle.hint(`In Gen 1, using ${move.name} causes the target to build Rage, even if it misses or fails`, true);
}
if (damage === false) {
this.battle.singleEvent("MoveFail", move, null, target, pokemon, move);
return true;
}
if (!move.negateSecondary) {
this.battle.singleEvent("AfterMoveSecondarySelf", move, null, pokemon, target, move);
this.battle.runEvent("AfterMoveSecondarySelf", pokemon, target, move);
}
return true;
},
// This function attempts a move hit and returns the attempt result before the actual hit happens.
// It deals with partial trapping weirdness and accuracy bugs as well.
tryMoveHit(target, pokemon, move) {
let damage = 0;
if (move?.self?.volatileStatus === "lockedmove") {
if (pokemon.volatiles["lockedmove"]) {
pokemon.volatiles["lockedmove"].time--;
if (!pokemon.volatiles["lockedmove"].time) {
delete pokemon.volatiles["confusion"];
pokemon.addVolatile("confusion", pokemon, this.dex.conditions.get("lockedmove"));
}
} else {
pokemon.addVolatile("lockedmove", pokemon, move);
}
}
let hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
if (hitResult === false) {
this.battle.attrLastMove("[miss]");
this.battle.add("-miss", pokemon);
if (move.selfdestruct) {
this.battle.faint(pokemon, pokemon, move);
}
return false;
}
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
if (move.selfdestruct) {
this.battle.faint(pokemon, pokemon, move);
}
return false;
}
hitResult = this.battle.singleEvent("TryImmunity", move, null, target, pokemon, move);
if (hitResult === false) {
this.battle.add("-immune", target);
return false;
}
let accuracy = move.accuracy;
if (move.volatileStatus === "partiallytrapped" && target === pokemon.volatiles["partialtrappinglock"]?.locked) {
accuracy = true;
}
if (move.status === "slp" && target && target.volatiles["mustrecharge"]) {
accuracy = true;
}
if (move.ohko) {
if (target.getStat("spe") > pokemon.getStat("spe")) {
this.battle.add("-immune", target, "[ohko]");
return false;
}
}
const boostTable = [25, 28, 33, 40, 50, 66, 100, 150, 200, 250, 300, 350, 400];
if (accuracy !== true) {
accuracy = Math.floor(accuracy * 255 / 100);
if (pokemon.volatiles["lockedmove"])
accuracy = pokemon.volatiles["lockedmove"].accuracy;
if (pokemon.volatiles["rage"])
accuracy = pokemon.volatiles["rage"].accuracy;
if (accuracy !== true) {
if (!move.ignoreAccuracy) {
accuracy = Math.floor(accuracy * (boostTable[pokemon.boosts.accuracy + 6] / 100));
}
if (!move.ignoreEvasion) {
accuracy = Math.floor(accuracy * (boostTable[-target.boosts.evasion + 6] / 100));
}
accuracy = this.battle.clampIntRange(accuracy, 1, 255);
}
if (pokemon.volatiles["lockedmove"])
pokemon.volatiles["lockedmove"].accuracy = accuracy;
if (pokemon.volatiles["rage"])
pokemon.volatiles["rage"].accuracy = accuracy;
}
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
if (move.target === "self" && accuracy !== true)
accuracy++;
if (accuracy !== true && !this.battle.randomChance(accuracy, 256)) {
this.battle.attrLastMove("[miss]");
this.battle.add("-miss", pokemon);
if (accuracy === 255)
this.battle.hint("In Gen 1, moves with 100% accuracy can still miss 1/256 of the time.");
damage = false;
this.battle.lastDamage = 0;
}
if (damage !== false) {
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 moveDamage = 0;
let i;
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
move.hit = i + 1;
if (move.hit === hits)
move.lastHit = true;
moveDamage = this.moveHit(target, pokemon, move);
if (moveDamage === false)
break;
damage = moveDamage || 0;
if (i === 0)
move.damage = damage;
if (target.subFainted) {
i++;
break;
}
}
move.damage = null;
if (i === 0)
return 1;
this.battle.add("-hitcount", target, i);
} else {
damage = this.moveHit(target, pokemon, move);
}
}
if (move.category !== "Status") {
target.gotAttacked(move, damage, pokemon);
}
if (move.selfdestruct) {
if (!target.subFainted) {
this.battle.faint(pokemon, pokemon, move);
} else {
this.battle.hint(`In Gen 1, the user of ${move.name} will not take damage if it breaks a Substitute.`);
}
}
if (damage === false) {
delete pokemon.volatiles["partialtrappinglock"];
return false;
}
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);
}
return damage;
},
// It deals with the actual move hit, as the name indicates, dealing damage and/or effects.
// This function also deals with the Gen 1 Substitute behaviour on the hitting process.
moveHit(target, pokemon, move, moveData, isSecondary, isSelf) {
let damage = 0;
if (!isSecondary && !isSelf)
this.battle.setActiveMove(move, pokemon, target);
let hitResult = true;
if (!moveData)
moveData = move;
if (move.ignoreImmunity === void 0) {
move.ignoreImmunity = move.category === "Status";
}
const targetSub = target ? target.volatiles["substitute"] : false;
const targetHadSub = targetSub !== null && targetSub !== false && typeof targetSub !== "undefined";
let targetHasSub = void 0;
if (target) {
hitResult = this.battle.singleEvent("TryHit", moveData, {}, target, pokemon, move);
if (targetSub && moveData.volatileStatus && moveData.volatileStatus === "partiallytrapped") {
target.addVolatile(moveData.volatileStatus, pokemon, move);
if (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].duration > 1) {
target.volatiles[moveData.volatileStatus].duration = 2;
}
}
if (!hitResult) {
if (hitResult === false)
this.battle.add("-fail", target);
return false;
}
if (!isSelf && !isSecondary) {
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
if (!hitResult) {
if (hitResult === false)
this.battle.add("-fail", target);
if (hitResult !== 0) {
return false;
}
}
if (!this.battle.runEvent("TryFieldHit", target, pokemon, move)) {
return false;
}
} else if (isSecondary && !moveData.self) {
hitResult = this.battle.runEvent("TrySecondaryHit", target, pokemon, moveData);
}
if (hitResult === 0) {
targetHasSub = !!target?.volatiles["substitute"];
target = null;
} else if (!hitResult) {
if (hitResult === false)
this.battle.add("-fail", target);
return false;
}
}
if (target) {
let didSomething = false;
damage = this.getDamage(pokemon, target, moveData);
if (damage && damage > target.hp) {
damage = target.hp;
}
if ((damage || damage === 0) && !target.fainted) {
damage = this.battle.damage(damage, target, pokemon, move);
if (!(damage || damage === 0))
return false;
didSomething = true;
} else if (damage === false && typeof hitResult === "undefined") {
this.battle.add("-fail", target);
}
if (damage === false || damage === null) {
return false;
}
if (moveData.boosts && target.hp) {
const willBoost = this.battle.boost(moveData.boosts, target, pokemon, move);
if (!willBoost) {
this.battle.add("-fail", target);
return false;
}
didSomething = true;
if (pokemon.side.foe.active[0].status) {
if (pokemon.side.foe.active[0].status === "par") {
pokemon.side.foe.active[0].modifyStat("spe", 0.25);
}
if (pokemon.side.foe.active[0].status === "brn") {
pokemon.side.foe.active[0].modifyStat("atk", 0.5);
}
}
}
if (moveData.heal && !target.fainted) {
const d = target.heal(Math.floor(target.maxhp * moveData.heal[0] / moveData.heal[1]));
if (!d) {
this.battle.add("-fail", target);
return false;
}
this.battle.add("-heal", target, target.getHealth);
didSomething = true;
}
if (moveData.status) {
if (moveData.status === "slp" && target.volatiles["mustrecharge"]) {
if (target.setStatus(moveData.status, pokemon, move)) {
target.removeVolatile("mustrecharge");
this.battle.hint(
"In Gen 1, if a Pok\xE9mon that has just used Hyper Beam and has yet to recharge is targeted with a sleep inducing move, any other status it may already have will be ignored and sleep will be induced regardless."
);
}
} else if (!target.status) {
if (target.setStatus(moveData.status, pokemon, move)) {
if (moveData.status === "brn")
target.modifyStat("atk", 0.5);
if (moveData.status === "par")
target.modifyStat("spe", 0.25);
}
} else if (!isSecondary) {
if (target.status === moveData.status) {
this.battle.add("-fail", target, target.status);
} else {
this.battle.add("-fail", target);
}
}
didSomething = true;
}
if (moveData.forceStatus) {
if (target.setStatus(moveData.forceStatus, pokemon, move)) {
if (moveData.forceStatus === "brn")
target.modifyStat("atk", 0.5);
if (moveData.forceStatus === "par")
target.modifyStat("spe", 0.25);
didSomething = true;
}
}
if (moveData.volatileStatus) {
if (target.addVolatile(moveData.volatileStatus, pokemon, move)) {
didSomething = true;
}
}
if (moveData.sideCondition) {
if (target.side.addSideCondition(moveData.sideCondition, pokemon, move)) {
didSomething = true;
}
}
if (moveData.pseudoWeather) {
if (this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move)) {
didSomething = true;
}
}
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
if (!isSelf && !isSecondary) {
this.battle.runEvent("Hit", target, pokemon, move);
}
if (!hitResult && !didSomething) {
if (hitResult === false)
this.battle.add("-fail", target);
return false;
}
}
if (targetHasSub === void 0)
targetHasSub = !!target?.volatiles["substitute"];
const doSelf = targetHadSub && targetHasSub || !targetHadSub;
if (moveData.self && moveData.self.volatileStatus !== "lockedmove" && (doSelf || moveData.self.volatileStatus === "partialtrappinglock")) {
this.moveHit(pokemon, pokemon, move, moveData.self, isSecondary, true);
}
if (pokemon.volatiles["partialtrappinglock"]) {
pokemon.volatiles["partialtrappinglock"].damage = this.battle.lastDamage;
}
if (moveData.secondaries && target && target.hp > 0) {
for (const secondary of moveData.secondaries) {
if (!move.multihit || move.lastHit) {
if (!(secondary.status && ["par", "brn", "frz"].includes(secondary.status) && target.hasType(move.type))) {
if (secondary.chance === void 0) {
this.moveHit(target, pokemon, move, secondary, true, isSelf);
} else {
let secondaryChance = Math.ceil(secondary.chance * 256 / 100);
if (secondary?.volatileStatus === "confusion")
secondaryChance--;
if (this.battle.randomChance(secondaryChance, 256)) {
this.moveHit(target, pokemon, move, secondary, true, isSelf);
}
}
}
}
}
}
if (move.selfSwitch && pokemon.hp) {
pokemon.switchFlag = move.selfSwitch === true ? true : this.dex.toID(move.selfSwitch);
}
return damage;
},
// This calculates the damage pokemon does to target with move.
getDamage(source, target, move, suppressMessages) {
if (typeof move === "string") {
move = this.battle.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 65535;
}
if (move.damageCallback) {
return move.damageCallback.call(this.battle, source, target);
}
if (move.damage === "level") {
return source.level;
}
if (move.damage || move.damage === 0) {
return move.damage;
}
if (move.volatileStatus === "partiallytrapped" && move.type === "Normal" && target.hasType("Ghost")) {
return 0;
}
if (source.volatiles["partialtrappinglock"] && target === source.volatiles["partialtrappinglock"].locked) {
return source.volatiles["partialtrappinglock"].damage;
}
if (!move.category)
move.category = "Physical";
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) {
return basePower === 0 ? void 0 : basePower;
}
basePower = this.battle.clampIntRange(basePower, 1);
let isCrit = move.willCrit || false;
if (!isCrit) {
let critChance = Math.floor(this.dex.species.get(source.set.species).baseStats["spe"] / 2);
if (source.volatiles["focusenergy"]) {
critChance = Math.floor(critChance / 2);
} else {
critChance = this.battle.clampIntRange(critChance * 2, 1, 255);
}
if (move.critRatio === 1) {
critChance = Math.floor(critChance / 2);
} else if (move.critRatio === 2) {
critChance = this.battle.clampIntRange(critChance * 4, 1, 255);
}
if (critChance > 0) {
isCrit = this.battle.randomChance(critChance, 256);
}
}
if (isCrit)
target.getMoveHitData(move).crit = true;
if (basePower) {
basePower = this.battle.runEvent("BasePower", source, target, move, basePower);
if (basePower && move.basePowerModifier) {
basePower *= move.basePowerModifier;
}
}
if (!basePower)
return 0;
basePower = this.battle.clampIntRange(basePower, 1);
let level = source.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 attack = attacker.getStat(atkType);
let defense = defender.getStat(defType);
if (defType === "def" && defender.volatiles["reflect"] || defType === "spd" && defender.volatiles["lightscreen"]) {
this.battle.debug("Screen doubling (Sp)Def");
defense *= 2;
}
if (isCrit) {
move.ignoreOffensive = true;
move.ignoreDefensive = true;
level *= 2;
if (!suppressMessages)
this.battle.add("-crit", target);
}
if (move.ignoreOffensive) {
this.battle.debug("Negating (sp)atk boost/penalty.");
attack = attacker.getStat(atkType, true);
}
if (move.ignoreDefensive) {
this.battle.debug("Negating (sp)def boost/penalty.");
defense = target.getStat(defType, true);
}
if (attack >= 256 || defense >= 256) {
if (attack >= 1024 || defense >= 1024) {
this.battle.hint("In Gen 1, 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 = Math.floor(defense / 4) % 256;
if (defense === 0) {
this.battle.hint("Pokemon Showdown avoids division by zero by rounding defense up to 1. In game, the battle would have crashed.");
defense = 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 = this.battle.clampIntRange(Math.floor(damage / 50), 0, 997);
damage += 2;
if (type !== "???" && source.hasType(type)) {
damage += Math.floor(damage / 2);
}
for (const targetType of target.types) {
const typeMod = this.battle.dex.getEffectiveness(type, targetType);
if (typeMod > 0) {
damage *= 20;
damage = Math.floor(damage / 10);
}
if (typeMod < 0) {
damage *= 5;
damage = Math.floor(damage / 10);
}
}
const totalTypeMod = target.runEffectiveness(move);
if (totalTypeMod > 0) {
if (!suppressMessages)
this.battle.add("-supereffective", target);
}
if (totalTypeMod < 0) {
if (!suppressMessages)
this.battle.add("-resisted", target);
}
if (damage === 0)
return damage;
if (damage > 1) {
damage *= this.battle.random(217, 256);
damage = Math.floor(damage / 255);
}
return Math.floor(damage);
}
},
// deals with Pokémon stat boosting.
boost(boost, target, source = null, effect = null) {
if (this.event) {
if (!target)
target = this.event.target;
if (!source)
source = this.event.source;
if (!effect)
effect = this.effect;
}
if (typeof effect === "string")
effect = this.dex.conditions.get(effect);
if (!target?.hp)
return 0;
let success = null;
boost = this.runEvent("TryBoost", target, source, effect, { ...boost });
let i;
for (i in boost) {
const currentBoost = {};
currentBoost[i] = boost[i];
if (boost[i] !== 0) {
const boostResult = target.boostBy(currentBoost);
if (boostResult) {
success = true;
let msg = "-boost";
if (boost[i] < 0) {
msg = "-unboost";
boost[i] = -boost[i];
}
if (!effect || effect.effectType === "Move") {
this.add(msg, target, i, boost[i]);
} else {
this.add(msg, target, i, boost[i], "[from] " + effect.fullname);
}
this.runEvent("AfterEachBoost", target, source, effect, currentBoost);
}
if (boostResult === 0) {
let msg = "-boost";
let secondmsg = "-unboost";
if (boost[i] < 0) {
msg = "-unboost";
secondmsg = "-boost";
boost[i] = -boost[i];
}
if (!effect || effect.effectType === "Move") {
this.add(msg, target, i, boost[i]);
} else {
this.add(msg, target, i, boost[i], "[from] " + effect.fullname);
}
this.add(secondmsg, target, i, 1);
if (msg === "-boost") {
this.hint(`In Gen 1, boosting a stat at 999 will apply a -1 drop afterwards, and the stat remains at 999.`, true);
} else {
this.hint(`In Gen 1, dropping a stat at 1 will apply a +1 boost afterwards, and the stat remains at 1.`, true);
}
this.runEvent("AfterEachBoost", target, source, effect, currentBoost);
}
}
}
this.runEvent("AfterBoost", target, source, effect, boost);
return success;
}
};
//# sourceMappingURL=scripts.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/scripts.ts"],
"sourcesContent": ["/**\r\n * Gen 1 mechanics are fairly different to those we know on current gen.\r\n * Therefor we need to make a lot of changes to the battle engine for this game simulation.\r\n * This generation inherits all the changes from older generations, that must be taken into account when editing code.\r\n */\r\n\r\nconst SKIP_LASTDAMAGE = new Set([\r\n\t'confuseray', 'conversion', 'counter', 'focusenergy', 'glare', 'haze', 'leechseed', 'lightscreen',\r\n\t'mimic', 'mist', 'poisongas', 'poisonpowder', 'recover', 'reflect', 'rest', 'softboiled',\r\n\t'splash', 'stunspore', 'substitute', 'supersonic', 'teleport', 'thunderwave', 'toxic', 'transform',\r\n]);\r\n\r\nconst TWO_TURN_MOVES = ['dig', 'fly', 'razorwind', 'skullbash', 'skyattack', 'solarbeam'];\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen2',\r\n\tgen: 1,\r\n\tinit() {\r\n\t\tfor (const i in this.data.Pokedex) {\r\n\t\t\t(this.data.Pokedex[i] as any).gender = 'N';\r\n\t\t\t(this.data.Pokedex[i] as any).eggGroups = null;\r\n\t\t}\r\n\t},\r\n\t// BattlePokemon scripts.\r\n\tpokemon: {\r\n\t\tgetStat(statName, unmodified) {\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\t\t\tif (unmodified) return this.baseStoredStats[statName];\r\n\t\t\treturn this.modifiedStats![statName];\r\n\t\t},\r\n\t\t// Gen 1 function to apply a stat modification that is only active until the stat is recalculated or mon switched.\r\n\t\tmodifyStat(statName, modifier) {\r\n\t\t\tif (!(statName in this.storedStats)) throw new Error(\"Invalid `statName` passed to `modifyStat`\");\r\n\t\t\tconst modifiedStats = this.battle.clampIntRange(Math.floor(this.modifiedStats![statName] * modifier), 1);\r\n\t\t\tthis.modifiedStats![statName] = modifiedStats;\r\n\t\t},\r\n\t\t// In generation 1, boosting function increases the stored modified stat and checks for opponent's status.\r\n\t\tboostBy(boost) {\r\n\t\t\tlet changed: boolean | number = false;\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in boost) {\r\n\t\t\t\tconst delta = boost[i];\r\n\t\t\t\tif (delta === undefined) continue;\r\n\t\t\t\tif (delta > 0 && this.boosts[i] >= 6) continue;\r\n\t\t\t\tif (delta < 0 && this.boosts[i] <= -6) continue;\r\n\t\t\t\tif (i === 'evasion' || i === 'accuracy') {\r\n\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchanged = true;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t// Stat being modified is not evasion or accuracy, so change modifiedStats.\r\n\t\t\t\tif (delta > 0) {\r\n\t\t\t\t\tif (this.modifiedStats![i] === 999) {\r\n\t\t\t\t\t\t// Intended max stat value\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.boosts[i]--;\r\n\t\t\t\t\t\t// changed = 0 corresponds to increasing stats at 999 (or decreasing at 1).\r\n\t\t\t\t\t\tchanged = 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchanged = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (delta < 0) {\r\n\t\t\t\t\tif (this.modifiedStats![i] === 1) {\r\n\t\t\t\t\t\t// Minimum stat value\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.boosts[i]++;\r\n\t\t\t\t\t\t// changed = 0 corresponds to increasing stats at 999 (or decreasing at 1).\r\n\t\t\t\t\t\tchanged = 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchanged = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (changed) {\r\n\t\t\t\t\t// Recalculate the modified stat\r\n\t\t\t\t\tthis.modifiedStats![i] = this.storedStats[i];\r\n\t\t\t\t\tif (this.boosts[i] >= 0) {\r\n\t\t\t\t\t\tthis.modifyStat!(i, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[i]]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.modifyStat!(i, [100, 66, 50, 40, 33, 28, 25][-this.boosts[i]] / 100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (delta > 0 && this.modifiedStats![i] > 999) {\r\n\t\t\t\t\t\t// Cap the stat at 999\r\n\t\t\t\t\t\tthis.modifiedStats![i] = 999;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn changed;\r\n\t\t},\r\n\t\tclearBoosts() {\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in this.boosts) {\r\n\t\t\t\tthis.boosts[i] = 0;\r\n\t\t\t\t// Recalculate the modified stat\r\n\t\t\t\tif (i === 'evasion' || i === 'accuracy') continue;\r\n\t\t\t\tthis.modifiedStats![i] = this.storedStats[i];\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\t// This function is the main one when running a move.\r\n\t\t// It deals with Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,MAAM,kBAAkB,oBAAI,IAAI;AAAA,EAC/B;AAAA,EAAc;AAAA,EAAc;AAAA,EAAW;AAAA,EAAe;AAAA,EAAS;AAAA,EAAQ;AAAA,EAAa;AAAA,EACpF;AAAA,EAAS;AAAA,EAAQ;AAAA,EAAa;AAAA,EAAgB;AAAA,EAAW;AAAA,EAAW;AAAA,EAAQ;AAAA,EAC5E;AAAA,EAAU;AAAA,EAAa;AAAA,EAAc;AAAA,EAAc;AAAA,EAAY;AAAA,EAAe;AAAA,EAAS;AACxF,CAAC;AAED,MAAM,iBAAiB,CAAC,OAAO,OAAO,aAAa,aAAa,aAAa,WAAW;AAEjF,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;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,KAAK,OAAO,iBACd,CAAC,QAAQ,KAAK,IAAI,OAAO,CAAC,GAAG,YAAY,QAAQ,KAAK,IAAI,OAAO,CAAC,EAAE,UAAU,OAAO,eAAe;AAErG,kBAAQ,KAAK,WAAW;AAExB,cAAI,QAAQ,UAAU,YAAY,GAAG,QAAQ;AAAG,oBAAQ,eAAe,YAAY;AAGnF,cAAI,UAAU,OAAO,MAAM,GAAG;AAE7B,gBAAI,QAAQ,UAAU,cAAc;AAAG,sBAAQ,eAAe,cAAc;AAC5E,mBAAO,QAAQ,UAAU,qBAAqB;AAAA,UAC/C,OAAO;AACN,gBAAI,QAAQ,UAAU,cAAc;AAAG,mBAAK,OAAO,IAAI,iBAAiB,OAAO;AAC/E,gBAAI,QAAQ;ALine truncated
"names": []
}
+153
View File
@@ -0,0 +1,153 @@
"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 = {
bug: {
damageTaken: {
Bug: 0,
Dragon: 0,
Electric: 0,
Fighting: 2,
Fire: 1,
Flying: 1,
Ghost: 0,
Grass: 2,
Ground: 2,
Ice: 0,
Normal: 0,
Poison: 1,
Psychic: 0,
Rock: 1,
Water: 0
}
},
fire: {
damageTaken: {
Bug: 2,
Dragon: 0,
Electric: 0,
Fighting: 0,
Fire: 2,
Flying: 0,
Ghost: 0,
Grass: 2,
Ground: 1,
Ice: 0,
Normal: 0,
Poison: 0,
Psychic: 0,
Rock: 1,
Water: 1
}
},
ghost: {
damageTaken: {
Bug: 2,
Dragon: 0,
Electric: 0,
Fighting: 3,
Fire: 0,
Flying: 0,
Ghost: 1,
Grass: 0,
Ground: 0,
Ice: 0,
Normal: 3,
Poison: 2,
Psychic: 0,
Rock: 0,
Water: 0
}
},
ice: {
damageTaken: {
Bug: 0,
Dark: 0,
Dragon: 0,
Electric: 0,
Fairy: 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
}
},
poison: {
damageTaken: {
psn: 3,
tox: 3,
Bug: 1,
Dragon: 0,
Electric: 0,
Fighting: 2,
Fire: 0,
Flying: 0,
Ghost: 0,
Grass: 2,
Ground: 1,
Ice: 0,
Normal: 0,
Poison: 2,
Psychic: 1,
Rock: 0,
Water: 0
}
},
psychic: {
damageTaken: {
Bug: 1,
Dragon: 0,
Electric: 0,
Fighting: 2,
Fire: 0,
Flying: 0,
Ghost: 3,
Grass: 0,
Ground: 0,
Ice: 0,
Normal: 0,
Poison: 0,
Psychic: 2,
Rock: 0,
Water: 0
}
},
dark: {
inherit: true,
isNonstandard: "Future"
},
steel: {
inherit: true,
isNonstandard: "Future"
}
};
//# sourceMappingURL=typechart.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1/typechart.ts"],
"sourcesContent": ["/**\r\n * Types were different on Gen 1.\r\n * We had no steel nor dark types and there were a couple of important differences:\r\n * Bug and Poison were weak to eachother\r\n * Ice was neutral to fire\r\n * Psychic was immune to ghost\r\n */\r\n\r\nexport const TypeChart: {[k: string]: ModdedTypeData | null} = {\r\n\tbug: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 1,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 2,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 1,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tfire: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\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: 0,\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\tWater: 1,\r\n\t\t},\r\n\t},\r\n\tghost: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 3,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 1,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 3,\r\n\t\t\tPoison: 2,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tice: {\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\tFairy: 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\tpoison: {\r\n\t\tdamageTaken: {\r\n\t\t\tpsn: 3,\r\n\t\t\ttox: 3,\r\n\t\t\tBug: 1,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 0,\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: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 2,\r\n\t\t\tPsychic: 1,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tpsychic: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 1,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 3,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 2,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tdark: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: 'Future',\r\n\t},\r\n\tsteel: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: 'Future',\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,YAAkD;AAAA,EAC9D,KAAK;AAAA,IACJ,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;A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