raspberry_games_server_game_logic 1.8.433 → 1.8.434

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.
@@ -380,7 +380,7 @@
380
380
  function addFormatStructureForTime(structure) {
381
381
  this.v5k(structure);
382
382
  }
383
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
383
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
384
384
  initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
385
385
  initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
386
386
  function set_fractionOfSecond(value) {
@@ -402,7 +402,7 @@
402
402
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
403
403
  //endregion
404
404
  function GameEngineConfig() {
405
- this.version = '1.8.433';
405
+ this.version = '1.8.434';
406
406
  }
407
407
  protoOf(GameEngineConfig).b3w = function () {
408
408
  return this.version;
@@ -59267,21 +59267,6 @@
59267
59267
  function GameHelperImpl(logger) {
59268
59268
  this.k9o_1 = logger;
59269
59269
  }
59270
- protoOf(GameHelperImpl).getBotRatingRange = function (league) {
59271
- var tmp;
59272
- if (league == null) {
59273
- tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
59274
- } else {
59275
- tmp = this.mapToLeague(league);
59276
- }
59277
- var targetLeague = tmp;
59278
- var defaultConfig = Companion_instance_12.defaultConfig();
59279
- var minRating = targetLeague.getMinRating();
59280
- var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
59281
- var factor = 0.3;
59282
- var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
59283
- return new BotRatingRange(minRating, botMaxRating);
59284
- };
59285
59270
  protoOf(GameHelperImpl).h9o = function (store, playerIds, includeBots) {
59286
59271
  var state = store.state;
59287
59272
  var tmp;
@@ -60224,6 +60209,27 @@
60224
60209
  this.a9p_1 = json;
60225
60210
  this.b9p_1 = userRatingInteractor;
60226
60211
  }
60212
+ protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
60213
+ var tmp;
60214
+ if (league == null) {
60215
+ tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
60216
+ } else {
60217
+ tmp = this.mapToLeague(league);
60218
+ }
60219
+ var targetLeague = tmp;
60220
+ var defaultConfig = Companion_instance_12.defaultConfig();
60221
+ var minRating = targetLeague.getMinRating();
60222
+ var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
60223
+ var factor = 0.3;
60224
+ var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
60225
+ return new BotRatingRange(minRating, botMaxRating);
60226
+ };
60227
+ protoOf(RatingHelperImpl).mapToLeague = function (name) {
60228
+ // Inline function 'kotlin.text.uppercase' call
60229
+ // Inline function 'kotlin.js.asDynamic' call
60230
+ var tmp$ret$1 = name.toUpperCase();
60231
+ return valueOf_0(tmp$ret$1);
60232
+ };
60227
60233
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
60228
60234
  return this.b9p_1.b8z(league, rating);
60229
60235
  };