raspberry_games_engine_helpers 1.8.439 → 1.8.440

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.k1c(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) {
@@ -228,7 +228,7 @@
228
228
  initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
229
229
  //endregion
230
230
  function GameEngineConfig() {
231
- this.version = '1.8.439';
231
+ this.version = '1.8.440';
232
232
  }
233
233
  protoOf(GameEngineConfig).j17 = function () {
234
234
  return this.version;
@@ -38511,7 +38511,6 @@
38511
38511
  this.u46_1 = userRatingInteractor;
38512
38512
  }
38513
38513
  protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
38514
- var minRatingLimit = 800;
38515
38514
  var maxRatingFactor = 0.3;
38516
38515
  var tmp;
38517
38516
  if (league == null) {
@@ -38523,10 +38522,12 @@
38523
38522
  var defaultConfig = Companion_instance_9.defaultConfig();
38524
38523
  var minRating = targetLeague.getMinRating();
38525
38524
  var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
38525
+ if (targetLeague.equals(League_BEGINNER_getInstance())) {
38526
+ var minRatingStartLimit = 800;
38527
+ return new BotRatingRange(minRatingStartLimit, maxRating);
38528
+ }
38526
38529
  var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * maxRatingFactor);
38527
- // Inline function 'kotlin.comparisons.maxOf' call
38528
- var botMinRating = Math.max(minRatingLimit, minRating);
38529
- return new BotRatingRange(botMinRating, botMaxRating);
38530
+ return new BotRatingRange(minRating, botMaxRating);
38530
38531
  };
38531
38532
  protoOf(RatingHelperImpl).mapToLeague = function (name) {
38532
38533
  // Inline function 'kotlin.text.uppercase' call