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

+38
View File
@@ -0,0 +1,38 @@
"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 = {
invulnerability: {
// Dig/Fly
name: "invulnerability",
onInvulnerability(target, source, move) {
if (target === source)
return true;
if (move.id === "swift" && target.volatiles["substitute"] || 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/gen1jpn/conditions.ts"],
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tinvulnerability: {\r\n\t\t// Dig/Fly\r\n\t\tname: 'invulnerability',\r\n\t\tonInvulnerability(target, source, move) {\r\n\t\t\tif (target === source) return true;\r\n\t\t\tif ((move.id === 'swift' && target.volatiles['substitute']) || move.id === 'transform') return true;\r\n\t\t\tthis.add('-message', 'The foe ' + target.name + ' can\\'t be hit while invulnerable!');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,iBAAiB;AAAA;AAAA,IAEhB,MAAM;AAAA,IACN,kBAAkB,QAAQ,QAAQ,MAAM;AACvC,UAAI,WAAW;AAAQ,eAAO;AAC9B,UAAK,KAAK,OAAO,WAAW,OAAO,UAAU,YAAY,KAAM,KAAK,OAAO;AAAa,eAAO;AAC/F,WAAK,IAAI,YAAY,aAAa,OAAO,OAAO,mCAAoC;AACpF,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
"names": []
}
+104
View File
@@ -0,0 +1,104 @@
"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 = {
blizzard: {
inherit: true,
secondary: {
chance: 30,
status: "frz"
}
},
substitute: {
inherit: true,
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.drain) {
this.add("-miss", source);
this.hint("In the Japanese versions of Gen 1, draining moves always miss against substitutes.");
return null;
}
if (move.category === "Status") {
const subBlocked = ["lockon", "meanlook", "mindreader", "nightmare"];
if (move.status && ["psn", "tox"].includes(move.status) || 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 (!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(Math.round(uncappedDamage * move.recoil[0] / move.recoil[1]), source, target, "recoil");
}
if (move.drain) {
this.heal(Math.ceil(uncappedDamage * move.drain[0] / move.drain[1]), source, target, "drain");
}
}
this.runEvent("AfterSubDamage", target, source, move, uncappedDamage);
const lastAttackedBy = target.getLastAttackedBy();
if (!lastAttackedBy) {
target.attackedBy.push({ source, move: move.id, damage: uncappedDamage, thisTurn: true, slot: source.getSlot() });
} else {
lastAttackedBy.move = move.id;
lastAttackedBy.damage = uncappedDamage;
}
return 0;
},
onAccuracy(accuracy, target, source, move) {
if (move.id === "swift") {
return true;
}
return accuracy;
},
onEnd(target) {
this.add("-end", target, "Substitute");
}
}
},
swift: {
inherit: true,
accuracy: 100
}
};
//# sourceMappingURL=moves.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1jpn/moves.ts"],
"sourcesContent": ["/**\r\n * The japanese version of Blizzard in Gen 1 had a 30% chance to freeze\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 30,\r\n\t\t\tstatus: 'frz',\r\n\t\t},\r\n\t},\r\n\tsubstitute: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(target) {\r\n\t\t\t\tthis.add('-start', target, 'Substitute');\r\n\t\t\t\tthis.effectState.hp = Math.floor(target.maxhp / 4) + 1;\r\n\t\t\t\tdelete target.volatiles['partiallytrapped'];\r\n\t\t\t},\r\n\t\t\tonTryHitPriority: -1,\r\n\t\t\tonTryHit(target, source, move) {\r\n\t\t\t\tif (move.drain) {\r\n\t\t\t\t\tthis.add('-miss', source);\r\n\t\t\t\t\tthis.hint(\"In the Japanese versions of Gen 1, draining moves always miss against substitutes.\");\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tif (move.category === 'Status') {\r\n\t\t\t\t\t// In gen 1 it only blocks:\r\n\t\t\t\t\t// poison, confusion, secondary effect confusion, stat reducing moves and Leech Seed.\r\n\t\t\t\t\tconst subBlocked = ['lockon', 'meanlook', 'mindreader', 'nightmare'];\r\n\t\t\t\t\tif ((move.status && ['psn', 'tox'].includes(move.status)) || (move.boosts && target !== source) ||\r\n\t\t\t\t\t\tmove.volatileStatus === 'confusion' || subBlocked.includes(move.id)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (move.volatileStatus && target === source) return;\r\n\t\t\t\t// NOTE: In future generations the damage is capped to the remaining HP of the\r\n\t\t\t\t// Substitute, here we deliberately use the uncapped damage when tracking lastDamage etc.\r\n\t\t\t\t// Also, multi-hit moves must always deal the same damage as the first hit for any subsequent hits\r\n\t\t\t\tlet uncappedDamage = move.hit > 1 ? this.lastDamage : this.actions.getDamage(source, target, move);\r\n\t\t\t\tif (!uncappedDamage && uncappedDamage !== 0) return null;\r\n\t\t\t\tuncappedDamage = this.runEvent('SubDamage', target, source, move, uncappedDamage);\r\n\t\t\t\tif (!uncappedDamage && uncappedDamage !== 0) return uncappedDamage;\r\n\t\t\t\tthis.lastDamage = uncappedDamage;\r\n\t\t\t\ttarget.volatiles['substitute'].hp -= uncappedDamage > target.volatiles['substitute'].hp ?\r\n\t\t\t\t\ttarget.volatiles['substitute'].hp : uncappedDamage;\r\n\t\t\t\tif (target.volatiles['substitute'].hp <= 0) {\r\n\t\t\t\t\ttarget.removeVolatile('substitute');\r\n\t\t\t\t\ttarget.subFainted = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.add('-activate', target, 'Substitute', '[damage]');\r\n\t\t\t\t}\r\n\t\t\t\t// Drain/recoil does not happen if the substitute breaks\r\n\t\t\t\tif (target.volatiles['substitute']) {\r\n\t\t\t\t\tif (move.recoil) {\r\n\t\t\t\t\t\tthis.damage(Math.round(uncappedDamage * move.recoil[0] / move.recoil[1]), source, target, 'recoil');\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (move.drain) {\r\n\t\t\t\t\t\tthis.heal(Math.ceil(uncappedDamage * move.drain[0] / move.drain[1]), source, target, 'drain');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.runEvent('AfterSubDamage', target, source, move, uncappedDamage);\r\n\t\t\t\t// Add here counter damage\r\n\t\t\t\tconst lastAttackedBy = target.getLastAttackedBy();\r\n\t\t\t\tif (!lastAttackedBy) {\r\n\t\t\t\t\ttarget.attackedBy.push({source: source, move: move.id, damage: uncappedDamage, thisTurn: true, slot: source.getSlot()});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlastAttackedBy.move = move.id;\r\n\t\t\t\t\tlastAttackedBy.damage = uncappedDamage;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t},\r\n\t\t\tonAccuracy(accuracy, target, source, move) {\r\n\t\t\t\tif (move.id === 'swift') {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn accuracy;\r\n\t\t\t},\r\n\t\t\tonEnd(target) {\r\n\t\t\t\tthis.add('-end', target, 'Substitute');\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tswift: {\r\n\t\tinherit: true,\r\n\t\taccurac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wnPropDesc = 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"]
},
nintendocup1997movelegality: {
effectType: "ValidatorRule",
name: "Nintendo Cup 1997 Move Legality",
desc: "Bans move combinations on Pok\xE9mon that would only be obtainable in Pok\xE9mon Yellow.",
banlist: [
// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/
// https://www.smogon.com/forums/threads/rby-tradebacks-bug-report-thread.3524844/post-9235903
// Due to Yellow learnset modifications not applying, there are a few more incompatibilities than usual.
"Nidoking + Fury Attack + Thrash",
"Nidoking + Double Kick + Thrash",
"Butterfree + Tackle + Harden",
"Butterfree + String Shot + Harden",
"Exeggutor + Poison Powder + Stomp",
"Exeggutor + Sleep Powder + Stomp",
"Exeggutor + Stun Spore + Stomp",
"Eevee + Tackle + Growl",
"Vaporeon + Tackle + Growl",
"Jolteon + Tackle + Growl",
"Jolteon + Focus Energy + Thunder Shock",
"Flareon + Tackle + Growl",
"Flareon + Focus Energy + Ember"
],
onValidateSet(set) {
const rgb97Legality = {
charizard: { fly: "illegal" },
butterfree: {
confusion: 12,
poisonpowder: 15,
stunspore: 16,
sleeppowder: 17,
supersonic: 21,
psybeam: 34,
flash: "illegal",
gust: "illegal"
},
fearow: { payday: "illegal" },
pikachu: { quickattack: 16, tailwhip: "illegal", slam: "illegal", lightscreen: "illegal" },
raichu: { quickattack: 16, tailwhip: "illegal", slam: "illegal", lightscreen: "illegal" },
nidoranf: { doublekick: 43 },
nidorina: { doublekick: 43 },
nidoqueen: { doublekick: 43 },
nidoranm: { doublekick: 43 },
nidorino: { doublekick: 43 },
nidoking: { doublekick: 43 },
venonat: { poisonpowder: 24, supersonic: "illegal", confusion: "illegal" },
venomoth: { poisonpowder: 24, supersonic: "illegal" },
diglett: { cut: "illegal" },
dugtrio: { cut: "illegal" },
psyduck: { amnesia: "illegal" },
golduck: { amnesia: "illegal" },
mankey: { lowkick: "illegal", screech: "illegal" },
primeape: { lowkick: "illegal", screech: "illegal" },
kadabra: { kinesis: "illegal" },
alakazam: { kinesis: "illegal" },
rapidash: { payday: "illegal" },
cubone: { tailwhip: "illegal", headbutt: "illegal" },
marowak: { tailwhip: "illegal", headbutt: "illegal" },
chansey: { tailwhip: "illegal" },
tangela: { absorb: 29, growth: 49, vinewhip: "illegal" },
scyther: { wingattack: "illegal" },
pinsir: { bind: "illegal" },
magikarp: { dragonrage: "illegal" },
eevee: { quickattack: 27, tailwhip: 31, bite: 37, growl: "illegal", focusenergy: "illegal" },
vaporeon: {
quickattack: 27,
tailwhip: 31,
watergun: 31,
bite: 37,
acidarmor: 42,
haze: 44,
mist: 48,
hydropump: 54,
growl: "illegal",
focusenergy: "illegal",
aurorabeam: "illegal"
},
jolteon: {
quickattack: 27,
tailwhip: 31,
thundershock: 31,
bite: 37,
doublekick: 42,
agility: 44,
pinmissile: 48,
growl: "illegal",
focusenergy: "illegal"
},
flareon: {
quickattack: 27,
tailwhip: 31,
ember: 31,
bite: 37,
leer: 42,
firespin: 44,
flamethrower: 54,
growl: "illegal",
focusenergy: "illegal",
smog: "illegal"
}
};
const species = this.dex.species.get(set.species || set.name);
const legalityList = rgb97Legality[species.id];
if (!legalityList)
return;
const problems = [];
if (set.moves) {
for (const moveid of set.moves.map(this.toID)) {
if (legalityList[moveid]) {
if (legalityList[moveid] === "illegal") {
problems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} in 1997.`);
} else if (set.level < legalityList[moveid]) {
problems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} before level ${legalityList[moveid]} in 1997.`);
}
}
}
}
return problems;
}
}
};
//# sourceMappingURL=rulesets.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1jpn/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\tnintendocup1997movelegality: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Nintendo Cup 1997 Move Legality',\r\n\t\tdesc: \"Bans move combinations on Pok\\u00e9mon that would only be obtainable in Pok\\u00e9mon Yellow.\",\r\n\t\tbanlist: [\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-tradebacks-bug-report-thread.3524844/post-9235903\r\n\t\t\t// Due to Yellow learnset modifications not applying, there are a few more incompatibilities than usual.\r\n\t\t\t'Nidoking + Fury Attack + Thrash', 'Nidoking + Double Kick + Thrash',\r\n\t\t\t'Butterfree + Tackle + Harden', 'Butterfree + String Shot + Harden',\r\n\t\t\t'Exeggutor + Poison Powder + Stomp', 'Exeggutor + Sleep Powder + Stomp', 'Exeggutor + Stun Spore + Stomp',\r\n\t\t\t'Eevee + Tackle + Growl',\r\n\t\t\t'Vaporeon + Tackle + Growl',\r\n\t\t\t'Jolteon + Tackle + Growl', 'Jolteon + Focus Energy + Thunder Shock',\r\n\t\t\t'Flareon + Tackle + Growl', 'Flareon + Focus Energy + Ember',\r\n\t\t],\r\n\t\tonValidateSet(set) {\r\n\t\t\tconst rgb97Legality: {[speciesid: string]: {[moveid: string]: 'illegal' | number}} = {\r\n\t\t\t\tcharizard: {fly: 'illegal'},\r\n\t\t\t\tbutterfree: {\r\n\t\t\t\t\tconfusion: 12, poisonpowder: 15, stunspore: 16, sleeppowder: 17, supersonic: 21,\r\n\t\t\t\t\tpsybeam: 34, flash: 'illegal', gust: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tfearow: {payday: 'illegal'},\r\n\t\t\t\tpikachu: {quickattack: 16, tailwhip: 'illegal', slam: 'illegal', lightscreen: 'illegal'},\r\n\t\t\t\traichu: {quickattack: 16, tailwhip: 'illegal', slam: 'illegal', lightscreen: 'illegal'},\r\n\t\t\t\tnidoranf: {doublekick: 43},\r\n\t\t\t\tnidorina: {doublekick: 43},\r\n\t\t\t\tnidoqueen: {doublekick: 43},\r\n\t\t\t\tnidoranm: {doublekick: 43},\r\n\t\t\t\tnidorino: {doublekick: 43},\r\n\t\t\t\tnidoking: {doublekick: 43},\r\n\t\t\t\tvenonat: {poisonpowder: 24, supersonic: 'illegal', confusion: 'illegal'},\r\n\t\t\t\tvenomoth: {poisonpowder: 24, supersonic: 'illegal'},\r\n\t\t\t\tdiglett: {cut: 'illegal'},\r\n\t\t\t\tdugtrio: {cut: 'illegal'},\r\n\t\t\t\tpsyduck: {amnesia: 'illegal'},\r\n\t\t\t\tgolduck: {amnesia: 'illegal'},\r\n\t\t\t\tmankey: {lowkick: 'illegal', screech: 'illegal'},\r\n\t\t\t\tprimeape: {lowkick: 'illegal', screech: 'illegal'},\r\n\t\t\t\tkadabra: {kinesis: 'illegal'},\r\n\t\t\t\talakazam: {kinesis: 'illegal'},\r\n\t\t\t\trapidash: {payday: 'illegal'},\r\n\t\t\t\tcubone: {tailwhip: 'illegal', headbutt: 'illegal'},\r\n\t\t\t\tmarowak: {tailwhip: 'illegal', headbutt: 'illegal'},\r\n\t\t\t\tchansey: {tailwhip: 'illegal'},\r\n\t\t\t\ttangela: {absorb: 29, growth: 49, vinewhip: 'illegal'},\r\n\t\t\t\tscyther: {wingattack: 'illegal'},\r\n\t\t\t\tpinsir: {bind: 'illegal'},\r\n\t\t\t\tmagikarp: {dragonrage: 'illegal'},\r\n\t\t\t\teevee: {quickattack: 27, tailwhip: 31, bite: 37, growl: 'illegal', focusenergy: 'illegal'},\r\n\t\t\t\tvaporeon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, watergun: 31, bite: 37, acidarmor: 42, haze: 44, mist: 48, hydropump: 54,\r\n\t\t\t\t\tgrowl: 'illegal', focusenergy: 'illegal', aurorabeam: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tjolteon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, thundershock: 31, bite: 37, doublekick: 42, agility: 44,\r\n\t\t\t\t\tpinmissile: 48, growl: 'illegal', focusenergy: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tflareon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, ember: 31, bite: 37, leer: 42, firespin: 44, flamethrower: 54,\r\n\t\t\t\t\tgrowl: 'illegal', focusenergy: 'illegal', smog: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\t\tconst species = this.dex.species.get(set.species || set.name);\r\n\t\t\tconst legalityList = rgb97Legality[species.id];\r\n\t\t\tif (!legalityList) return;\r\n\t\t\tconst problems = [];\r\n\t\t\tif (set.moves) {\r\n\t\t\t\tfor (const moveid of set.moves.map(this.toID)) {\r\n\t\t\t\t\tif (legalityList[moveid]) {\r\n\t\t\t\t\t\tif (legalityList[moveid] === 'illegal') {\r\n\t\t\t\t\t\t\tproblems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} in 1997.`);\r\n\t\t\t\t\t\t} else if (set.level < legalityList[moveid]) {\r\n\t\t\t\t\t\t\tproblems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} before level ${legalityList[moveid]} in 1997.`);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn problems;\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,6BAA6B;AAAA,IAC5B,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA;AAAA;AAAA;AAAA,MAIR;AAAA,MAAmC;AAAA,MACnC;AAAA,MAAgC;AAAA,MAChC;AAAA,MAAqC;AAAA,MAAoC;AAAA,MACzE;AAAA,MACA;AAAA,MACA;AAAA,MAA4B;AAAA,MAC5B;AAAA,MAA4B;AAAA,IAC7B;AAAA,IACA,cAAc,KAAK;AAClB,YAAM,gBAA+E;AAAA,QACpF,WAAW,EAAC,KAAK,UAAS;AAAA,QAC1B,YAAY;AAAA,UACX,WAAW;AAAA,UAAI,cAAc;AAAA,UAAI,WAAW;AAAA,UAAI,aAAa;AAAA,UAAI,YAAY;AAAA,UAC7E,SAAS;AAAA,UAAI,OAAO;AAAA,UAAW,MAAM;AAAA,QACtC;AAAA,QACA,QAAQ,EAAC,QAAQ,UAAS;AAAA,QAC1B,SAAS,EAAC,aAAa,IAAI,UAAU,WAAW,MAAM,WA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";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var scripts_exports = {};
__export(scripts_exports, {
Scripts: () => Scripts
});
module.exports = __toCommonJS(scripts_exports);
const Scripts = {
inherit: "gen1",
gen: 1
};
//# sourceMappingURL=scripts.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen1jpn/scripts.ts"],
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen1',\r\n\tgen: 1,\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AACN;",
"names": []
}