Skip to content

Commit

Permalink
Randomized format set updates (#10621)
Browse files Browse the repository at this point in the history
* October midmonth update

* this one wasn't there when i got here

* i keep missing commas

* lint

* lint

* Make gen 4 Umbreon work

* add boots slither

* change clef fire move

* change suicune

* give supercell slam odd hp evs

* support pult + fix weird error

* unfix?? weird error

* hex pult

* -1 level silicobra

* more updates

* Prevent Shedinja from generating after bad weather setters in Gens 3-5

* remove taunt from stuff

---------

Co-authored-by: kcliu2 <85981834+kcliu2@users.noreply.github.com>
Co-authored-by: livid-washed <115855253+livid-washed@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent c98a53b commit f2b538d
Show file tree
Hide file tree
Showing 16 changed files with 125 additions and 74 deletions.
6 changes: 1 addition & 5 deletions data/random-battles/gen2/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -984,11 +984,7 @@
},
{
"role": "Bulky Support",
"movepool": ["nightshade", "rest", "sleeptalk", "toxic"]
},
{
"role": "Bulky Setup",
"movepool": ["curse", "rest", "return", "sleeptalk"]
"movepool": ["curse", "nightshade", "rest", "return", "sleeptalk"]
}
]
},
Expand Down
5 changes: 2 additions & 3 deletions data/random-battles/gen3/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2590,9 +2590,8 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["dragonclaw", "earthquake", "fireblast", "hiddenpowerbug", "rockslide"],
"abilities": ["Levitate"],
"preferredTypes": ["Bug", "Rock"]
"movepool": ["earthquake", "hiddenpowerbug", "quickattack", "rockslide"],
"abilities": ["Levitate"]
},
{
"role": "Staller",
Expand Down
3 changes: 3 additions & 0 deletions data/random-battles/gen3/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ export class RandomGen3Teams extends RandomGen4Teams {
// Limit to one of each species (Species Clause)
if (baseFormes[species.baseSpecies]) continue;

// Prevent Shedinja from generating after Tyranitar
if (species.name === 'Shedinja' && teamDetails.sand) continue;

// Limit to one Wobbuffet per battle (not just per team)
if (species.name === 'Wobbuffet' && this.battleHasWobbuffet) continue;
// Limit to one Ditto per battle in Gen 2
Expand Down
10 changes: 5 additions & 5 deletions data/random-battles/gen4/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1188,13 +1188,13 @@
"level": 85,
"sets": [
{
"role": "Staller",
"movepool": ["healbell", "moonlight", "payback", "toxic"],
"role": "Bulky Support",
"movepool": ["curse", "healbell", "moonlight", "payback", "toxic"],
"abilities": ["Synchronize"]
},
{
"role": "Bulky Support",
"movepool": ["curse", "payback", "protect", "toxic", "wish"],
"role": "Staller",
"movepool": ["payback", "protect", "toxic", "wish"],
"abilities": ["Synchronize"]
}
]
Expand Down Expand Up @@ -2936,7 +2936,7 @@
},
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "return", "substitute", "waterfall"],
"movepool": ["bulkup", "icepunch", "return", "substitute", "waterfall"],
"abilities": ["Swift Swim"]
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/random-battles/gen4/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class RandomGen4Teams extends RandomGen5Teams {
}

