moderately-good-code / pokeemerald-expansion-immersive-randomization

Incorporates controlled randomization into pokeemeral-expansion
0 stars 0 forks source link

Improve AI misuse of some attacks #11

Open moderately-good-code opened 7 months ago

moderately-good-code commented 7 months ago

Description

There are often generated teams that overuse certain moves in a stupid way that makes them easy to beat. These moves are:

Fix them.

Version

1.6.1 (Default)

Upcoming Version

No response

Discord contact info

No response

moderately-good-code commented 2 months ago

Important edit: the solution below can introduce a game-breaking bug, because the movesCount field in the smogon structs is larger than the actual number of moves, leading to a garbage ID being assigned! Very dangerous!

For now, instead of fixing the AI, I removed the attacks from the movepools of the smogon statistics by replacing the regex (\{<move macro>, [0-9]+\},) with // $1 // commented out because AI handles the move badly in VSCodium (syntax might differ in other editors). The comment at the end should make this easy to undo if the AI ever gets fixed.