Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pokemonvortex #112

Merged
merged 6 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions data/mods/gen9ssb/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,18 @@ export const Conditions: {[k: string]: ModdedConditionData & {innateName?: strin
this.add(`c:|${getName('phoopes')}|Jynx! Knock on wood`);
},
},
pokemonvortex: {
noCopy: true,
onStart() {
this.add(`c:|${getName('pokemonvortex')}|i just like the bowtie`);
},
onSwitchOut() {
this.add(`c:|${getName('pokemonvortex')}|ok`);
},
onFaint() {
this.add(`c:|${getName('pokemonvortex')}|人不可貌相,海水不可斗量`);
},
},
ptoad: {
noCopy: true,
onStart() {
Expand Down
60 changes: 60 additions & 0 deletions data/mods/gen9ssb/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,66 @@ export const Moves: {[k: string]: ModdedMoveData} = {
type: "Ice",
},

// pokemonvortex
roulette: {
accuracy: true,
basePower: 0,
category: "Status",
name: "Roulette",
desc: "A random move is selected for use, and then the user's other three moves are replaced with random moves. Aura Wheel, Dark Void, Explosion, Final Gambit, Healing Wish, Hyperspace Fury, Lunar Dance, Memento, Misty Explosion, Revival Blessing, and Self-Destruct cannot be selected.",
shortDesc: "Replace other the user's 3 moves with random moves.",
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
pp: 5,
priority: 0,
flags: {protect: 1, mirror: 1},
onTryMove() {
this.attrLastMove('[still]');
},
onPrepareHit(target, source) {
this.add('-anim', source, 'Nasty Plot', source);
this.add('-anim', source, 'Metronome', target);
this.add('-anim', source, 'Explosion', target);
},
onHit(target, source, m) {
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
const bannedList = ['Aura Wheel', 'Dark Void', 'Explosion', 'Final Gambit', 'Healing Wish', 'Hyperspace Fury',
'Lunar Dance', 'Memento', 'Misty Explosion', 'Revival Blessing', 'Self-Destruct'];
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
const moves = this.dex.moves.all().filter(move => (
(!source.moves.includes(move.id)) &&
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
(!move.isNonstandard || move.isNonstandard === 'Unobtainable')
));
for (let i = 0; i < 4; i++) {
let randomMove;
if (moves.length) {
moves.sort((a, b) => a.num - b.num);
randomMove = this.sample(moves);
}
if (randomMove) {
if (bannedList.includes(randomMove.id)) {
i -= 1;
continue;
}
if (i === 3) {
this.actions.useMove(randomMove, source);
break;
}
bannedList.push(randomMove.id);
const sketchedMove = {
move: randomMove.name,
id: randomMove.id,
pp: randomMove.pp,
maxpp: randomMove.pp,
target: randomMove.target,
disabled: false,
used: false,
};
source.moveSlots[i] = sketchedMove;
source.baseMoveSlots[i] = sketchedMove;
}
}
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
},
target: "normal",
type: "Normal",
},

// ptoad
pleek: {
accuracy: true,
Expand Down
7 changes: 7 additions & 0 deletions data/mods/gen9ssb/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ export const Pokedex: {[k: string]: ModdedSpeciesData} = {
abilities: {0: "I Did It Again"},
},

// pokemonvortex
pokestarsmeargle: {
inherit: true,
baseStats: {hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100},
abilities: {0: "Prankster"},
},

// PYRO
kingambit: {
inherit: true,
Expand Down
6 changes: 6 additions & 0 deletions data/mods/gen9ssb/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ export const ssbSets: SSBSets = {
signatureMove: 'Gen 1 Blizzard',
evs: {hp: 4, spa: 252, spe: 252}, nature: 'Timid', teraType: 'Ice',
},
pokemonvortex: {
species: 'Pokestar Smeargle', ability: 'Prankster', item: 'Focus Sash', gender: 'N',
moves: ['Spore', 'Extreme Evoboost', 'Substitute'],
signatureMove: 'Roulette',
evs: {hp: 252, def: 4, spe: 252}, nature: 'Timid', teraType: 'Ghost', shiny: false,
KrisXV marked this conversation as resolved.
Show resolved Hide resolved
},
ptoad: {
species: 'Politoed', ability: 'Drizzle', item: 'Leftovers', gender: 'M',
moves: ['Jet Punch', 'Ice Punch', 'Earthquake'],
Expand Down
Loading