Skip to content

Commit

Permalink
Use hofFactor for AI teams retiring jersey numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Dec 1, 2024
1 parent 6219fda commit 1b6bfdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ui/views/Settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ export const settings: Setting[] = (
before comparing. So if you increase this number, the Hall of Fame
becomes harder to get into. Decrease it and it is easier to get in.
</p>
<p>This also applies to AI teams retiring jersey numbers.</p>
</>
),
},
Expand Down
4 changes: 3 additions & 1 deletion src/worker/core/player/checkJerseyNumberRetirement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export const getScore = (p: Player, tid: number) => {
hockey: 80,
});

const score = value / (helpers.gameAndSeasonLengthScaleFactor() * threshold);
const score =
value /
(helpers.gameAndSeasonLengthScaleFactor() * g.get("hofFactor") * threshold);

return score;
};
Expand Down

0 comments on commit 1b6bfdc

Please sign in to comment.