// Develop additional move lists
const badWithSetup = ['healbell', 'pursuit', 'toxic'];
const badWithSetup = ['pursuit', 'toxic'];
const statusMoves = this.dex.moves.all()
.filter(move => move.category === 'Status')
.map(move => move.id);
Expand Down
4 changes: 2 additions & 2 deletions data/random-battles/gen5/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -2954,7 +2954,7 @@
},
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "crunch", "icepunch", "lowkick", "substitute", "waterfall"],
"movepool": ["bulkup", "crunch", "icepunch", "lowkick", "substitute", "waterfall"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
}
Expand Down
3 changes: 3 additions & 0 deletions data/random-battles/gen5/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,9 @@ export class RandomGen5Teams extends RandomGen6Teams {
// Illusion shouldn't be in the last slot
if (species.name === 'Zoroark' && pokemon.length >= (this.maxTeamSize - 1)) continue;

// Prevent Shedinja from generating after Sandstorm/Hail setters
if (species.name === 'Shedinja' && (teamDetails.sand || teamDetails.hail)) continue;

// Dynamically scale limits for different team sizes. The default and minimum value is 1.
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;

Expand Down
9 changes: 5 additions & 4 deletions data/random-battles/gen6/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -1544,7 +1544,7 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["closecombat", "pinmissile", "rockblast", "substitute", "swordsdance"],
"movepool": ["closecombat", "earthquake", "knockoff", "pinmissile", "rockblast", "substitute", "swordsdance"],
"abilities": ["Moxie"],
"preferredTypes": ["Rock"]
}
Expand Down Expand Up @@ -2622,7 +2622,8 @@
{
"role": "Bulky Attacker",
"movepool": ["fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"]
"abilities": ["Forecast"],
"preferredTypes": ["Water"]
}
]
},
Expand Down Expand Up @@ -3310,7 +3311,7 @@
"sets": [
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "lowkick", "substitute", "waterfall"],
"movepool": ["bulkup", "icepunch", "lowkick", "substitute", "waterfall"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
},
Expand Down
10 changes: 8 additions & 2 deletions data/random-battles/gen6/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,14 @@ export class RandomGen6Teams extends RandomGen7Teams {
}
if (moves.has('outrage') && counter.get('setup')) return 'Lum Berry';
if (
(ability === 'Rough Skin') || (species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2))
(ability === 'Rough Skin') || (
species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2)
) || (
ability !== 'Regenerator' && !counter.get('setup') && counter.get('recovery') &&
this.dex.getEffectiveness('Fighting', species) < 1 &&
(species.baseStats.hp + species.baseStats.def) > 200 && this.randomChance(1, 2)
)
) return 'Rocky Helmet';
if (['kingsshield', 'protect', 'spikyshield', 'substitute'].some(m => moves.has(m))) return 'Leftovers';
if (
Expand Down
16 changes: 11 additions & 5 deletions data/random-battles/gen7/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -1774,7 +1774,7 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["closecombat", "pinmissile", "rockblast", "substitute", "swordsdance"],
"movepool": ["closecombat", "earthquake", "knockoff", "pinmissile", "rockblast", "substitute", "swordsdance"],
"abilities": ["Moxie"],
"preferredTypes": ["Rock"]
}
Expand Down Expand Up @@ -2870,8 +2870,9 @@
"sets": [
{
"role": "Bulky Attacker",
"movepool": ["fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"]
"movepool": ["defog", "fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"],
"preferredTypes": ["Water"]
}
]
},
Expand Down Expand Up @@ -3592,7 +3593,7 @@
"sets": [
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "liquidation", "lowkick", "substitute"],
"movepool": ["bulkup", "icepunch", "liquidation", "lowkick", "substitute"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
},
Expand Down Expand Up @@ -5163,6 +5164,11 @@
"movepool": ["airslash", "energyball", "heatwave", "icebeam", "psychic", "psyshock"],
"abilities": ["Tinted Lens"],
"preferredTypes": ["Psychic"]
},
{
"role": "Bulky Setup",
"movepool": ["airslash", "cosmicpower", "roost", "storedpower"],
"abilities": ["Magic Guard"]
}
]
},
Expand Down
10 changes: 8 additions & 2 deletions data/random-battles/gen7/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,14 @@ export class RandomGen7Teams extends RandomGen8Teams {
}
if (moves.has('outrage') && counter.get('setup')) return 'Lum Berry';
if (
(ability === 'Rough Skin') || (species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2))
(ability === 'Rough Skin') || (
species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2)
) || (
ability !== 'Regenerator' && !counter.get('setup') && counter.get('recovery') &&
this.dex.getEffectiveness('Fighting', species) < 1 &&
(species.baseStats.hp + species.baseStats.def) > 200 && this.randomChance(1, 2)
)
) return 'Rocky Helmet';
if (['kingsshield', 'protect', 'spikyshield', 'substitute'].some(m => moves.has(m))) return 'Leftovers';
if (
Expand Down
8 changes: 4 additions & 4 deletions data/random-battles/gen8/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
},
"golduck": {
"level": 85,
"moves": ["calmmind", "focusblast", "icebeam", "psyshock", "scald", "substitute"],
"moves": ["calmmind", "focusblast", "icebeam", "scald", "substitute"],
"doublesLevel": 88,
"doublesMoves": ["calmmind", "encore", "icebeam", "muddywater", "protect"]
},
Expand Down Expand Up @@ -898,7 +898,7 @@
},
"salamence": {
"level": 75,
"moves": ["dragondance", "dualwingbeat", "earthquake", "outrage", "roost"],
"moves": ["dragondance", "dualwingbeat", "earthquake", "outrage"],
"doublesLevel": 79,
"doublesMoves": ["dragonclaw", "fireblast", "hurricane", "protect", "tailwind"]
},
Expand Down Expand Up @@ -953,7 +953,7 @@
},
"rayquaza": {
"level": 73,
"moves": ["dracometeor", "dragonascent", "dragondance", "earthquake", "extremespeed", "swordsdance", "vcreate"],
"moves": ["dragonascent", "dragondance", "earthquake", "extremespeed", "swordsdance", "vcreate"],
"doublesLevel": 74,
"doublesMoves": ["dracometeor", "dragonascent", "dragonclaw", "dragondance", "earthpower", "extremespeed", "vcreate"],
"noDynamaxMoves": ["dracometeor", "dragonascent", "dragondance", "earthquake", "extremespeed", "vcreate"]
Expand Down Expand Up @@ -1533,7 +1533,7 @@
},
"accelgor": {
"level": 90,
"moves": ["bugbuzz", "energyball", "focusblast", "sludgebomb", "spikes", "toxic", "yawn"],
"moves": ["bugbuzz", "energyball", "focusblast", "sludgebomb", "spikes", "toxicspikes", "yawn"],
"doublesLevel": 88,
"doublesMoves": ["acidspray", "bugbuzz", "encore", "energyball", "focusblast"],
"noDynamaxMoves": ["bugbuzz", "encore", "energyball", "focusblast", "spikes", "toxic"]
Expand Down
2 changes: 1 addition & 1 deletion data/random-battles/gen9/doubles-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6043,7 +6043,7 @@
"sets": [
{
"role": "Choice Item user",
"movepool": ["Aqua Jet", "Liquidation", "Memento", "Stomping Tantrum", "Throat Chop"],
"movepool": ["Aqua Jet", "Liquidation", "Stomping Tantrum", "Throat Chop"],
"abilities": ["Gooey"],
"teraTypes": ["Dark", "Ground"]
}
Expand Down
Loading

0 comments on commit f2b538d

Please sign in to comment.