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

File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/abilities.ts"],
"sourcesContent": ["import {SSBSet, ssbSets} from \"./random-teams\";\r\nimport {getName} from './conditions';\r\n\r\n// Used in many abilities, placed here to reduce the number of updates needed and to reduce the chance of errors\r\nconst STRONG_WEATHERS = ['desolateland', 'primordialsea', 'deltastream', 'heavyhailstorm', 'winterhail', 'turbulence'];\r\n\r\n/**\r\n * Assigns a new set to a Pok\u00E9mon\r\n * @param pokemon the Pokemon to assign the set to\r\n * @param newSet the SSBSet to assign\r\n */\r\nexport function changeSet(context: Battle, pokemon: Pokemon, newSet: SSBSet, changeAbility = false) {\r\n\tif (pokemon.transformed) return;\r\n\tconst evs: StatsTable = {\r\n\t\thp: newSet.evs?.hp || 0,\r\n\t\tatk: newSet.evs?.atk || 0,\r\n\t\tdef: newSet.evs?.def || 0,\r\n\t\tspa: newSet.evs?.spa || 0,\r\n\t\tspd: newSet.evs?.spd || 0,\r\n\t\tspe: newSet.evs?.spe || 0,\r\n\t};\r\n\tconst ivs: StatsTable = {\r\n\t\thp: newSet.ivs?.hp || 31,\r\n\t\tatk: newSet.ivs?.atk || 31,\r\n\t\tdef: newSet.ivs?.def || 31,\r\n\t\tspa: newSet.ivs?.spa || 31,\r\n\t\tspd: newSet.ivs?.spd || 31,\r\n\t\tspe: newSet.ivs?.spe || 31,\r\n\t};\r\n\tpokemon.set.evs = evs;\r\n\tpokemon.set.ivs = ivs;\r\n\tif (newSet.nature) pokemon.set.nature = Array.isArray(newSet.nature) ? context.sample(newSet.nature) : newSet.nature;\r\n\tconst oldShiny = pokemon.set.shiny;\r\n\tpokemon.set.shiny = (typeof newSet.shiny === 'number') ? context.randomChance(1, newSet.shiny) : !!newSet.shiny;\r\n\tlet percent = (pokemon.hp / pokemon.baseMaxhp);\r\n\tif (newSet.species === 'Shedinja') percent = 1;\r\n\tpokemon.formeChange(newSet.species, context.effect, true);\r\n\tconst details = pokemon.species.name + (pokemon.level === 100 ? '' : ', L' + pokemon.level) +\r\n\t\t(pokemon.gender === '' ? '' : ', ' + pokemon.gender) + (pokemon.set.shiny ? ', shiny' : '');\r\n\tif (oldShiny !== pokemon.set.shiny) context.add('replace', pokemon, details);\r\n\tif (changeAbility) pokemon.setAbility(newSet.ability as string);\r\n\r\n\tpokemon.baseMaxhp = pokemon.species.name === 'Shedinja' ? 1 : Math.floor(Math.floor(\r\n\t\t2 * pokemon.species.baseStats.hp + pokemon.set.ivs.hp + Math.floor(pokemon.set.evs.hp / 4) + 100\r\n\t) * pokemon.level / 100 + 10);\r\n\tconst newMaxHP = pokemon.baseMaxhp;\r\n\tpokemon.hp = Math.round(newMaxHP * percent);\r\n\tpokemon.maxhp = newMaxHP;\r\n\tcontext.add('-heal', pokemon, pokemon.getHealth, '[silent]');\r\n\tif (pokemon.item) {\r\n\t\tlet item = newSet.item;\r\n\t\tif (typeof item !== 'string') item = item[context.random(item.length)];\r\n\t\tif (context.toID(item) !== (pokemon.item || pokemon.lastItem)) pokemon.setItem(item);\r\n\t}\r\n\tif (!pokemon.m.datacorrupt) {\r\n\t\tconst newMoves = changeMoves(context, pokemon, newSet.moves.concat(newSet.signatureMove));\r\n\t\tpokemon.moveSlots = newMoves;\r\n\t\t// @ts-ignore Necessary so pokemon doesn't get 8 moves\r\n\t\tpokemon.baseMoveSlots = newMoves;\r\n\t}\r\n\tcontext.add('-ability', pokemon, `${pokemon.getAbility().name}`);\r\n\tcontext.add('message', `${pokemon.name} changed form!`);\r\n}\r\n\r\n/**\r\n * Assigns new moves to a Pokemon\r\n * @param pokemon The Pokemon whose moveset is to be modified\r\n * @param newSet The set whose moves should be assigned\r\n */\r\nexport function changeMoves(context: Battle, pokemon: Pokemon, newMoves: (string | string[])[]) {\r\n\tconst carryOver = pokemon.moveSlots.slice().map(m => m.pp / m.maxpp);\r\n\t// In case there are ever less than 4 moves\r\n\twhile (carryOver.length < 4) {\r\n\t\tcarryOver.push(1);\r\n\t}\r\n\tconst result = [];\r\n\tlet slot = 0;\r\n\tfor (const newMove of newMoves) {\r\n\t\tconst moveName = Array.isArray(newMove) ? newMove[context.random(newMove.length)] : newMove;\r\n\t\tconst move = context.dex.moves.get(context.toID(moveName));\r\n\t\tif (!move.id) continue;\r\n\t\tconst moveSlot = {\r\n\t\t\tmove: move.name,\r\n\t\t\tid: move.id,\r\n\t\t\t// eslint-disable-next-line max-len\r\n\t\t\tpp: ((move.noPPBoosts || move.isZ) ? Math.floor(move.pp * carryOver[slot]) : Math.floor((move.pp * (8 / 5)) * carryOver[slot])),\r\n\t\t\tmaxpp: ((move.noPPBoosts || move.isZ) ? move.pp : move.pp * 8 / 5),\r\n\t\t\ttarget: move.target,\r\n\t\t\tdisabled: false,\r\n\t\t\tdisabledSource: '',\r\n\t\t\tused: false,\r\n\t\t};\r\n\t\tresult.push(moveSlot);\r\n\t\tslot++;\r\n\t}\r\n\treturn result;\r\n}\r\n\r\nexport const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\t/*\r\n\t// Example\r\n\t\"abilityid\": {\r\n\t\tdesc: \"\", // long description\r\n\t\tshortDesc: \"\", // short description, shows up in /dt\r\n\t\tname: \"Ability Name\",\r\n\t\t// The bulk of an ability is not easily shown in an example since it varies\r\n\t\t// For more examples, see https://github.com/smogon/pokemon-showdown/blob/master/data/abilities.js\r\n\t},\r\n\t*/\r\n\t// Please keep abilites organized alphabetically based on staff member name!\r\n\t// Aelita\r\n\tscyphozoa: {\r\n\t\tdesc: \"On switch-in, this Pokemon removes all field conditions, enLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA8B;AAC9B,wBAAsB;AAGtB,MAAM,kBAAkB,CAAC,gBAAgB,iBAAiB,eAAe,kBAA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,QACjC;AAAA,MACD;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,aAAa,MAAM;AAClB,WAAK,gBAAgB;AAAA,IACtB;AAAA,IACA,iBAAiB;AAAA,IACjB,WAAW,SAAS;AACnB,UAAI,QAAQ,YAAY,gBAAgB,aAAa,QAAQ,eAAe,CAAC,QAAQ;AAAI;AACzF,UAAI,QAAQ,QAAQ,OAAO,qBAAqB,QAAQ,KAAK,QAAQ,QAAQ;AAAG;AAChF,WAAK,IAAI,aAAa,SAAS,oBAAoB;AACnD,cAAQ,YAAY,oBAAoB,KAAK,QAAQ,IAAI;AACzD,cAAQ,YAAY,KAAK,MAAM,KAAK;AAAA,QACnC,IAAI,QAAQ,QAAQ,UAAU,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,KAAK,MAAM,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI;AAAA,MACvG,IAAI,QAAQ,QAAQ,MAAM,EAAE;AAC5B,YAAM,WAAW,QAAQ,UAAU,SAAS,IAAK,IAAI,QAAQ,YAAa,QAAQ;AAClF,cAAQ,KAAK,YAAY,QAAQ,QAAQ,QAAQ;AACjD,cAAQ,QAAQ;AAChB,WAAK,IAAI,SAAS,SAAS,QAAQ,WAAW,UAAU;AAAA,IACzD;AAAA,IACA,KAAK;AAAA,EACN;AAAA;AAAA,EAGA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,aAAa;AAAA,IACLine truncated
"names": ["move"]
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/conditions.ts"],
"sourcesContent": ["import {FS} from '../../../lib';\r\nimport {toID} from '../../../sim/dex-data';\r\n\r\n// Similar to User.usergroups. Cannot import here due to users.ts requiring Chat\r\n// This also acts as a cache, meaning ranks will only update when a hotpatch/restart occurs\r\nconst usergroups: {[userid: string]: string} = {};\r\nconst usergroupData = FS('config/usergroups.csv').readIfExistsSync().split('\\n');\r\nfor (const row of usergroupData) {\r\n\tif (!toID(row)) continue;\r\n\r\n\tconst cells = row.split(',');\r\n\tif (cells.length > 3) throw new Error(`Invalid entry when parsing usergroups.csv`);\r\n\tusergroups[toID(cells[0])] = cells[1].trim() || ' ';\r\n}\r\n\r\nexport function getName(name: string): string {\r\n\tconst userid = toID(name);\r\n\tif (!userid) throw new Error('No/Invalid name passed to getSymbol');\r\n\r\n\tconst group = usergroups[userid] || ' ';\r\n\treturn group + name;\r\n}\r\n\r\nexport const Conditions: {[k: string]: ModdedConditionData & {innateName?: string}} = {\r\n\t/*\r\n\t// Example:\r\n\tuserid: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Username')}|Switch In Message`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Username')}|Switch Out Message`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Username')}|Faint Message`);\r\n\t\t},\r\n\t\t// Innate effects go here\r\n\t},\r\n\tIMPORTANT: Obtain the username from getName\r\n\t*/\r\n\t// Please keep statuses organized alphabetically based on staff member name!\r\n\tabdelrahman: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Abdelrahman')}|good morning, i'm town`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Abdelrahman')}|brb gonna go lynch scum`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Abdelrahman')}|I CC COP TOWN FAILED`);\r\n\t\t},\r\n\t},\r\n\tadri: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Adri')}|This time will definitely be the one !`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Adri')}|//afk`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Adri')}|Until next time...`);\r\n\t\t},\r\n\t},\r\n\taelita: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aelita')}|The Scyphozoa's absorbing Aelita's memories!`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aelita')}|We scared it away but it will be back. We can't let it get ahold of Aelita's memories.`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aelita')}|X.A.N.A. is finally finished for good.`);\r\n\t\t},\r\n\t},\r\n\taegii: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('aegii')}|shoot! take a pano~rama~ https://youtu.be/G8GaQdW2wHc`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('aegii')}|${this.sample([`brb, buying albums`, `brb, downloading fancams`, `brb, streaming mvs`, `brb, learning choreos`])}`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('aegii')}|i forgot to stan loona...`);\r\n\t\t},\r\n\t},\r\n\taeonic: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aeonic')}|What's bonkin?`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aeonic')}|I am thou, thou art I`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aeonic')}|Guys the emoji movie wasn't __that bad__`);\r\n\t\t},\r\n\t},\r\n\taethernum: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aethernum')}|Hlelo ^_^ Lotad is so cute, don't you think? But don't underestimate him!`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aethernum')}|Sinking in this sea of possibilities for now...but i'll float back once again!`);\r\n\t\t},\r\n\t\tonFaint() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Aethernum')}|Ok, ok, i have procrastinated enough here, time to go ^_^' See ya around!`);\r\n\t\t},\r\n\t},\r\n\takir: {\r\n\t\tnoCopy: true,\r\n\t\tonStart() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Akir')}|hey whats up`);\r\n\t\t},\r\n\t\tonSwitchOut() {\r\n\t\t\tthis.add(`c:|${Math.floor(Date.now() / 1000)}|${getName('Akir')}|let me get back to you`);\r\n\t\t},\r\n\t\tonFaLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiB;AACjB,sBAAmB;AAInB,MAAM,aAAyC,CAAC;AAChD,MAAM,oBAAgB,eAAG,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,IAAI;AAC/E,WAAW,OAAO,eAAe;AAChC,MAAI,KAAC,sBAAK,GAAG;AAAG;AAEhB,QAAM,QAAQ,IAAI,MAAM,GAAG;AAC3B,MAAI,MAAM,SAAS;AAAG,UAAM,IAAI,MAAM,2CAA2C;AACjF,iBAAW,sBAAK,MAAM,CAAC,C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AA,IACA,cAAc;AACb,WAAK,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,KAAK,QAAQ,MAAM,kBAAkB;AAAA,IACjF;AAAA,IACA,UAAU;AACT,WAAK,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,KAAK,QAAQ,MAAM,qBAAqB;AAAA,IACpF;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,QAAQ;AAAA,IACR,UAAU;AACT,WAAK,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,KAAK,QAAQ,QAAQ,oEAA+D;AAAA,IAChI;AAAA,IACA,cAAc;AACb,WAAK,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,KAAK,QAAQ,QAAQ,oCAAoC;AAAA,IACrG;AAAA,IACA,UAAU;AACT,WAAK,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,KAAK,QAAQ,QAAQ,0DAA0D;Line truncated
"names": []
}
+66
View File
@@ -0,0 +1,66 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var items_exports = {};
__export(items_exports, {
Items: () => Items
});
module.exports = __toCommonJS(items_exports);
const Items = {
// Alpha
caioniumz: {
name: "Caionium Z",
onTakeItem: false,
zMove: "Blistering Ice Age",
zMoveFrom: "Blizzard",
itemUser: ["Aurorus"],
gen: 8,
desc: "If held by an Aurorus with Blizzard, it can use Blistering Ice Age."
},
// A Quag To The Past
quagniumz: {
name: "Quagnium Z",
onTakeItem: false,
zMove: "Bounty Place",
zMoveFrom: "Scorching Sands",
itemUser: ["Quagsire"],
gen: 8,
desc: "If held by a Quagsire with Scorching Sands, it can use Bounty Place."
},
// Kalalokki
kalalokkiumz: {
name: "Kalalokkium Z",
onTakeItem: false,
zMove: "Gaelstrom",
zMoveFrom: "Blackbird",
itemUser: ["Wingull"],
gen: 8,
desc: "If held by a Wingull with Blackbird, it can use Gaelstrom."
},
// Robb576
modium6z: {
name: "Modium-6 Z",
onTakeItem: false,
zMove: "Integer Overflow",
zMoveFrom: "Photon Geyser",
itemUser: ["Necrozma-Ultra"],
gen: 8,
desc: "If held by a Robb576 with Photon Geyser, it can use Integer Overflow."
}
};
//# sourceMappingURL=items.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/items.ts"],
"sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\r\n\t// Alpha\r\n\tcaioniumz: {\r\n\t\tname: \"Caionium Z\",\r\n\t\tonTakeItem: false,\r\n\t\tzMove: \"Blistering Ice Age\",\r\n\t\tzMoveFrom: \"Blizzard\",\r\n\t\titemUser: [\"Aurorus\"],\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by an Aurorus with Blizzard, it can use Blistering Ice Age.\",\r\n\t},\r\n\r\n\t// A Quag To The Past\r\n\tquagniumz: {\r\n\t\tname: \"Quagnium Z\",\r\n\t\tonTakeItem: false,\r\n\t\tzMove: \"Bounty Place\",\r\n\t\tzMoveFrom: \"Scorching Sands\",\r\n\t\titemUser: [\"Quagsire\"],\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by a Quagsire with Scorching Sands, it can use Bounty Place.\",\r\n\t},\r\n\r\n\t// Kalalokki\r\n\tkalalokkiumz: {\r\n\t\tname: \"Kalalokkium Z\",\r\n\t\tonTakeItem: false,\r\n\t\tzMove: \"Gaelstrom\",\r\n\t\tzMoveFrom: \"Blackbird\",\r\n\t\titemUser: [\"Wingull\"],\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by a Wingull with Blackbird, it can use Gaelstrom.\",\r\n\t},\r\n\r\n\t// Robb576\r\n\tmodium6z: {\r\n\t\tname: \"Modium-6 Z\",\r\n\t\tonTakeItem: false,\r\n\t\tzMove: \"Integer Overflow\",\r\n\t\tzMoveFrom: \"Photon Geyser\",\r\n\t\titemUser: [\"Necrozma-Ultra\"],\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by a Robb576 with Photon Geyser, it can use Integer Overflow.\",\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA;AAAA,EAEnD,WAAW;AAAA,IACV,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,UAAU,CAAC,SAAS;AAAA,IACpB,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA;AAAA,EAGA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,UAAU,CAAC,UAAU;AAAA,IACrB,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA;AAAA,EAGA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,UAAU,CAAC,SAAS;AAAA,IACpB,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA;AAAA,EAGA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,UAAU,CAAC,gBAAgB;AAAA,IAC3B,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AACD;",
"names": []
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/moves.ts"],
"sourcesContent": ["import {getName} from './conditions';\r\nimport {changeSet, changeMoves} from \"./abilities\";\r\nimport {ssbSets} from \"./random-teams\";\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\t/*\r\n\t// Example\r\n\tmoveid: {\r\n\t\taccuracy: 100, // a number or true for always hits\r\n\t\tbasePower: 100, // Not used for Status moves, base power of the move, number\r\n\t\tcategory: \"Physical\", // \"Physical\", \"Special\", or \"Status\"\r\n\t\tdesc: \"\", // long description\r\n\t\tshortDesc: \"\", // short description, shows up in /dt\r\n\t\tname: \"Move Name\",\r\n\t\tgen: 8,\r\n\t\tpp: 10, // unboosted PP count\r\n\t\tpriority: 0, // move priority, -6 -> 6\r\n\t\tflags: {}, // Move flags https://github.com/smogon/pokemon-showdown/blob/master/data/moves.js#L1-L27\r\n\t\tonTryMove() {\r\n\t\t\tthis.attrLastMove('[still]'); // For custom animations\r\n\t\t},\r\n\t\tonPrepareHit(target, source) {\r\n\t\t\tthis.add('-anim', source, 'Move Name 1', source);\r\n\t\t\tthis.add('-anim', source, 'Move Name 2', source);\r\n\t\t}, // For custom animations\r\n\t\tsecondary: {\r\n\t\t\tstatus: \"tox\",\r\n\t\t\tchance: 20,\r\n\t\t}, // secondary, set to null to not use one. Exact usage varies, check data/moves.js for examples\r\n\t\ttarget: \"normal\", // What does this move hit?\r\n\t\t// normal = the targeted foe, self = the user, allySide = your side (eg light screen), foeSide = the foe's side (eg spikes), all = the field (eg raindance). More can be found in data/moves.js\r\n\t\ttype: \"Water\", // The move's type\r\n\t\t// Other useful things\r\n\t\tnoPPBoosts: true, // add this to not boost the PP of a move, not needed for Z moves, dont include it otherwise\r\n\t\tisZ: \"crystalname\", // marks a move as a z move, list the crystal name inside\r\n\t\tzMove: {effect: ''}, // for status moves, what happens when this is used as a Z move? check data/moves.js for examples\r\n\t\tzMove: {boost: {atk: 2}}, // for status moves, stat boost given when used as a z move\r\n\t\tcritRatio: 2, // The higher the number (above 1) the higher the ratio, lowering it lowers the crit ratio\r\n\t\tdrain: [1, 2], // recover first num / second num % of the damage dealt\r\n\t\theal: [1, 2], // recover first num / second num % of the target's HP\r\n\t},\r\n\t*/\r\n\t// Please keep sets organized alphabetically based on staff member name!\r\n\t// Abdelrahman\r\n\tthetownoutplay: {\r\n\t\taccuracy: true,\r\n\t\tbasePower: 0,\r\n\t\tcategory: \"Status\",\r\n\t\tdesc: \"Sets Trick Room and has 10% chance to burn the opponent.\",\r\n\t\tshortDesc: \"Sets Trick Room. 10% chance to burn.\",\r\n\t\tname: \"The Town Outplay\",\r\n\t\tgen: 8,\r\n\t\tpp: 5,\r\n\t\tpriority: -5,\r\n\t\tflags: {},\r\n\t\tonTryMove() {\r\n\t\t\tthis.attrLastMove('[still]');\r\n\t\t},\r\n\t\tonPrepareHit(target, source) {\r\n\t\t\tthis.add('-anim', source, 'Trick Room', target);\r\n\t\t},\r\n\t\tonHit(target, source, move) {\r\n\t\t\tif (this.randomChance(1, 10)) {\r\n\t\t\t\tfor (const foe of source.foes()) {\r\n\t\t\t\t\tfoe.trySetStatus('brn', source);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tpseudoWeather: 'trickroom',\r\n\t\tsecondary: null,\r\n\t\ttarget: \"self\",\r\n\t\ttype: \"Fire\",\r\n\t},\r\n\r\n\t// Adri\r\n\tskystriker: {\r\n\t\taccuracy: 100,\r\n\t\tbasePower: 50,\r\n\t\tcategory: \"Special\",\r\n\t\tdesc: \"If this move is successful and the user has not fainted, the effects of Leech Seed and binding moves end for the user, and all hazards are removed from the user's side of the field. Raises the user's Speed by 1 stage.\",\r\n\t\tshortDesc: \"Free user from hazards/bind/Leech Seed; +1 Spe.\",\r\n\t\tname: \"Skystriker\",\r\n\t\tgen: 8,\r\n\t\tpp: 30,\r\n\t\tpriority: 0,\r\n\t\tflags: {protect: 1, mirror: 1},\r\n\t\tonTryMove() {\r\n\t\t\tthis.attrLastMove('[still]');\r\n\t\t},\r\n\t\tonPrepareHit(target, source) {\r\n\t\t\tthis.add('-anim', source, 'Aerial Ace', target);\r\n\t\t},\r\n\t\tonAfterHit(target, pokemon) {\r\n\t\t\tif (pokemon.hp && pokemon.removeVolatile('leechseed')) {\r\n\t\t\t\tthis.add('-end', pokemon, 'Leech Seed', '[from] move: Skystriker', '[of] ' + pokemon);\r\n\t\t\t}\r\n\t\t\tconst sideConditions = [\r\n\t\t\t\t'spikes', 'toxicspikes', 'stealthrock', 'stickyweb', 'gmaxsteelsurge',\r\n\t\t\t];\r\n\t\t\tfor (const condition of sideConditions) {\r\n\t\t\t\tif (pokemon.hp && pokemon.side.removeSideCondition(condition)) {\r\n\t\t\t\t\tthis.add('-sideend', pokemon.side, this.dex.conditions.get(condition).name, '[from] move: Skystriker', '[of] ' + pokemon);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pokemon.hp && pokemon.volatiles['partiallytrapped']) {\r\n\t\t\t\tpokemon.removeVolatile('partiallytrapped');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterSubDamage(damage, target, pokemon) {\r\n\t\t\tif (pokemon.hp && pokemon.removeVolatile('leechseed')) {\r\n\t\t\t\tthis.add('-end', pokemon, 'Leech Seed', '[from] move: Skystriker', '[of] ' + pokemon);\r\n\t\t\t}\r\n\t\t\tconst sideConditions = [\r\n\t\t\t\t'spikes', 'toxLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAsB;AACtB,uBAAqC;AACrC,0BAAsB;AAEf,MAAM,QAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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UAAU,IAAI;AACpB,iBAAK,MAAM,KAAK;AAAA,UACjB;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,MAAM;AAAA,EACP;AAAA;AAAA,EAGA,aAAa;AAAA,IACZ,UAAU;AAAA,IACV,WAAW;AAAA,IACX,UAAU;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,MAAM;AAAA,IACN,KAAK;AAAA,IACL,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,OAAO,EAAC,QAAQ,EAAC;AAAA,IACjB,gBAAgB;AAAA,IAChB,UAAU,QAAQ;AACjB,UAAI,OAAO,UAAU,aAAa;AAAG,eAAO;AAC5C,WAAK,aAAa,SAAS;AAAA,IAC5B;AAAA,IACA,aAAa,QAAQ,QAAQ;AAC5B,YAAM,MAAM,OAAO,KAAK,IAAI,OAAO,CAAC;AACpC,WAAK,IAAI,SAAS,QAAQ,eAAe,MALine truncated
"names": []
}
+289
View File
@@ -0,0 +1,289 @@
"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 = {
/*
// Example
id: {
inherit: true, // Always use this, makes the pokemon inherit its default values from the parent mod (gen7)
baseStats: {hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100}, // the base stats for the pokemon
},
*/
// Abdelrahman
cameruptmega: {
inherit: true,
abilities: { 0: "Water Absorb" }
},
// Aelita
zygardecomplete: {
inherit: true,
abilities: { 0: "Scyphozoa" }
},
// aegii
aegislash: {
inherit: true,
abilities: { 0: "Set the Stage" }
},
aegislashblade: {
inherit: true,
abilities: { 0: "Set the Stage" }
},
// Aeonic
nosepass: {
inherit: true,
baseStats: { hp: 70, atk: 85, def: 135, spa: 45, spd: 90, spe: 70 }
},
// Aethernum
lotad: {
inherit: true,
baseStats: { hp: 40, atk: 70, def: 70, spa: 80, spd: 90, spe: 70 }
},
// Annika
mewtwomegay: {
inherit: true,
baseStats: { hp: 106, atk: 110, def: 90, spa: 154, spd: 90, spe: 130 },
abilities: { 0: "Overprotective" }
},
// A Quag To The Past
quagsire: {
inherit: true,
baseStats: { hp: 95, atk: 65, def: 85, spa: 65, spd: 85, spe: 35 }
},
// Billo
cosmog: {
inherit: true,
baseStats: { hp: 86, atk: 58, def: 62, spa: 87, spd: 62, spe: 74 }
},
// dogknees
furret: {
inherit: true,
types: ["Normal", "Ghost"]
},
// Elgino
celebi: {
inherit: true,
types: ["Grass", "Fairy"]
},
// EpicNikolai
garchompmega: {
inherit: true,
abilities: { 0: "Dragon Heart" },
types: ["Dragon", "Fire"]
},
// Felucia
uxie: {
inherit: true,
types: ["Psychic", "Normal"]
},
// frostyicelad
laprasgmax: {
inherit: true,
heightm: 2.5,
weightkg: 220
},
// GMars
minior: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniorviolet: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniorindigo: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniorblue: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniorgreen: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
minioryellow: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniororange: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
miniormeteor: {
inherit: true,
abilities: { 0: "Capsule Armor" }
},
// Hydro
pichu: {
inherit: true,
types: ["Electric", "Water"],
baseStats: { hp: 67, atk: 58, def: 57, spa: 81, spd: 67, spe: 101 }
},
// Inactive
gyaradosmega: {
inherit: true,
abilities: { 0: "Dragon's Fury" }
},
// Jho
toxtricity: {
inherit: true,
abilities: { 0: "Punk Rock" }
},
toxtricitylowkey: {
inherit: true,
abilities: { 0: "Venomize" }
},
// Kaiju Bunny
lopunnymega: {
inherit: true,
abilities: { 0: "Second Wind" },
types: ["Normal", "Fairy"]
},
// Kris
unown: {
inherit: true,
baseStats: { hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100 },
// For reverting back to an Unown forme
abilities: { 0: "Protean" }
},
// Lamp
lampent: {
inherit: true,
baseStats: { hp: 60, atk: 80, def: 100, spa: 135, spd: 100, spe: 95 }
},
// Meicoo
venusaurmega: {
inherit: true,
abilities: { 0: "Unaware" }
},
// nui
jigglypuff: {
inherit: true,
baseStats: { hp: 115, atk: 128, def: 62, spa: 128, spd: 78, spe: 62 }
},
// Overneat
absolmega: {
inherit: true,
abilities: { 0: "Fluffy" },
types: ["Dark", "Fairy"]
},
// PartMan
chandelure: {
inherit: true,
abilities: { 0: "Hecatomb" }
},
// Psynergy
rayquaza: {
inherit: true,
abilities: { 0: "Supernova" }
},
rayquazamega: {
inherit: true,
abilities: { 0: "Supernova" },
requiredMove: "Clear Breath"
},
// Robb576
necrozmadawnwings: {
inherit: true,
abilities: { 0: "The Numbers Game" }
},
necrozmaduskmane: {
inherit: true,
abilities: { 0: "The Numbers Game" }
},
necrozmaultra: {
inherit: true,
abilities: { 0: "The Numbers Game" }
},
// Strucni
aggronmega: {
inherit: true,
abilities: { 0: "Overasked Clause" }
},
// Finland
alcremie: {
inherit: true,
abilities: { 0: "Winding Song" }
},
// tiki
snom: {
inherit: true,
baseStats: { hp: 70, atk: 65, def: 60, spa: 125, spd: 90, spe: 65 }
},
// vivalospride's interaction with Coconut's move
darumaka: {
inherit: true,
evos: ["Darmanitan", "Darmanitan-Zen"]
},
darmanitanzen: {
inherit: true,
prevo: "Darumaka"
},
// yuki
pikachucosplay: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "Combat Training" }
},
pikachuphd: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "Triage" }
},
pikachulibre: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "White Smoke" }
},
pikachupopstar: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "Dancer" }
},
pikachurockstar: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "Punk Rock" }
},
pikachubelle: {
inherit: true,
baseStats: { hp: 60, atk: 85, def: 50, spa: 95, spd: 85, spe: 110 },
abilities: { 0: "Weak Armor" }
},
// Zalm
weedle: {
inherit: true,
baseStats: { hp: 100, atk: 35, def: 100, spa: 90, spd: 90, spe: 100 }
},
// Zarel
meloetta: {
inherit: true,
abilities: { 0: "Dancer" }
},
meloettapirouette: {
inherit: true,
abilities: { 0: "Serene Grace" }
}
};
//# sourceMappingURL=pokedex.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/pokedex.ts"],
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\t/*\r\n\t// Example\r\n\tid: {\r\n\t\tinherit: true, // Always use this, makes the pokemon inherit its default values from the parent mod (gen7)\r\n\t\tbaseStats: {hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100}, // the base stats for the pokemon\r\n\t},\r\n\t*/\r\n\t// Abdelrahman\r\n\tcameruptmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Water Absorb\"},\r\n\t},\r\n\t// Aelita\r\n\tzygardecomplete: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Scyphozoa\"},\r\n\t},\r\n\t// aegii\r\n\taegislash: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Set the Stage\"},\r\n\t},\r\n\taegislashblade: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Set the Stage\"},\r\n\t},\r\n\t// Aeonic\r\n\tnosepass: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 70, atk: 85, def: 135, spa: 45, spd: 90, spe: 70},\r\n\t},\r\n\t// Aethernum\r\n\tlotad: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 70, def: 70, spa: 80, spd: 90, spe: 70},\r\n\t},\r\n\t// Annika\r\n\tmewtwomegay: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 106, atk: 110, def: 90, spa: 154, spd: 90, spe: 130},\r\n\t\tabilities: {0: \"Overprotective\"},\r\n\t},\r\n\t// A Quag To The Past\r\n\tquagsire: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 95, atk: 65, def: 85, spa: 65, spd: 85, spe: 35},\r\n\t},\r\n\t// Billo\r\n\tcosmog: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 86, atk: 58, def: 62, spa: 87, spd: 62, spe: 74},\r\n\t},\r\n\t// dogknees\r\n\tfurret: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Normal\", \"Ghost\"],\r\n\t},\r\n\t// Elgino\r\n\tcelebi: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Grass\", \"Fairy\"],\r\n\t},\r\n\t// EpicNikolai\r\n\tgarchompmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Dragon Heart\"},\r\n\t\ttypes: [\"Dragon\", \"Fire\"],\r\n\t},\r\n\t// Felucia\r\n\tuxie: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Psychic\", \"Normal\"],\r\n\t},\r\n\t// frostyicelad\r\n\tlaprasgmax: {\r\n\t\tinherit: true,\r\n\t\theightm: 2.5,\r\n\t\tweightkg: 220,\r\n\t},\r\n\t// GMars\r\n\tminior: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiorviolet: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiorindigo: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiorblue: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiorgreen: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminioryellow: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiororange: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\tminiormeteor: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Capsule Armor\"},\r\n\t},\r\n\t// Hydro\r\n\tpichu: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Electric\", \"Water\"],\r\n\t\tbaseStats: {hp: 67, atk: 58, def: 57, spa: 81, spd: 67, spe: 101},\r\n\t},\r\n\t// Inactive\r\n\tgyaradosmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Dragon's Fury\"},\r\n\t},\r\n\t// Jho\r\n\ttoxtricity: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Punk Rock\"},\r\n\t},\r\n\ttoxtricitylowkey: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Venomize\"},\r\n\t},\r\n\t// Kaiju Bunny\r\n\tlopunnymega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Second Wind\"},\r\n\t\ttypes: [\"Normal\", \"Fairy\"],\r\n\t},\r\n\t// Kris\r\n\tunown: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100},\r\n\t\t// For reverting back to an Unown forme\r\n\t\tabilities: {0: \"Protean\"},\r\n\t},\r\n\t// Lamp\r\n\tlampent: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 80, def: 100, spa: 135, spd: 100, spe: 95},\r\n\t},\r\n\t// Meicoo\r\n\tvenusaurmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Unaware\"},\r\n\t},\r\n\t// nui\r\n\tjigglypuff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 115, atk: 128, def: 62, spa: 128, spd: 78, spe: 62},\r\n\t},\r\n\t// Overneat\r\n\tabsolmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Fluffy\"},\r\n\t\ttypes: [\"Dark\", \"Fairy\"],\r\n\t},\r\n\t// PartMan\r\n\tchandelure: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Hecatomb\"},\r\n\t},\r\n\t// Psynergy\r\n\trayquaza: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Supernova\"},\r\n\t},\r\n\trayquazamega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Supernova\"},\r\n\t\trequiredMove: \"Clear Breath\",\r\n\t},\r\n\t// Robb576\r\n\tnecrozmadawnwings: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"The Numbers Game\"},\r\n\t},\r\n\tnecrozmaduskmane: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"The Numbers Game\"},\r\n\t},\r\n\tnecrozmaultra: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"The Numbers Game\"},\r\n\t},\r\n\t// Strucni\r\n\taggronmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Overasked Clause\"},\r\n\t},\r\n\t// Finland\r\n\talcremie: {\r\n\t\tinherit: true,\r\n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Y;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,IAChE,WAAW,EAAC,GAAG,SAAQ;AAAA,EACxB;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,IAChE,WAAW,EAAC,GAAG,cAAa;AAAA,EAC7B;AAAA,EACA,gBAAgB;AAAA,IACf,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,IAChE,WAAW,EAAC,GAAG,SAAQ;AAAA,EACxB;AAAA,EACA,iBAAiB;AAAA,IAChB,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,IAChE,WAAW,EAAC,GAAG,YAAW;AAAA,EAC3B;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAG;AAAA,IAChE,WAAW,EAAC,GAAG,aAAY;AAAA,EAC5B;AAAA;AAAA,EAEA,QAAQ;AAAA,IACP,SAASLine truncated
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/random-teams.ts"],
"sourcesContent": ["import RandomGen8Teams from '../gen8/random-teams';\r\n\r\nexport interface SSBSet {\r\n\tspecies: string;\r\n\tability: string | string[];\r\n\titem: string | string[];\r\n\tgender: GenderName;\r\n\tmoves: (string | string[])[];\r\n\tsignatureMove: string;\r\n\tevs?: {hp?: number, atk?: number, def?: number, spa?: number, spd?: number, spe?: number};\r\n\tivs?: {hp?: number, atk?: number, def?: number, spa?: number, spd?: number, spe?: number};\r\n\tnature?: string | string[];\r\n\tshiny?: number | boolean;\r\n\tlevel?: number;\r\n\thappiness?: number;\r\n\tskip?: string;\r\n}\r\ninterface SSBSets {[k: string]: SSBSet}\r\n\r\nexport const ssbSets: SSBSets = {\r\n\t/*\r\n\t// Example:\r\n\tUsername: {\r\n\t\tspecies: 'Species', ability: 'Ability', item: 'Item', gender: '',\r\n\t\tmoves: ['Move Name', ['Move Name', 'Move Name']],\r\n\t\tsignatureMove: 'Move Name',\r\n\t\tevs: {stat: number}, ivs: {stat: number}, nature: 'Nature', level: 100, shiny: false,\r\n\t},\r\n\t// Species, ability, and item need to be captialized properly ex: Ludicolo, Swift Swim, Life Orb\r\n\t// Gender can be M, F, N, or left as an empty string\r\n\t// each slot in moves needs to be a string (the move name, captialized properly ex: Hydro Pump), or an array of strings (also move names)\r\n\t// signatureMove also needs to be capitalized properly ex: Scripting\r\n\t// You can skip Evs (defaults to 82 all) and/or Ivs (defaults to 31 all), or just skip part of the Evs (skipped evs are 0) and/or Ivs (skipped Ivs are 31)\r\n\t// You can also skip shiny, defaults to false. Level can be skipped (defaults to 100).\r\n\t// Nature needs to be a valid nature with the first letter capitalized ex: Modest\r\n\t*/\r\n\t// Please keep sets organized alphabetically based on staff member name!\r\n\tAbdelrahman: {\r\n\t\tspecies: 'Camerupt', ability: 'Water Absorb', item: 'Cameruptite', gender: 'M',\r\n\t\tmoves: ['Eruption', 'Earth Power', 'Fire Blast'],\r\n\t\tsignatureMove: 'The Town Outplay',\r\n\t\tevs: {hp: 252, spd: 172, spe: 84}, nature: 'Calm',\r\n\t},\r\n\tAdri: {\r\n\t\tspecies: 'Latios', ability: 'Psychic Surge', item: 'Leftovers', gender: 'M',\r\n\t\tmoves: ['Psyshock', 'Calm Mind', 'Aura Sphere'],\r\n\t\tsignatureMove: 'Skystriker',\r\n\t\tevs: {spa: 252, spd: 4, spe: 252}, ivs: {atk: 0}, nature: 'Timid',\r\n\t},\r\n\tAelita: {\r\n\t\tspecies: 'Zygarde', ability: 'Scyphozoa', item: 'Focus Sash', gender: 'F',\r\n\t\tmoves: ['Protect', 'Leech Seed', 'Thousand Arrows'],\r\n\t\tsignatureMove: 'XANA\\'s Keys To Lyoko',\r\n\t\tevs: {hp: 252, atk: 4, spd: 252}, nature: 'Careful',\r\n\t},\r\n\taegii: {\r\n\t\tspecies: 'Aegislash', ability: 'Set the Stage', item: 'Life Orb', gender: 'M',\r\n\t\tmoves: ['Shadow Claw', 'Iron Head', 'Shadow Sneak'],\r\n\t\tsignatureMove: 'Reset',\r\n\t\tevs: {hp: 252, def: 192, spd: 64}, nature: 'Sassy',\r\n\t},\r\n\t'aegii-Alt': {\r\n\t\tspecies: 'Aegislash', ability: 'Set the Stage', item: 'Life Orb', gender: 'M',\r\n\t\tmoves: ['Shadow Ball', 'Flash Cannon', 'Shadow Sneak'],\r\n\t\tsignatureMove: 'Reset',\r\n\t\tevs: {hp: 252, def: 192, spd: 64}, nature: 'Sassy',\r\n\t\tskip: 'aegii',\r\n\t},\r\n\tAeonic: {\r\n\t\tspecies: 'Nosepass', ability: 'Arsene', item: 'Stone Plate', gender: 'M',\r\n\t\tmoves: ['Diamond Storm', 'Earthquake', 'Milk Drink'],\r\n\t\tsignatureMove: 'Looking Cool',\r\n\t\tevs: {atk: 252, def: 4, spd: 252}, nature: 'Impish',\r\n\t},\r\n\tAethernum: {\r\n\t\tspecies: 'Lotad', ability: 'Rainy Season', item: 'Big Root', gender: 'M',\r\n\t\tmoves: ['Giga Drain', 'Muddy Water', 'Hurricane'],\r\n\t\tsignatureMove: 'Lilypad Overflow',\r\n\t\tevs: {spa: 252, spd: 4, spe: 252}, nature: 'Modest',\r\n\t},\r\n\tAkir: {\r\n\t\tspecies: 'Forretress', ability: 'Fortifications', item: 'Leftovers', gender: 'M',\r\n\t\tmoves: ['Rapid Spin', 'Stealth Rock', ['U-turn', 'Toxic']],\r\n\t\tsignatureMove: 'Ravelin',\r\n\t\tevs: {hp: 248, def: 252, spe: 8}, ivs: {spa: 0}, nature: 'Impish',\r\n\t},\r\n\tAlpha: {\r\n\t\tspecies: 'Aurorus', ability: 'Snow Warning', item: 'Caionium Z', gender: 'M',\r\n\t\tmoves: ['Freeze-Dry', 'Ancient Power', 'Earth Power'],\r\n\t\tsignatureMove: 'Blizzard',\r\n\t\tevs: {spa: 252, spd: 4, spe: 252}, ivs: {atk: 0}, nature: 'Timid', shiny: true,\r\n\t},\r\n\tAndrew: {\r\n\t\tspecies: 'Spectrier', ability: 'Neutralizing Gas', item: 'Choice Specs', gender: 'M',\r\n\t\tmoves: ['Moongeist Beam', 'Pollen Puff', 'Trick'],\r\n\t\tsignatureMove: 'Whammer Jammer',\r\n\t\tevs: {hp: 4, spa: 252, spe: 252}, ivs: {atk: 0}, nature: 'Timid',\r\n\t},\r\n\tAnnika: {\r\n\t\tspecies: 'Mewtwo', ability: 'Overprotective', item: 'Mewtwonite Y', gender: 'F',\r\n\t\tmoves: [['Rising Voltage', 'Lava Plume'], ['Hex', 'Aurora Beam'], ['Psychic', 'Psyshock']],\r\n\t\tsignatureMove: 'Data Corruption',\r\n\t\tevs: {spa: 252, spd: 4, spe: 252}, ivs: {atk: 0}, nature: 'Quirky', shiny: true,\r\n\t},\r\n\t'A Quag To The Past': {\r\n\t\tspecies: 'Quagsire', ability: 'Carefree', item: 'Quagnium Z', gender:Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAmBrB,MAAM,UAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkB/B,aAAa;AAAA,IACZ,SAAS;AAAA,IAAY,SAAS;AAAA,IAAgB,MAAM;AAAA,IAAe,QAAQ;AAAA,IAC3E,OAAO,C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D,eAAe;AAAA,IACf,KAAK,EAAC,IAAI,KAAK,KAAK,KAAK,KAAK,EAAC;AAAA,IAAG,KAAK,EAAC,KAAK,EAAC;AAAA,IAAG,QAAQ;AAAA,IAAU,OAAO;AAAA,EAC3E;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IAAW,SAAS;AAAA,IAAc,MAAM;AAAA,IAAa,QAAQ;AAAA,IACtE,OAAO,CAAC,gBAAgB,cAAc,SAAS;AAAA,IAC/C,eAAe;AAAA,IACf,KAAK,EAAC,IAAI,GAAG,KAAK,KAAK,KAAK,IAAG;AAAA,IAAG,KAAK,EAAC,KAAK,EAAC;AAAA,IAAG,QAAQ;AAAA,IAAW,OAAO;AAAA,EAC5E;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IAAW,SAAS;AAAA,IAAc,MAAM,CAAC,aAAa,kBAAkB;AAAA,IAAG,QAAQ;AAAA,IAC5F,OAAO,CAAC,CAAC,YAAY,YAAY,GAAG,CAAC,cAAc,cAAc,GAAG,SAAS;AAAA,IAC7E,eAAe;AAAA,IACf,KAAK,EAAC,IAAI,IAALine truncated
"names": ["RandomGen8Teams"]
}
+951
View File
@@ -0,0 +1,951 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var scripts_exports = {};
__export(scripts_exports, {
Scripts: () => Scripts
});
module.exports = __toCommonJS(scripts_exports);
const Scripts = {
gen: 8,
inherit: "gen8",
actions: {
// 1 mega per pokemon
runMegaEvo(pokemon) {
if (pokemon.name === "Struchni" && pokemon.species.name === "Aggron")
pokemon.canMegaEvo = "Aggron-Mega";
if (pokemon.name === "Raj.Shoot" && pokemon.species.name === "Charizard")
pokemon.canMegaEvo = "Charizard-Mega-X";
const speciesid = pokemon.canMegaEvo || pokemon.canUltraBurst;
if (!speciesid)
return false;
pokemon.formeChange(speciesid, pokemon.getItem(), true);
if (pokemon.canMegaEvo) {
pokemon.canMegaEvo = null;
} else {
pokemon.canUltraBurst = null;
}
this.battle.runEvent("AfterMega", pokemon);
if (["Kaiju Bunny", "Overneat", "EpicNikolai"].includes(pokemon.name) && !pokemon.illusion) {
this.battle.add("-start", pokemon, "typechange", pokemon.types.join("/"));
}
this.battle.add("-ability", pokemon, `${pokemon.getAbility().name}`);
return true;
},
// Modded for Mega Rayquaza
canMegaEvo(pokemon) {
const species = pokemon.baseSpecies;
const altForme = species.otherFormes && this.dex.species.get(species.otherFormes[0]);
const item = pokemon.getItem();
if (altForme?.isMega && altForme?.requiredMove && pokemon.baseMoves.includes(this.battle.toID(altForme.requiredMove)) && !item.zMove) {
return altForme.name;
}
if (item.megaEvolves === species.baseSpecies && item.megaStone !== species.name) {
return item.megaStone;
}
return null;
},
// 1 Z per pokemon
canZMove(pokemon) {
if (pokemon.m.zMoveUsed || pokemon.transformed && (pokemon.species.isMega || pokemon.species.isPrimal || pokemon.species.forme === "Ultra"))
return;
const item = pokemon.getItem();
if (!item.zMove)
return;
if (item.itemUser && !item.itemUser.includes(pokemon.species.name))
return;
let atLeastOne = false;
let mustStruggle = true;
const zMoves = [];
for (const moveSlot of pokemon.moveSlots) {
if (moveSlot.pp <= 0) {
zMoves.push(null);
continue;
}
if (!moveSlot.disabled) {
mustStruggle = false;
}
const move = this.dex.moves.get(moveSlot.move);
let zMoveName = this.getZMove(move, pokemon, true) || "";
if (zMoveName) {
const zMove = this.dex.moves.get(zMoveName);
if (!zMove.isZ && zMove.category === "Status")
zMoveName = "Z-" + zMoveName;
zMoves.push({ move: zMoveName, target: zMove.target });
} else {
zMoves.push(null);
}
if (zMoveName)
atLeastOne = true;
}
if (atLeastOne && !mustStruggle)
return zMoves;
},
getZMove(move, pokemon, skipChecks) {
const item = pokemon.getItem();
if (!skipChecks) {
if (pokemon.m.zMoveUsed)
return;
if (!item.zMove)
return;
if (item.itemUser && !item.itemUser.includes(pokemon.species.name))
return;
const moveData = pokemon.getMoveData(move);
if (!moveData?.pp)
return;
}
if (move.name === item.zMoveFrom) {
return item.zMove;
} else if (item.zMove === true && move.type === item.zMoveType) {
if (move.category === "Status") {
return move.name;
} else if (move.zMove?.basePower) {
return this.Z_MOVES[move.type];
}
}
},
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect, zMove, externalMove, maxMove, originalTarget) {
pokemon.activeMoveActions++;
let target = this.battle.getTarget(pokemon, maxMove || zMove || moveOrMoveName, targetLoc, originalTarget);
let baseMove = this.dex.getActiveMove(moveOrMoveName);
const pranksterBoosted = baseMove.pranksterBoosted;
if (baseMove.id !== "struggle" && !zMove && !maxMove && !externalMove) {
const changedMove = this.battle.runEvent("OverrideAction", pokemon, target, baseMove);
if (changedMove && changedMove !== true) {
baseMove = this.dex.getActiveMove(changedMove);
if (pranksterBoosted)
baseMove.pranksterBoosted = pranksterBoosted;
target = this.battle.getRandomTarget(pokemon, baseMove);
}
}
let move = baseMove;
if (zMove) {
move = this.getActiveZMove(baseMove, pokemon);
} else if (maxMove) {
move = this.getActiveMaxMove(baseMove, pokemon);
}
move.isExternal = externalMove;
this.battle.setActiveMove(move, pokemon, target);
const willTryMove = this.battle.runEvent("BeforeMove", pokemon, target, move);
if (!willTryMove) {
this.battle.runEvent("MoveAborted", pokemon, target, move);
this.battle.clearActiveMove(true);
pokemon.moveThisTurnResult = willTryMove;
return;
}
if (move.beforeMoveCallback) {
if (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {
this.battle.clearActiveMove(true);
pokemon.moveThisTurnResult = false;
return;
}
}
pokemon.lastDamage = 0;
let lockedMove;
if (!externalMove) {
lockedMove = this.battle.runEvent("LockMove", pokemon);
if (lockedMove === true)
lockedMove = false;
if (!lockedMove) {
if (!pokemon.deductPP(baseMove, null, target) && move.id !== "struggle") {
this.battle.add("cant", pokemon, "nopp", move);
const gameConsole = [
null,
"Game Boy",
"Game Boy Color",
"Game Boy Advance",
"DS",
"DS",
"3DS",
"3DS"
][this.battle.gen] || "Switch";
this.battle.hint(`This is not a bug, this is really how it works on the ${gameConsole}; try it yourself if you don't believe us.`);
this.battle.clearActiveMove(true);
pokemon.moveThisTurnResult = false;
return;
}
} else {
sourceEffect = this.dex.conditions.get("lockedmove");
}
pokemon.moveUsed(move, targetLoc);
}
const noLock = externalMove && !pokemon.volatiles["lockedmove"];
if (zMove) {
if (pokemon.illusion) {
this.battle.singleEvent("End", this.dex.abilities.get("Illusion"), pokemon.abilityState, pokemon);
}
this.battle.add("-zpower", pokemon);
pokemon.m.zMoveUsed = true;
}
const moveDidSomething = this.battle.actions.useMove(baseMove, pokemon, target, sourceEffect, zMove, maxMove);
if (this.battle.activeMove)
move = this.battle.activeMove;
this.battle.singleEvent("AfterMove", move, null, pokemon, target, move);
this.battle.runEvent("AfterMove", pokemon, target, move);
if (move.flags["dance"] && moveDidSomething && !move.isExternal) {
const dancers = [];
for (const currentPoke of this.battle.getAllActive()) {
if (pokemon === currentPoke)
continue;
if (currentPoke.hasAbility("dancer") && !currentPoke.isSemiInvulnerable()) {
dancers.push(currentPoke);
}
}
dancers.sort(
(a, b) => -(b.storedStats["spe"] - a.storedStats["spe"]) || b.abilityOrder - a.abilityOrder
);
for (const dancer of dancers) {
if (this.battle.faintMessages())
break;
if (dancer.fainted)
continue;
this.battle.add("-activate", dancer, "ability: Dancer");
const dancersTarget = !target.isAlly(dancer) && pokemon.isAlly(dancer) ? target : pokemon;
const dancersTargetLoc = dancer.getLocOf(dancersTarget);
this.runMove(move.id, dancer, dancersTargetLoc, this.dex.abilities.get("dancer"), void 0, true);
}
}
if (noLock && pokemon.volatiles["lockedmove"])
delete pokemon.volatiles["lockedmove"];
},
// Dollar Store Brand prankster immunity implementation
hitStepTryImmunity(targets, pokemon, move) {
const hitResults = [];
for (const [i, target] of targets.entries()) {
if (this.battle.gen >= 6 && move.flags["powder"] && target !== pokemon && !this.dex.getImmunity("powder", target)) {
this.battle.debug("natural powder immunity");
this.battle.add("-immune", target);
hitResults[i] = false;
} else if (!this.battle.singleEvent("TryImmunity", move, {}, target, pokemon, move)) {
this.battle.add("-immune", target);
hitResults[i] = false;
} else if (this.battle.gen >= 7 && move.pranksterBoosted && (pokemon.hasAbility("prankster") || pokemon.hasAbility("plausibledeniability") || pokemon.volatiles["nol"]) && !targets[i].isAlly(pokemon) && !this.dex.getImmunity("prankster", target)) {
this.battle.debug("natural prankster immunity");
if (!target.illusion)
this.battle.hint("Since gen 7, Dark is immune to Prankster moves.");
this.battle.add("-immune", target);
hitResults[i] = false;
} else {
hitResults[i] = true;
}
}
return hitResults;
},
// For Jett's The Hunt is On!
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect, zMove, maxMove) {
if (!sourceEffect && this.battle.effect.id)
sourceEffect = this.battle.effect;
if (sourceEffect && ["instruct", "custapberry"].includes(sourceEffect.id))
sourceEffect = null;
let move = this.dex.getActiveMove(moveOrMoveName);
if (move.id === "weatherball" && zMove) {
this.battle.singleEvent("ModifyType", move, null, pokemon, target, move, move);
if (move.type !== "Normal")
sourceEffect = move;
}
if (zMove || move.category !== "Status" && sourceEffect && sourceEffect.isZ) {
move = this.getActiveZMove(move, pokemon);
}
if (maxMove && move.category !== "Status") {
this.battle.singleEvent("ModifyType", move, null, pokemon, target, move, move);
this.battle.runEvent("ModifyType", pokemon, target, move, move);
}
if (maxMove || move.category !== "Status" && sourceEffect && sourceEffect.isMax) {
move = this.getActiveMaxMove(move, pokemon);
}
if (this.battle.activeMove) {
move.priority = this.battle.activeMove.priority;
if (!move.hasBounced)
move.pranksterBoosted = this.battle.activeMove.pranksterBoosted;
}
const baseTarget = move.target;
if (target === void 0)
target = this.battle.getRandomTarget(pokemon, move);
if (move.target === "self" || move.target === "allies") {
target = pokemon;
}
if (sourceEffect) {
move.sourceEffect = sourceEffect.id;
move.ignoreAbility = false;
}
let moveResult = false;
this.battle.setActiveMove(move, pokemon, target);
this.battle.singleEvent("ModifyType", move, null, pokemon, target, move, move);
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
if (baseTarget !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
}
move = this.battle.runEvent("ModifyType", pokemon, target, move, move);
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
if (baseTarget !== move.target) {
target = this.battle.getRandomTarget(pokemon, move);
}
if (!move || pokemon.fainted) {
return false;
}
let attrs = "";
let movename = move.name;
if (move.id === "hiddenpower")
movename = "Hidden Power";
if (sourceEffect)
attrs += "|[from]" + this.dex.conditions.get(sourceEffect);
if (zMove && move.isZ === true) {
attrs = "|[anim]" + movename + attrs;
movename = "Z-" + movename;
}
this.battle.addMove("move", pokemon, movename, target + attrs);
if (zMove)
this.runZPower(move, pokemon);
if (!target) {
this.battle.attrLastMove("[notarget]");
this.battle.add(this.battle.gen >= 5 ? "-fail" : "-notarget", pokemon);
return false;
}
const { targets, pressureTargets } = pokemon.getMoveTargets(move, target);
if (targets.length) {
target = targets[targets.length - 1];
}
if (!sourceEffect || sourceEffect.id === "pursuit" || sourceEffect.id === "thehuntison") {
let extraPP = 0;
for (const source of pressureTargets) {
const ppDrop = this.battle.runEvent("DeductPP", source, pokemon, move);
if (ppDrop !== true) {
extraPP += ppDrop || 0;
}
}
if (extraPP > 0) {
pokemon.deductPP(move, extraPP);
}
}
if (!this.battle.singleEvent("TryMove", move, null, pokemon, target, move) || !this.battle.runEvent("TryMove", pokemon, target, move)) {
move.mindBlownRecoil = false;
return false;
}
this.battle.singleEvent("UseMoveMessage", move, null, pokemon, target, move);
if (move.ignoreImmunity === void 0) {
move.ignoreImmunity = move.category === "Status";
}
if (this.battle.gen !== 4 && move.selfdestruct === "always") {
this.battle.faint(pokemon, pokemon, move);
}
let damage = false;
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
damage = this.tryMoveHit(target, pokemon, move);
if (damage === this.battle.NOT_FAIL)
pokemon.moveThisTurnResult = null;
if (damage || damage === 0 || damage === void 0)
moveResult = true;
} else {
if (!targets.length) {
this.battle.attrLastMove("[notarget]");
this.battle.add(this.battle.gen >= 5 ? "-fail" : "-notarget", pokemon);
return false;
}
if (this.battle.gen === 4 && move.selfdestruct === "always") {
this.battle.faint(pokemon, pokemon, move);
}
moveResult = this.trySpreadMoveHit(targets, pokemon, move);
}
if (move.selfBoost && moveResult)
this.moveHit(pokemon, pokemon, move, move.selfBoost, false, true);
if (!pokemon.hp) {
this.battle.faint(pokemon, pokemon, move);
}
if (!moveResult) {
this.battle.singleEvent("MoveFail", move, null, target, pokemon, move);
return false;
}
if (!move.negateSecondary && !(move.hasSheerForce && pokemon.hasAbility(["sheerforce", "aquilasblessing"])) && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
const originalHp = pokemon.hp;
this.battle.singleEvent("AfterMoveSecondarySelf", move, null, pokemon, target, move);
this.battle.runEvent("AfterMoveSecondarySelf", pokemon, target, move);
if (pokemon !== target && move.category !== "Status") {
if (pokemon.hp <= pokemon.maxhp / 2 && originalHp > pokemon.maxhp / 2) {
this.battle.runEvent("EmergencyExit", pokemon, pokemon);
}
}
}
if (move.selfSwitch && this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
this.battle.hint(`Self-switching doesn't trigger when a Pokemon with Skill Drain is active.`);
}
return true;
},
afterMoveSecondaryEvent(targets, pokemon, move) {
if (!move.negateSecondary && !(move.hasSheerForce && pokemon.hasAbility(["sheerforce", "aquilasblessing"])) && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
this.battle.singleEvent("AfterMoveSecondary", move, null, targets[0], pokemon, move);
this.battle.runEvent("AfterMoveSecondary", targets, pokemon, move);
}
return void 0;
},
hitStepMoveHitLoop(targets, pokemon, move) {
const damage = [];
for (const i of targets.keys()) {
damage[i] = 0;
}
move.totalDamage = 0;
pokemon.lastDamage = 0;
let targetHits = move.multihit || 1;
if (Array.isArray(targetHits)) {
if (targetHits[0] === 2 && targetHits[1] === 5) {
if (this.battle.gen >= 5) {
targetHits = this.battle.sample([2, 2, 3, 3, 4, 5]);
} else {
targetHits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
}
} else {
targetHits = this.battle.random(targetHits[0], targetHits[1] + 1);
}
}
targetHits = Math.floor(targetHits);
let nullDamage = true;
let moveDamage;
const isSleepUsable = move.sleepUsable || this.dex.moves.get(move.sourceEffect).sleepUsable;
let targetsCopy = targets.slice(0);
let hit;
for (hit = 1; hit <= targetHits; hit++) {
if (damage.includes(false))
break;
if (hit > 1 && pokemon.status === "slp" && !isSleepUsable)
break;
if (targets.every((target2) => !target2?.hp))
break;
move.hit = hit;
if (move.smartTarget && targets.length > 1) {
targetsCopy = [targets[hit - 1]];
} else {
targetsCopy = targets.slice(0);
}
const target = targetsCopy[0];
if (target && typeof move.smartTarget === "boolean") {
if (hit > 1) {
this.battle.addMove("-anim", pokemon, move.name, target);
} else {
this.battle.retargetLastMove(target);
}
}
if (target && move.multiaccuracy && hit > 1) {
let accuracy = move.accuracy;
const boostTable = [1, 4 / 3, 5 / 3, 2, 7 / 3, 8 / 3, 3];
if (accuracy !== true) {
if (!move.ignoreAccuracy) {
const boosts = this.battle.runEvent("ModifyBoost", pokemon, null, null, { ...pokemon.boosts });
const boost = this.battle.clampIntRange(boosts["accuracy"], -6, 6);
if (boost > 0) {
accuracy *= boostTable[boost];
} else {
accuracy /= boostTable[-boost];
}
}
if (!move.ignoreEvasion) {
const boosts = this.battle.runEvent("ModifyBoost", target, null, null, { ...target.boosts });
const boost = this.battle.clampIntRange(boosts["evasion"], -6, 6);
if (boost > 0) {
accuracy /= boostTable[boost];
} else if (boost < 0) {
accuracy *= boostTable[-boost];
}
}
}
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
if (!move.alwaysHit) {
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
if (accuracy !== true && !this.battle.randomChance(accuracy, 100))
break;
}
}
const moveData = move;
if (!moveData.flags)
moveData.flags = {};
[moveDamage, targetsCopy] = this.spreadMoveHit(targetsCopy, pokemon, move, moveData);
if (!moveDamage.some((val) => val !== false))
break;
nullDamage = false;
for (const [i, md] of moveDamage.entries()) {
damage[i] = md === true || !md ? 0 : md;
move.totalDamage += damage[i];
}
if (move.mindBlownRecoil) {
this.battle.damage(Math.round(pokemon.maxhp / 2), pokemon, pokemon, this.dex.conditions.get("Mind Blown"), true);
move.mindBlownRecoil = false;
}
this.battle.eachEvent("Update");
if (!pokemon.hp && targets.length === 1) {
hit++;
break;
}
}
if (hit === 1)
return damage.fill(false);
if (nullDamage)
damage.fill(false);
if (move.multihit && typeof move.smartTarget !== "boolean") {
this.battle.add("-hitcount", targets[0], hit - 1);
}
if (move.recoil && move.totalDamage) {
this.battle.damage(this.calcRecoilDamage(move.totalDamage, move), pokemon, pokemon, "recoil");
}
if (move.struggleRecoil) {
let recoilDamage;
if (this.dex.gen >= 5) {
recoilDamage = this.battle.clampIntRange(Math.round(pokemon.baseMaxhp / 4), 1);
} else {
recoilDamage = this.battle.trunc(pokemon.maxhp / 4);
}
this.battle.directDamage(recoilDamage, pokemon, pokemon, { id: "strugglerecoil" });
}
if (move.smartTarget)
targetsCopy = targets.slice(0);
for (const [i, target] of targetsCopy.entries()) {
if (target && pokemon !== target) {
target.gotAttacked(move, damage[i], pokemon);
}
}
if (move.ohko && !targets[0].hp)
this.battle.add("-ohko");
if (!damage.some((val) => !!val || val === 0))
return damage;
this.battle.eachEvent("Update");
this.afterMoveSecondaryEvent(targetsCopy.filter((val) => !!val), pokemon, move);
if (!move.negateSecondary && !(move.hasSheerForce && pokemon.hasAbility(["sheerforce", "aquilasblessing"])) && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
for (const [i, d] of damage.entries()) {
const curDamage = targets.length === 1 ? move.totalDamage : d;
if (typeof curDamage === "number" && targets[i].hp) {
if (targets[i].hp <= targets[i].maxhp / 2 && targets[i].hp + curDamage > targets[i].maxhp / 2) {
this.battle.runEvent("EmergencyExit", targets[i], pokemon);
}
}
}
}
return damage;
},
// For Spandan's custom move and Brandon's ability
getDamage(source, target, move, suppressMessages = false) {
if (typeof move === "string")
move = this.dex.getActiveMove(move);
if (typeof move === "number") {
const basePower2 = move;
move = new Dex.Move({
basePower: basePower2,
type: "???",
category: "Physical",
willCrit: false
});
move.hit = 0;
}
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
if (!target.runImmunity(move.type, !suppressMessages)) {
return false;
}
}
if (move.ohko)
return target.maxhp;
if (move.damageCallback)
return move.damageCallback.call(this.battle, source, target);
if (move.damage === "level") {
return source.level;
} else if (move.damage) {
return move.damage;
}
const category = this.battle.getCategory(move);
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 critMult;
let critRatio = this.battle.runEvent("ModifyCritRatio", source, target, move, move.critRatio || 0);
if (this.battle.gen <= 5) {
critRatio = this.battle.clampIntRange(critRatio, 0, 5);
critMult = [0, 16, 8, 4, 3, 2];
} else {
critRatio = this.battle.clampIntRange(critRatio, 0, 4);
if (this.battle.gen === 6) {
critMult = [0, 16, 8, 2, 1];
} else {
critMult = [0, 24, 8, 2, 1];
}
}
const moveHit = target.getMoveHitData(move);
moveHit.crit = move.willCrit || false;
if (move.willCrit === void 0) {
if (critRatio) {
moveHit.crit = this.battle.randomChance(1, critMult[critRatio]);
}
}
if (moveHit.crit) {
moveHit.crit = this.battle.runEvent("CriticalHit", target, null, move);
}
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
if (!basePower)
return 0;
basePower = this.battle.clampIntRange(basePower, 1);
const level = source.level;
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
const defender = move.overrideDefensivePokemon === "source" ? source : target;
const isPhysical = move.category === "Physical";
let attackStat = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
const defenseStat = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
const statTable = { atk: "Atk", def: "Def", spa: "SpA", spd: "SpD", spe: "Spe" };
let atkBoosts = attacker.boosts[attackStat];
let defBoosts = defender.boosts[defenseStat];
let ignoreNegativeOffensive = !!move.ignoreNegativeOffensive;
let ignorePositiveDefensive = !!move.ignorePositiveDefensive;
if (moveHit.crit) {
ignoreNegativeOffensive = true;
ignorePositiveDefensive = true;
}
const ignoreOffensive = !!(move.ignoreOffensive || ignoreNegativeOffensive && atkBoosts < 0);
const ignoreDefensive = !!(move.ignoreDefensive || ignorePositiveDefensive && defBoosts > 0);
if (ignoreOffensive) {
this.battle.debug("Negating (sp)atk boost/penalty.");
atkBoosts = 0;
}
if (ignoreDefensive) {
this.battle.debug("Negating (sp)def boost/penalty.");
defBoosts = 0;
}
let attack = attacker.calculateStat(attackStat, atkBoosts);
let defense = defender.calculateStat(defenseStat, defBoosts);
attackStat = category === "Physical" ? "atk" : "spa";
attack = this.battle.runEvent("Modify" + statTable[attackStat], source, target, move, attack);
defense = this.battle.runEvent("Modify" + statTable[defenseStat], target, source, move, defense);
if (this.battle.gen <= 4 && ["explosion", "selfdestruct"].includes(move.id) && defenseStat === "def") {
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
}
const tr = this.battle.trunc;
const baseDamage = tr(tr(tr(tr(2 * level / 5 + 2) * basePower * attack) / defense) / 50);
return this.modifyDamage(baseDamage, source, target, move, suppressMessages);
},
runMoveEffects(damage, targets, pokemon, move, moveData, isSecondary, isSelf) {
let didAnything = damage.reduce(this.combineResults);
for (const [i, target] of targets.entries()) {
if (target === false)
continue;
let hitResult;
let didSomething = void 0;
if (target) {
if (moveData.boosts && !target.fainted) {
hitResult = this.battle.boost(moveData.boosts, target, pokemon, move, isSecondary, isSelf);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.heal && !target.fainted) {
if (target.hp >= target.maxhp) {
this.battle.add("-fail", target, "heal");
this.battle.attrLastMove("[still]");
damage[i] = this.combineResults(damage[i], false);
didAnything = this.combineResults(didAnything, null);
continue;
}
const amount = target.baseMaxhp * moveData.heal[0] / moveData.heal[1];
const d = target.heal((this.battle.gen < 5 ? Math.floor : Math.round)(amount));
if (!d && d !== 0) {
this.battle.add("-fail", pokemon);
this.battle.attrLastMove("[still]");
this.battle.debug("heal interrupted");
damage[i] = this.combineResults(damage[i], false);
didAnything = this.combineResults(didAnything, null);
continue;
}
this.battle.add("-heal", target, target.getHealth);
didSomething = true;
}
if (moveData.status) {
hitResult = target.trySetStatus(moveData.status, pokemon, moveData.ability ? moveData.ability : move);
if (!hitResult && move.status) {
damage[i] = this.combineResults(damage[i], false);
didAnything = this.combineResults(didAnything, null);
continue;
}
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.forceStatus) {
hitResult = target.setStatus(moveData.forceStatus, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.volatileStatus) {
hitResult = target.addVolatile(moveData.volatileStatus, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.sideCondition) {
hitResult = target.side.addSideCondition(moveData.sideCondition, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.slotCondition) {
hitResult = target.side.addSlotCondition(target, moveData.slotCondition, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.weather) {
hitResult = this.battle.field.setWeather(moveData.weather, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.terrain) {
hitResult = this.battle.field.setTerrain(moveData.terrain, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.pseudoWeather) {
hitResult = this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (moveData.forceSwitch && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
hitResult = !!this.battle.canSwitch(target.side);
didSomething = this.combineResults(didSomething, hitResult);
}
if (move.target === "all" && !isSelf) {
if (moveData.onHitField) {
hitResult = this.battle.singleEvent("HitField", moveData, {}, target, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
} else if ((move.target === "foeSide" || move.target === "allySide") && !isSelf) {
if (moveData.onHitSide) {
hitResult = this.battle.singleEvent("HitSide", moveData, {}, target.side, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
} else {
if (moveData.onHit) {
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
didSomething = this.combineResults(didSomething, hitResult);
}
if (!isSelf && !isSecondary) {
this.battle.runEvent("Hit", target, pokemon, move);
}
}
}
if (moveData.selfdestruct === "ifHit" && damage[i] !== false) {
this.battle.faint(pokemon, pokemon, move);
}
if (moveData.selfSwitch && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
if (this.battle.canSwitch(pokemon.side)) {
didSomething = true;
} else {
didSomething = this.combineResults(didSomething, false);
}
}
if (didSomething === void 0)
didSomething = true;
damage[i] = this.combineResults(damage[i], didSomething === null ? false : didSomething);
didAnything = this.combineResults(didAnything, didSomething);
}
if (!didAnything && didAnything !== 0 && !moveData.self && !moveData.selfdestruct) {
if (!isSelf && !isSecondary) {
if (didAnything === false) {
this.battle.add("-fail", pokemon);
this.battle.attrLastMove("[still]");
}
}
this.battle.debug("move failed because it did nothing");
} else if (move.selfSwitch && pokemon.hp && !this.battle.getAllActive().some((x) => x.hasAbility("skilldrain"))) {
pokemon.switchFlag = move.id;
}
return damage;
}
},
pokemon: {
isGrounded(negateImmunity) {
if ("gravity" in this.battle.field.pseudoWeather)
return true;
if ("ingrain" in this.volatiles && this.battle.gen >= 4)
return true;
if ("smackdown" in this.volatiles)
return true;
const item = this.ignoringItem() ? "" : this.item;
if (item === "ironball")
return true;
if (!negateImmunity && this.hasType("Flying") && !("roost" in this.volatiles))
return false;
if (this.hasAbility("levitate") && !this.battle.suppressingAbility())
return null;
if ("magnetrise" in this.volatiles)
return false;
if ("telekinesis" in this.volatiles)
return false;
return item !== "airballoon";
},
setStatus(status, source, sourceEffect, ignoreImmunities) {
if (!this.hp)
return false;
status = this.battle.dex.conditions.get(status);
if (this.battle.event) {
if (!source)
source = this.battle.event.source;
if (!sourceEffect)
sourceEffect = this.battle.effect;
}
if (!source)
source = this;
if (this.status === status.id) {
if (sourceEffect?.status === this.status) {
this.battle.add("-fail", this, this.status);
} else if (sourceEffect?.status) {
this.battle.add("-fail", source);
this.battle.attrLastMove("[still]");
}
return false;
}
if (!ignoreImmunities && status.id && !((source?.hasAbility("corrosion") || source?.hasAbility("hackedcorrosion") || sourceEffect?.id === "cradilychaos") && ["tox", "psn"].includes(status.id))) {
if (!this.runStatusImmunity(status.id === "tox" ? "psn" : status.id)) {
this.battle.debug("immune to status");
if (sourceEffect?.status) {
this.battle.add("-immune", this);
}
return false;
}
}
const prevStatus = this.status;
const prevStatusState = this.statusState;
if (status.id) {
const result = this.battle.runEvent("SetStatus", this, source, sourceEffect, status);
if (!result) {
this.battle.debug("set status [" + status.id + "] interrupted");
return result;
}
}
this.status = status.id;
this.statusState = { id: status.id, target: this };
if (source)
this.statusState.source = source;
if (status.duration)
this.statusState.duration = status.duration;
if (status.durationCallback) {
this.statusState.duration = status.durationCallback.call(this.battle, this, source, sourceEffect);
}
if (status.id && !this.battle.singleEvent("Start", status, this.statusState, this, source, sourceEffect)) {
this.battle.debug("status start [" + status.id + "] interrupted");
this.status = prevStatus;
this.statusState = prevStatusState;
return false;
}
if (status.id && !this.battle.runEvent("AfterSetStatus", this, source, sourceEffect, status)) {
return false;
}
return true;
}
},
// Modded to add a property to work with Struchni's move
nextTurn() {
this.turn++;
this.lastSuccessfulMoveThisTurn = null;
const trappedBySide = [];
const stalenessBySide = [];
for (const side of this.sides) {
let sideTrapped = true;
let sideStaleness;
for (const pokemon of side.active) {
if (!pokemon)
continue;
pokemon.moveThisTurn = "";
pokemon.newlySwitched = false;
pokemon.moveLastTurnResult = pokemon.moveThisTurnResult;
pokemon.moveThisTurnResult = void 0;
if (this.turn !== 1) {
pokemon.usedItemThisTurn = false;
pokemon.m.statsRaisedLastTurn = !!pokemon.statsRaisedThisTurn;
pokemon.statsRaisedThisTurn = false;
pokemon.statsLoweredThisTurn = false;
pokemon.hurtThisTurn = null;
}
pokemon.maybeDisabled = false;
for (const moveSlot of pokemon.moveSlots) {
moveSlot.disabled = false;
moveSlot.disabledSource = "";
}
this.runEvent("DisableMove", pokemon);
if (!pokemon.ateBerry)
pokemon.disableMove("belch");
if (!pokemon.getItem().isBerry)
pokemon.disableMove("stuffcheeks");
if (pokemon.getLastAttackedBy() && this.gen >= 7)
pokemon.knownType = true;
for (let i = pokemon.attackedBy.length - 1; i >= 0; i--) {
const attack = pokemon.attackedBy[i];
if (attack.source.isActive) {
attack.thisTurn = false;
} else {
pokemon.attackedBy.splice(pokemon.attackedBy.indexOf(attack), 1);
}
}
if (this.gen >= 7) {
const seenPokemon = pokemon.illusion || pokemon;
const realTypeString = seenPokemon.getTypes(true).join("/");
if (realTypeString !== seenPokemon.apparentType) {
this.add("-start", pokemon, "typechange", realTypeString, "[silent]");
seenPokemon.apparentType = realTypeString;
if (pokemon.addedType) {
this.add("-start", pokemon, "typeadd", pokemon.addedType, "[silent]");
}
}
}
pokemon.trapped = pokemon.maybeTrapped = false;
this.runEvent("TrapPokemon", pokemon);
if (!pokemon.knownType || this.dex.getImmunity("trapped", pokemon)) {
this.runEvent("MaybeTrapPokemon", pokemon);
}
if (this.gen > 2) {
for (const source of pokemon.foes()) {
const species = (source.illusion || source).species;
if (!species.abilities)
continue;
for (const abilitySlot in species.abilities) {
const abilityName = species.abilities[abilitySlot];
if (abilityName === source.ability) {
continue;
}
const ruleTable = this.ruleTable;
if ((ruleTable.has("+hackmons") || !ruleTable.has("obtainableabilities")) && !this.format.team) {
continue;
} else if (abilitySlot === "H" && species.unreleasedHidden) {
continue;
}
const ability = this.dex.abilities.get(abilityName);
if (ruleTable.has("-ability:" + ability.id))
continue;
if (pokemon.knownType && !this.dex.getImmunity("trapped", pokemon))
continue;
this.singleEvent("FoeMaybeTrapPokemon", ability, {}, pokemon, source);
}
}
}
if (pokemon.fainted)
continue;
sideTrapped = sideTrapped && pokemon.trapped;
const staleness = pokemon.volatileStaleness || pokemon.staleness;
if (staleness)
sideStaleness = sideStaleness === "external" ? sideStaleness : staleness;
pokemon.activeTurns++;
}
trappedBySide.push(sideTrapped);
stalenessBySide.push(sideStaleness);
side.faintedLastTurn = side.faintedThisTurn;
side.faintedThisTurn = null;
}
if (this.maybeTriggerEndlessBattleClause(trappedBySide, stalenessBySide))
return;
if (this.gameType === "triples" && !this.sides.filter((side) => side.pokemonLeft > 1).length) {
const actives = this.getAllActive();
if (actives.length > 1 && !actives[0].isAdjacent(actives[1])) {
this.swapPosition(actives[0], 1, "[silent]");
this.swapPosition(actives[1], 1, "[silent]");
this.add("-center");
}
}
this.add("turn", this.turn);
this.makeRequest("move");
}
};
//# sourceMappingURL=scripts.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/ssb/scripts.ts"],
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tgen: 8,\r\n\tinherit: 'gen8',\r\n\tactions: {\r\n\t\t// 1 mega per pokemon\r\n\t\trunMegaEvo(pokemon) {\r\n\t\t\tif (pokemon.name === 'Struchni' && pokemon.species.name === 'Aggron') pokemon.canMegaEvo = 'Aggron-Mega';\r\n\t\t\tif (pokemon.name === 'Raj.Shoot' && pokemon.species.name === 'Charizard') pokemon.canMegaEvo = 'Charizard-Mega-X';\r\n\t\t\tconst speciesid = pokemon.canMegaEvo || pokemon.canUltraBurst;\r\n\t\t\tif (!speciesid) return false;\r\n\r\n\t\t\tpokemon.formeChange(speciesid, pokemon.getItem(), true);\r\n\t\t\tif (pokemon.canMegaEvo) {\r\n\t\t\t\tpokemon.canMegaEvo = null;\r\n\t\t\t} else {\r\n\t\t\t\tpokemon.canUltraBurst = null;\r\n\t\t\t}\r\n\r\n\t\t\tthis.battle.runEvent('AfterMega', pokemon);\r\n\r\n\t\t\tif (['Kaiju Bunny', 'Overneat', 'EpicNikolai'].includes(pokemon.name) && !pokemon.illusion) {\r\n\t\t\t\tthis.battle.add('-start', pokemon, 'typechange', pokemon.types.join('/'));\r\n\t\t\t}\r\n\r\n\t\t\tthis.battle.add('-ability', pokemon, `${pokemon.getAbility().name}`);\r\n\r\n\t\t\treturn true;\r\n\t\t},\r\n\r\n\t\t// Modded for Mega Rayquaza\r\n\t\tcanMegaEvo(pokemon) {\r\n\t\t\tconst species = pokemon.baseSpecies;\r\n\t\t\tconst altForme = species.otherFormes && this.dex.species.get(species.otherFormes[0]);\r\n\t\t\tconst item = pokemon.getItem();\r\n\t\t\t// Mega Rayquaza\r\n\t\t\tif (altForme?.isMega && altForme?.requiredMove &&\r\n\t\t\t\tpokemon.baseMoves.includes(this.battle.toID(altForme.requiredMove)) && !item.zMove) {\r\n\t\t\t\treturn altForme.name;\r\n\t\t\t}\r\n\t\t\t// a hacked-in Megazard X can mega evolve into Megazard Y, but not into Megazard X\r\n\t\t\tif (item.megaEvolves === species.baseSpecies && item.megaStone !== species.name) {\r\n\t\t\t\treturn item.megaStone;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t},\r\n\r\n\t\t// 1 Z per pokemon\r\n\t\tcanZMove(pokemon) {\r\n\t\t\tif (pokemon.m.zMoveUsed ||\r\n\t\t\t\t(pokemon.transformed &&\r\n\t\t\t\t\t(pokemon.species.isMega || pokemon.species.isPrimal || pokemon.species.forme === \"Ultra\"))\r\n\t\t\t) return;\r\n\t\t\tconst item = pokemon.getItem();\r\n\t\t\tif (!item.zMove) return;\r\n\t\t\tif (item.itemUser && !item.itemUser.includes(pokemon.species.name)) return;\r\n\t\t\tlet atLeastOne = false;\r\n\t\t\tlet mustStruggle = true;\r\n\t\t\tconst zMoves: ZMoveOptions = [];\r\n\t\t\tfor (const moveSlot of pokemon.moveSlots) {\r\n\t\t\t\tif (moveSlot.pp <= 0) {\r\n\t\t\t\t\tzMoves.push(null);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (!moveSlot.disabled) {\r\n\t\t\t\t\tmustStruggle = false;\r\n\t\t\t\t}\r\n\t\t\t\tconst move = this.dex.moves.get(moveSlot.move);\r\n\t\t\t\tlet zMoveName = this.getZMove(move, pokemon, true) || '';\r\n\t\t\t\tif (zMoveName) {\r\n\t\t\t\t\tconst zMove = this.dex.moves.get(zMoveName);\r\n\t\t\t\t\tif (!zMove.isZ && zMove.category === 'Status') zMoveName = \"Z-\" + zMoveName;\r\n\t\t\t\t\tzMoves.push({move: zMoveName, target: zMove.target});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tzMoves.push(null);\r\n\t\t\t\t}\r\n\t\t\t\tif (zMoveName) atLeastOne = true;\r\n\t\t\t}\r\n\t\t\tif (atLeastOne && !mustStruggle) return zMoves;\r\n\t\t},\r\n\r\n\t\tgetZMove(move, pokemon, skipChecks) {\r\n\t\t\tconst item = pokemon.getItem();\r\n\t\t\tif (!skipChecks) {\r\n\t\t\t\tif (pokemon.m.zMoveUsed) return;\r\n\t\t\t\tif (!item.zMove) return;\r\n\t\t\t\tif (item.itemUser && !item.itemUser.includes(pokemon.species.name)) return;\r\n\t\t\t\tconst moveData = pokemon.getMoveData(move);\r\n\t\t\t\t// Draining the PP of the base move prevents the corresponding Z-move from being used.\r\n\t\t\t\tif (!moveData?.pp) return;\r\n\t\t\t}\r\n\r\n\t\t\tif (move.name === item.zMoveFrom) {\r\n\t\t\t\treturn item.zMove as string;\r\n\t\t\t} else if (item.zMove === true && move.type === item.zMoveType) {\r\n\t\t\t\tif (move.category === \"Status\") {\r\n\t\t\t\t\treturn move.name;\r\n\t\t\t\t} else if (move.zMove?.basePower) {\r\n\t\t\t\t\treturn this.Z_MOVES[move.type];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\trunMove(moveOrMoveName, pokemon, targetLoc, sourceEffect, zMove, externalMove, maxMove, originalTarget) {\r\n\t\t\tpokemon.activeMoveActions++;\r\n\t\t\tlet target = this.battle.getTarget(pokemon, maxMove || zMove || moveOrMoveName, targetLoc, originalTarget);\r\n\t\t\tlet baseMove = this.dex.getActiveMove(moveOrMoveName);\r\n\t\t\tconst pranksterBoosted = baseMove.pranksterBoosted;\r\n\t\t\tif (baseMove.id !== 'struggle' && !zMove && !maxMove && !externalMove) {\r\n\t\t\t\tconst changedMove = this.battle.runEvent('OverrideAction', pokemon, target, baseMove);\r\n\t\t\t\tif (changedMove && changedMove !== true) {\r\n\t\t\t\t\tbaseMove = this.dex.getActiveMove(changedMove);\r\n\t\t\t\t\tif (pranksterBoosted) baseMove.pranksterBoosted = pranksterBoosted;\r\n\t\t\t\t\ttarget = this.battle.getRandomTarget(pokemon, baseMove);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlet move = baseMove;\r\n\t\t\tif (zMove) {\r\n\t\t\t\tmove = this.getActiveZMove(baLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,KAAK;AAAA,EACL,SAAS;AAAA,EACT,SAAS;AAAA;AAAA,IAER,WAAW,SAAS;AACnB,UAAI,QAAQ,SAAS,cAAc,QAAQ,QAAQ,SAAS;AAAU,gBAAQ,aAAa;AAC3F,UAAI,QAAQ,SAAS,eAAe,QAAQ,QAAQ,SAAS;AAAa,gBAAQ,aAAa;AAC/F,YAAM,YAAY,QAAQ,cAAc,QAAQ;AAChD,UAAI,CAAC;AAAW,eAAO;AAEvB,cAAQ,YAAY,WAAW,QAAQ,QAAQ,GAAG,IAA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