Skip to content

Commit

Permalink
pFatigue adjustment for playoffs is no longer needed - was making it …
Browse files Browse the repository at this point in the history
…a 3 man rotation rather than 4
  • Loading branch information
dumbmatter committed Oct 16, 2024
1 parent 61f2dce commit 02bd1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
5th starter should be treated like a reliever in playoffs, assuming none of the top 4 starters are injured https://discord.com/channels/290013534023057409/290015591216054273/1295809141805416541

Strike out throw out DP does not advance batting order https://discord.com/channels/290013534023057409/290015591216054273/1010153106740351057

button to heal injury on edit player page, or give random injury if healthy
Expand Down
7 changes: 0 additions & 7 deletions src/worker/core/game/loadTeams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@ export const processTeam = (

if (isSport("baseball")) {
(p2 as any).pFatigue = p.pFatigue ?? 0;
if (playoffs) {
// Pitchers play through some fatigue in playoffs
(p2 as any).pFatigue -= P_FATIGUE_DAILY_REDUCTION;
if ((p2 as any).pFatigue < 0) {
(p2 as any).pFatigue = 0;
}
}

// Store some pre-game season stats that are displayed in box score
const seasonStats: Record<string, number> = {};
Expand Down

0 comments on commit 02bd1e7

Please sign in to comment.