Skip to content
Permalink
Browse files

Big whoops. This fixes teams made up of only one position from winning.

But I need to see if it affects leaguewide statistics for normal teams.
  • Loading branch information...
dumbmatter committed Oct 4, 2019
1 parent 113762b commit 05aa4ca97bf055792a4e656852dcd4af6d1d8336
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/football/worker/core/GameSim/index.js
@@ -1627,8 +1627,8 @@ class GameSim {
(defender.compositeRating.passCoverage +
this.team[this.d].compositeRating.passCoverage))) *
Math.sqrt(
this.team[this.d].compositeRating.passRushing /
this.team[this.o].compositeRating.passBlocking,
this.team[this.o].compositeRating.passBlocking /
this.team[this.d].compositeRating.passRushing,
);

const p = 0.55 * factor ** 1.25;
@@ -1680,8 +1680,8 @@ class GameSim {
let ydsRaw = Math.round(
random.truncGauss(
11 *
(this.team[this.d].compositeRating.passRushing /
this.team[this.o].compositeRating.passBlocking),
(this.team[this.o].compositeRating.passBlocking /
this.team[this.d].compositeRating.passRushing),
7,
-10,
100,

0 comments on commit 05aa4ca

Please sign in to comment.
You can’t perform that action at this time.