Skip to content

Commit

Permalink
DPP sleep, Gen 5-8TS, small gay changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed Sep 14, 2024
1 parent ce28066 commit 32c043b
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 56 deletions.
2 changes: 1 addition & 1 deletion config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const Formats: import('../sim/dex-formats').FormatList = [
name: "[Gen 4] SU",
mod: 'gen4',
searchShow: true,
ruleset: ['[Gen 4] ZU'],
ruleset: ['[Gen 4] ZU', 'Sleep Moves Clause', '!Sleep Clause Mod'],
banlist: ['ZU', 'SUBL'],
},
{
Expand Down
74 changes: 37 additions & 37 deletions data/mods/gen8/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,43 @@ export const Rulesets: import('../../../sim/dex-formats').ModdedFormatDataTable
this.makeRequest('teampreview');
},
},
tiershiftmod: {
inherit: true,
desc: `Pokémon below OU get their stats, excluding HP, boosted. UU/RUBL get +10, RU/NUBL get +20, NU/PUBL get +30, and PU or lower get +40.`,
onModifySpecies(species, target, source, effect) {
if (!species.baseStats) return;
const boosts: {[tier: string]: number} = {
uu: 10,
rubl: 10,
ru: 20,
nubl: 20,
nu: 30,
publ: 30,
pu: 40,
zubl: 40,
zu: 40,
nfe: 40,
lc: 40,
};
let tier: string = this.toID(species.tier);
if (!(tier in boosts)) return;
// Non-Pokemon bans in lower tiers
if (target) {
if (target.set.item === 'lightclay') return;
if (['drizzle', 'drought', 'slushrush'].includes(target.set.ability) && boosts[tier] > 20) tier = 'nubl';
}
const pokemon = this.dex.deepClone(species);
pokemon.bst = pokemon.baseStats['hp'];
const boost = boosts[tier];
let statName: StatID;
for (statName in pokemon.baseStats as StatsTable) {
if (statName === 'hp') continue;
pokemon.baseStats[statName] = this.clampIntRange(pokemon.baseStats[statName] + boost, 1, 255);
pokemon.bst += pokemon.baseStats[statName];
}
return pokemon;
},
},
// tiershiftmod: {
// inherit: true,
// desc: `Pokémon below OU get their stats, excluding HP, boosted. UU/RUBL get +10, RU/NUBL get +20, NU/PUBL get +30, and PU or lower get +40.`,
// onModifySpecies(species, target, source, effect) {
// if (!species.baseStats) return;
// const boosts: {[tier: string]: number} = {
// uu: 10,
// rubl: 10,
// ru: 20,
// nubl: 20,
// nu: 30,
// publ: 30,
// pu: 40,
// zubl: 40,
// zu: 40,
// nfe: 40,
// lc: 40,
// };
// let tier: string = this.toID(species.tier);
// if (!(tier in boosts)) return;
// // Non-Pokemon bans in lower tiers
// if (target) {
// if (target.set.item === 'lightclay') return;
// if (['drizzle', 'drought', 'slushrush'].includes(target.set.ability) && boosts[tier] > 20) tier = 'nubl';
// }
// const pokemon = this.dex.deepClone(species);
// pokemon.bst = pokemon.baseStats['hp'];
// const boost = boosts[tier];
// let statName: StatID;
// for (statName in pokemon.baseStats as StatsTable) {
// if (statName === 'hp') continue;
// pokemon.baseStats[statName] = this.clampIntRange(pokemon.baseStats[statName] + boost, 1, 255);
// pokemon.bst += pokemon.baseStats[statName];
// }
// return pokemon;
// },
// },
bonustypemod: {
inherit: true,
desc: `Pokémon can be nicknamed the name of a type to have that type added onto their current ones.`,
Expand Down
8 changes: 4 additions & 4 deletions data/mods/gen9vgcgay/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
},
"shayminsky": {
"isNonstandard": null,
"tier": "OU"
"tier": "Uber"
},
"arceus": {
"isNonstandard": null,
Expand Down Expand Up @@ -3294,7 +3294,7 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
},
"kyuremwhite": {
"isNonstandard": null,
"tier": "OU"
"tier": "Uber"
},
"keldeo": {
"isNonstandard": null,
Expand Down Expand Up @@ -3681,8 +3681,8 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
"tier": "Uber"
},
"zygardecomplete": {
"isNonstandard": "Past",
"tier": "Illegal"
"isNonstandard": null,
"tier": "Uber"
},
"diancie": {
"isNonstandard": null,
Expand Down
36 changes: 33 additions & 3 deletions data/mods/gen9vgcgay/learnsets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126352,6 +126352,9 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"workup": [
"9M"
],
"divebomb": [
"9M"
]
}
},
Expand Down Expand Up @@ -141167,6 +141170,9 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"zenheadbutt": [
"9M"
],
"psychout": [
"9M"
]
}
},
Expand Down Expand Up @@ -143150,9 +143156,6 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
"fling": [
"9M"
],
"followme": [
"9M"
],
"frustration": [
"9M"
],
Expand Down Expand Up @@ -146840,6 +146843,12 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"zenheadbutt": [
"9M"
],
"dragonrush": [
"9M"
],
"thunderouskick": [
"9M"
]
}
},
Expand Down Expand Up @@ -147372,6 +147381,9 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"icepunch": [
"9M"
],
"dragonrush": [
"9M"
]
}
},
Expand Down Expand Up @@ -148197,6 +148209,9 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"terablast": [
"9M"
],
"feint": [
"9M"
]
}
},
Expand Down Expand Up @@ -152659,6 +152674,18 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"return": [
"9M"
],
"shiftgear": [
"9M"
],
"dragondance": [
"9M"
],
"dragonrush": [
"9M"
],
"divebomb": [
"9M"
]
}
},
Expand Down Expand Up @@ -152838,6 +152865,9 @@ export const Learnsets: import('../../../sim/dex-species').ModdedLearnsetDataTab
],
"return": [
"9M"
],
"shiftgear": [
"9M"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion data/mods/gen9vgcgay/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ export const Moves: import('../../../sim/dex-moves').ModdedMoveDataTable = {
confusion: {
inherit: true,
basePower: 30,
shortDesc: "Uses Highest attacking stat. Exists mainly for Deoxys-A",
shortDesc: "Uses Highest attacking stat. Exists for Deoxys-A.",
secondary: {},
onModifyMove(move, pokemon) {
if (pokemon.getStat('atk', false, true) > pokemon.getStat('spa', false, true)) move.category = 'Physical';
Expand Down
14 changes: 7 additions & 7 deletions data/mods/gen9vgcgay/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3254,9 +3254,9 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
],
"baseStats": {
"hp": 90,
"atk": 60,
"atk": 50,
"def": 65,
"spa": 90,
"spa": 100,
"spd": 85,
"spe": 70
},
Expand Down Expand Up @@ -12591,7 +12591,7 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
},
"inherit": true
},
"zygardecompleteform": {
"zygardecomplete": {
"types": [
"Dragon",
"Ground"
Expand Down Expand Up @@ -13041,11 +13041,11 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
"Normal"
],
"baseStats": {
"hp": 95,
"hp": 105,
"atk": 95,
"def": 110,
"spa": 105,
"spd": 110,
"def": 100,
"spa": 115,
"spd": 100,
"spe": 85
},
"abilities": {
Expand Down
4 changes: 2 additions & 2 deletions data/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,7 @@ export const Rulesets: import('../sim/dex-formats').FormatDataTable = {
prerutiershiftmod: {
effectType: "Rule",
name: "Pre RU Tier Shift Mod",
desc: `Pokémon below OU get their stats, excluding HP, boosted. +5 per tier down to 10u.`,
desc: `Pokémon below OU get their stats, excluding HP, boosted. UU/RUBL gets +15, +5 per tier down to 10u.`,
ruleset: ['Overflow Stat Mod'],
onBegin() {
this.add('rule', 'Tier Shift Mod: Pok\u00e9mon get stat buffs depending on their tier, excluding HP.');
Expand Down Expand Up @@ -2252,7 +2252,7 @@ export const Rulesets: import('../sim/dex-formats').FormatDataTable = {
tiershiftmod: {
effectType: "Rule",
name: "Tier Shift Mod",
desc: `Pokémon below OU get their stats, excluding HP, boosted. UU/RUBL get +15, RU/NUBL get +20, NU/PUBL get +25, and PU or lower get +30.`,
desc: `Pokémon below OU get their stats, excluding HP, boosted. UU/RUBL gets +15, +5 per tier down to 10u.`,
ruleset: ['Overflow Stat Mod'],
onBegin() {
this.add('rule', 'Tier Shift Mod: Pok\u00e9mon get stat buffs depending on their tier, excluding HP.');
Expand Down
2 changes: 1 addition & 1 deletion data/text/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7593,7 +7593,7 @@ export const MovesText: {[id: IDEntry]: MoveText} = {
name: "Ice Rink",
desc: "The user has 1/8 of its maximum HP, rounded down, restored at the end of each turn while it remains active. If Big Root is held by the user, the HP recovered is 1.3x normal, rounded half down. If the user uses Baton Pass, the replacement will receive the healing effect.",
shortDesc: "User recovers 1/8 max HP per turn.",
start: " [POKEMON] surrounded itself with a ice rink!",
start: " [POKEMON] surrounded itself with an ice rink!",
heal: " A veil of ice restored [POKEMON]'s HP!",
},
flashfreeze: {
Expand Down

0 comments on commit 32c043b

Please sign in to comment.