raspberry_games_server_game_logic 1.8.435 → 1.8.436
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/Logic_Debertz-core.js
CHANGED
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
403
403
|
//endregion
|
|
404
404
|
function GameEngineConfig() {
|
|
405
|
-
this.version = '1.8.
|
|
405
|
+
this.version = '1.8.436';
|
|
406
406
|
}
|
|
407
407
|
protoOf(GameEngineConfig).b3w = function () {
|
|
408
408
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -60423,6 +60423,8 @@
|
|
|
60423
60423
|
this.m9p_1 = userRatingInteractor;
|
|
60424
60424
|
}
|
|
60425
60425
|
protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
|
|
60426
|
+
var minRatingLimit = 800;
|
|
60427
|
+
var maxRatingFactor = 0.3;
|
|
60426
60428
|
var tmp;
|
|
60427
60429
|
if (league == null) {
|
|
60428
60430
|
tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
|
|
@@ -60433,9 +60435,10 @@
|
|
|
60433
60435
|
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
60434
60436
|
var minRating = targetLeague.getMinRating();
|
|
60435
60437
|
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
60436
|
-
var
|
|
60437
|
-
|
|
60438
|
-
|
|
60438
|
+
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * maxRatingFactor);
|
|
60439
|
+
// Inline function 'kotlin.comparisons.maxOf' call
|
|
60440
|
+
var botMinRating = Math.max(minRatingLimit, minRating);
|
|
60441
|
+
return new BotRatingRange(botMinRating, botMaxRating);
|
|
60439
60442
|
};
|
|
60440
60443
|
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
60441
60444
|
// Inline function 'kotlin.text.uppercase' call
|