Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Aug 29, 2024
1 parent 92f1087 commit 45aee29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions stats/src/classifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export function computeGreaterSetupMoves(gen: Generation) {
((m.boosts.atk >= 1 && m.boosts.spe && m.boosts.spe >= 1) || m.boosts.atk >= 2)) ||
(m.boosts.spa &&
((m.boosts.spa >= 1 && m.boosts.spe && m.boosts.spe >= 1) || m.boosts.spa >= 2))
// Shell Smash is intentionally left off this list
) && m.id !== 'shellsmash').map(m => m.id);
// Attacking moves that have a high Base Power (80 or above) and have a high
// likelihood of boosting (at least 50%)
Expand Down
3 changes: 3 additions & 0 deletions stats/src/test/classifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import * as classifier from '../classifier';

const GEN = new Generations(Dex).get(6);

/**
* Returns set of items in set `a` that are not in set `b`.
*/
function getDifference(a: Set<ID>, b: Set<ID>) {
return new Set(
[...a].filter((value) => !b.has(value))
Expand Down

0 comments on commit 45aee29

Please sign in to comment.