client_plugin_logic_deb 1.8.208 → 1.8.209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43179,6 +43179,9 @@
43179
43179
  var actualResult = playerScore >= maxScore ? 1.0 : 0.0;
43180
43180
  var scoreDifferenceFactor = getScoreDifferenceFactor(this, actualResult, playerScore, maxScore);
43181
43181
  var newRating = currentRating + kFactor * gameComplexityCoefficient * scoreDifferenceFactor * (actualResult - expectedResult);
43182
+ if (newRating < 0) {
43183
+ return 0.0;
43184
+ }
43182
43185
  return roundToInt(newRating * 100.0) / 100.0;
43183
43186
  };
43184
43187
  protoOf(RatingCalculatorImpl).c8x = function (player, score, opponents, maxScore, gameComplexityCoefficient) {