Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan0132 committed Aug 18, 2024
2 parents ce05fc5 + 44b0f7d commit f4deb60
Show file tree
Hide file tree
Showing 84 changed files with 3,036 additions and 108,497 deletions.
623 changes: 392 additions & 231 deletions config/formats.ts

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions data/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ export const Abilities: import('../sim/dex-abilities').AbilityDataTable = {
onStart(pokemon) {
for (const target of pokemon.foes()) {
if (target.item) {
this.add('-item', target, target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon, '[identify]');
this.add('-item', target, target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon);
}
}
},
Expand Down Expand Up @@ -2403,7 +2403,7 @@ export const Abilities: import('../sim/dex-abilities').AbilityDataTable = {
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
newMove.pranksterBoosted = false;
this.actions.useMove(newMove, target, source);
this.actions.useMove(newMove, target, {target: source});
return null;
},
onAllyTryHitSide(target, source, move) {
Expand All @@ -2413,7 +2413,7 @@ export const Abilities: import('../sim/dex-abilities').AbilityDataTable = {
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
newMove.pranksterBoosted = false;
this.actions.useMove(newMove, this.effectState.target, source);
this.actions.useMove(newMove, this.effectState.target, {target: source});
return null;
},
condition: {
Expand Down Expand Up @@ -5621,7 +5621,7 @@ export const Abilities: import('../sim/dex-abilities').AbilityDataTable = {
}
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
this.actions.useMove(newMove, target, source);
this.actions.useMove(newMove, target, {target: source});
return null;
},
onAllyTryHitSide(target, source, move) {
Expand All @@ -5632,7 +5632,7 @@ export const Abilities: import('../sim/dex-abilities').AbilityDataTable = {
}
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
this.actions.useMove(newMove, this.effectState.target, source);
this.actions.useMove(newMove, this.effectState.target, {target: source});
return null;
},
condition: {
Expand Down
4 changes: 2 additions & 2 deletions data/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const Aliases: import('../sim/dex').AliasesTable = {
gen6ag: "[Gen 6] Anything Goes",
crossevo: "[Gen 9] Cross Evolution",
mayhem: "[Gen 9] Random Battle Mayhem",
omotm: "[Gen 9] Frantic Fusions",
lcotm: "[Gen 9] Category Swap",
omotm: "[Gen 9] Pokemoves",
lcotm: "[Gen 9] Flipped",

// mega evos
fabio: "Ampharos-Mega",
Expand Down
16 changes: 8 additions & 8 deletions data/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "NFE",
},
venusaur: {
tier: "NU",
tier: "PU",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down Expand Up @@ -51,7 +51,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "NFE",
},
blastoise: {
tier: "RU",
tier: "RUBL",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down Expand Up @@ -327,7 +327,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "NFE",
},
ninetales: {
tier: "NU",
tier: "PU",
doublesTier: "DUU",
natDexTier: "RU",
},
Expand Down Expand Up @@ -683,7 +683,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "LC",
},
cloyster: {
tier: "NU",
tier: "NUBL",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down Expand Up @@ -2697,7 +2697,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "LC",
},
lucario: {
tier: "NU",
tier: "NUBL",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down Expand Up @@ -2861,7 +2861,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
darkrai: {
tier: "OU",
doublesTier: "DUber",
natDexTier: "OU",
natDexTier: "Uber",
},
shaymin: {
tier: "ZU",
Expand Down Expand Up @@ -4468,7 +4468,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
tier: "Illegal",
},
bruxish: {
tier: "ZU",
tier: "ZUBL",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down Expand Up @@ -4541,7 +4541,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
buzzwole: {
isNonstandard: "Past",
tier: "Illegal",
natDexTier: "UU",
natDexTier: "RUBL",
},
pheromosa: {
isNonstandard: "Past",
Expand Down
2 changes: 1 addition & 1 deletion data/mods/gen1/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
tier: "OU",
},
gastly: {
tier: "PU",
tier: "PUBL",
},
haunter: {
tier: "UU",
Expand Down
15 changes: 10 additions & 5 deletions data/mods/gen1/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export const Scripts: ModdedBattleScriptsData = {
// This function is the main one when running a move.
// It deals with the beforeMove event.
// It also deals with how PP reduction works on gen 1.
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
runMove(moveOrMoveName, pokemon, targetLoc, options) {
let sourceEffect = options?.sourceEffect;
const target = this.battle.getTarget(pokemon, moveOrMoveName, targetLoc);
const move = this.battle.dex.getActiveMove(moveOrMoveName);
if (target?.subFainted) target.subFainted = null;
Expand Down Expand Up @@ -162,7 +163,7 @@ export const Scripts: ModdedBattleScriptsData = {
this.battle.hint("In Gen 1, if a player is forced to use a move with 0 PP, the move will underflow to have 63 PP.");
}
}
this.useMove(move, pokemon, target, sourceEffect);
this.useMove(move, pokemon, {target, sourceEffect});
// Restore PP if the move is the first turn of a charging move. Save the move from which PP should be deducted if the move succeeds.
if (pokemon.volatiles['twoturnmove']) {
pokemon.deductPP(move, -1, target);
Expand All @@ -171,7 +172,9 @@ export const Scripts: ModdedBattleScriptsData = {
},
// This function deals with AfterMoveSelf events.
// This leads with partial trapping moves shenanigans after the move has been used.
useMove(moveOrMoveName, pokemon, target, sourceEffect) {
useMove(moveOrMoveName, pokemon, options) {
let sourceEffect = options?.sourceEffect;
let target = options?.target;
if (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
let move = this.battle.dex.getActiveMove(baseMove);
Expand All @@ -194,7 +197,7 @@ export const Scripts: ModdedBattleScriptsData = {
// The charging turn of a two-turn move does not update pokemon.lastMove
if (!TWO_TURN_MOVES.includes(move.id) || pokemon.volatiles['twoturnmove']) pokemon.lastMove = move;

const moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, {target, sourceEffect});

if (move.id !== 'metronome') {
if (move.id !== 'mirrormove' ||
Expand Down Expand Up @@ -240,7 +243,9 @@ export const Scripts: ModdedBattleScriptsData = {
},
// This is the function that actually uses the move, running ModifyMove events.
// It uses the move and then deals with the effects after the move.
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect) {
useMoveInner(moveOrMoveName, pokemon, options) {
let sourceEffect = options?.sourceEffect;
let target = options?.target;
if (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
let move = this.battle.dex.getActiveMove(baseMove);
Expand Down
14 changes: 14 additions & 0 deletions data/mods/gen1rbycap/formats-data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormatsDataTable = {
corupcake: {
tier: "OU",
},
gargoyle: {
tier: "OU",
},
phantom: {
tier: "OU",
},
mandrelec: {
tier: "OU",
},
};
156 changes: 156 additions & 0 deletions data/mods/gen1rbycap/learnsets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTable = {
corupcake: {
learnset: {
ember: ["1L1"],
poisongas: ["1L1"],
smokescreen: ["1L16"],
confuseray: ["1L34"],
sugarrush: ["1L36"],
lick: ["1L40"],
firespin: ["1L42"],
screech: ["1L43"],
haze: ["1L47"],
thrash: ["1L58"],
bodyslam: ["1M"],
doubleedge: ["1M"],
hyperbeam: ["1M"],
rage: ["1M"],
megadrain: ["1M"],
thunderbolt: ["1M"],
dragonrage: ["1M"],
thunder: ["1M"],
reflect: ["1M"],
metronome: ["1M"],
selfdestruct: ["1M"],
fireblast: ["1M"],
rest: ["1M"],
dreameater: ["1M"],
explosion: ["1M"],
triattack: ["1M"],
substitute: ["1M"],
toxic: ["1M"],
mimic: ["1M"],
bide: ["1M"],
swift: ["1M"],
payday: ["1L1"], // add event data later
roar: ["1L1"], // add event data later
flamethrower: ["2T"],
headbutt: ["2M"],
bite: ["2E"],
amnesia: ["2E"],
},
encounters: [
{generation: 1, level: 5},
],
},
gargoyle: {
learnset: {
rage: ["1L1", "1M"],
lowkick: ["1L1"],
karatechop: ["1L32"],
supersonic: ["1L42"],
marblefist: ["1L44"],
razorwind: ["1L57"],
rockslide: ["1L67"],
submission: ["1L70", "1M"],
megapunch: ["1M"],
whirlwind: ["1M"],
megakick: ["1M"],
toxic: ["1M"],
bodyslam: ["1M"],
takedown: ["1M"],
doubleedge: ["1M"],
dragonrage: ["1M"],
earthquake: ["1M"],
mimic: ["1M"],
doubleteam: ["1M"],
bide: ["1M"],
metronome: ["1M"],
fireblast: ["1M"],
skyattack: ["1M"],
rest: ["1M"],
substitute: ["1M"],
fly: ["1M"],
strength: ["1M"],
firepunch: ["2M"],
thunderpunch: ["2M"],
icepunch: ["2M"],
rollingkick: ["2E"],
agility: ["2E"],
thrash: ["2L1"],
meditate: ["2E"],
headbutt: ["2M"],
},
encounters: [
{generation: 1, level: 5},
],
},
phantom: {
learnset: {
nightshade: ["1L1"],
growl: ["1L1"],
leer: ["1L1"],
quickattack: ["1L1"],
firespin: ["1L50"],
flamethrower: ["1L55"],
toxic: ["1M"],
bodyslam: ["1M"],
takedown: ["1M"],
doubleedge: ["1M"],
hyperbeam: ["1M"],
payday: ["1M"],
rage: ["1M"],
dig: ["1M"],
teleport: ["1M"],
mimic: ["1M"],
doubleteam: ["1M"],
bide: ["1M"],
fireblast: ["1M"],
swift: ["1M"],
dreameater: ["1M"],
rest: ["1M"],
substitute: ["1M"],
},
encounters: [
{generation: 1, level: 5},
],
},
mandrelec: {
learnset: {
thundershock: ["1L1"],
tailwhip: ["1L1"],
bite: ["1L6"],
scratch: ["1L17"],
thunderwave: ["1L24"],
focusenergy: ["1L30"],
lightscreen: ["1L36"],
thunder: ["1L42", "1M"],
toxic: ["1M"],
bodyslam: ["1M"],
takedown: ["1M"],
doubleedge: ["1M"],
hyperbeam: ["1M"],
submission: ["1M"],
counter: ["1M"],
seismictoss: ["1M"],
thunderbolt: ["1M"],
dig: ["1M"],
mimic: ["1M"],
doubleteam: ["1M"],
bide: ["1M"],
skullbash: ["1M"],
rest: ["1M"],
substitute: ["1M"],
flash: ["1M"],
headbutt: ["2M"],
bubblebeam: ["2E"],
aurorabeam: ["2E"],
haze: ["2E"],
disable: ["2E"],
splash: ["2E"],
},
encounters: [
{generation: 1, level: 5},
],
},
};
Loading

0 comments on commit f4deb60

Please sign in to comment.