raspberry_games_engine_helpers 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.
@@ -380,7 +380,7 @@
380
380
  function addFormatStructureForTime(structure) {
381
381
  this.m1c(structure);
382
382
  }
383
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
383
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
384
384
  initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
385
385
  initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
386
386
  function set_fractionOfSecond(value) {
@@ -229,7 +229,7 @@
229
229
  initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
230
230
  //endregion
231
231
  function GameEngineConfig() {
232
- this.version = '1.8.435';
232
+ this.version = '1.8.436';
233
233
  }
234
234
  protoOf(GameEngineConfig).l17 = function () {
235
235
  return this.version;
@@ -38370,6 +38370,8 @@
38370
38370
  this.t46_1 = userRatingInteractor;
38371
38371
  }
38372
38372
  protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
38373
+ var minRatingLimit = 800;
38374
+ var maxRatingFactor = 0.3;
38373
38375
  var tmp;
38374
38376
  if (league == null) {
38375
38377
  tmp = Default_getInstance().yd() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
@@ -38380,9 +38382,10 @@
38380
38382
  var defaultConfig = Companion_instance_9.defaultConfig();
38381
38383
  var minRating = targetLeague.getMinRating();
38382
38384
  var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
38383
- var factor = 0.3;
38384
- var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
38385
- return new BotRatingRange(minRating, botMaxRating);
38385
+ var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * maxRatingFactor);
38386
+ // Inline function 'kotlin.comparisons.maxOf' call
38387
+ var botMinRating = Math.max(minRatingLimit, minRating);
38388
+ return new BotRatingRange(botMinRating, botMaxRating);
38386
38389
  };
38387
38390
  protoOf(RatingHelperImpl).mapToLeague = function (name) {
38388
38391
  // Inline function 'kotlin.text.uppercase' call