Skip to content

Commit

Permalink
Try harder not to have sets without an attack
Browse files Browse the repository at this point in the history
  • Loading branch information
pyuk-bot committed Dec 20, 2023
1 parent b130910 commit 685995d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/cg-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,17 @@ export default class TeamGenerator {
weight *= 0.3;
}

if (movesSoFar.length === 3 && movesStats.nonStatusMoves === 0) {
// uh oh
weight *= 0.6;
for (const stat in movesStats.setup) {
if (movesStats.setup[stat as StatIDExceptHP] > 0) {
// having no attacks is bad; having setup but no attacks is REALLY bad
weight *= 0.6;
}
}
}

// don't need 2 healing moves
if (move.heal && movesStats.healing) weight *= 0.5;

Expand Down

0 comments on commit 685995d

Please sign in to comment.