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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.d.ts +1 -1
- package/Logic_Debertz-client_plugin.js +3 -3
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +3 -0
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -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) {
|