game_client_logic_deb 1.8.246 → 1.8.247

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.
@@ -377,7 +377,7 @@
377
377
  return tmp;
378
378
  }
379
379
  initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
380
- initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithDate, WithUtcOffset]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -365,7 +365,7 @@
365
365
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
366
366
  //endregion
367
367
  function GameEngineConfig() {
368
- this.version = '1.8.246';
368
+ this.version = '1.8.247';
369
369
  }
370
370
  protoOf(GameEngineConfig).j2y = function () {
371
371
  return this.version;
@@ -196,6 +196,7 @@
196
196
  var mapFromDto_0 = kotlin_io_raspberryapps_game_engine_core.$_$.s;
197
197
  var mapFromDto_1 = kotlin_io_raspberryapps_game_engine_core.$_$.r;
198
198
  var Companion_getInstance_3 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c;
199
+ var getOrNull = kotlin_kotlin.$_$.z7;
199
200
  var first_0 = kotlin_kotlin.$_$.w7;
200
201
  var contains = kotlin_kotlin.$_$.t6;
201
202
  var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.p2;
@@ -254,7 +255,6 @@
254
255
  var DealerReducer = kotlin_io_raspberryapps_cardgame_core.$_$.b1;
255
256
  var CombinationsCheckerProvider = kotlin_io_raspberryapps_cardgame_core.$_$.z;
256
257
  var CombinationsCheckerProviderImpl = kotlin_io_raspberryapps_cardgame_core.$_$.y;
257
- var getOrNull = kotlin_kotlin.$_$.z7;
258
258
  var toList_0 = kotlin_kotlin.$_$.s9;
259
259
  var plus_0 = kotlin_kotlin.$_$.a9;
260
260
  var listOfNotNull_0 = kotlin_kotlin.$_$.n8;
@@ -2326,7 +2326,7 @@
2326
2326
  tmp = 0;
2327
2327
  break;
2328
2328
  case 1:
2329
- tmp = 1000;
2329
+ tmp = 1100;
2330
2330
  break;
2331
2331
  case 2:
2332
2332
  tmp = 1500;
@@ -2391,7 +2391,7 @@
2391
2391
  var tmp$ret$0 = new LeagueInfo(element.getMinRating(), element.isEnabled());
2392
2392
  result.j2(element, tmp$ret$0);
2393
2393
  }
2394
- return new LeaguesConfig(700, result);
2394
+ return new LeaguesConfig(1000, result);
2395
2395
  };
2396
2396
  var Companion_instance_10;
2397
2397
  function Companion_getInstance_12() {
@@ -4166,10 +4166,10 @@
4166
4166
  var tmp = _this__u8e3s4.payload;
4167
4167
  return tmp instanceof UserProfilePayload ? tmp : null;
4168
4168
  }
4169
- function getUserProfilePayloadOrDefault(_this__u8e3s4) {
4169
+ function getUserProfilePayloadOrDefault(_this__u8e3s4, leaguesConfig) {
4170
4170
  var tmp = _this__u8e3s4.payload;
4171
4171
  var tmp0_elvis_lhs = tmp instanceof UserProfilePayload ? tmp : null;
4172
- return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID, 1000.0, 0) : tmp0_elvis_lhs;
4172
+ return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID, leaguesConfig.initialRating, 0) : tmp0_elvis_lhs;
4173
4173
  }
4174
4174
  function Achievements(oldRating, newRating) {
4175
4175
  this.oldRating = oldRating;
@@ -14857,8 +14857,8 @@
14857
14857
  }
14858
14858
  return new FullGameHistory(tmp9_gameId, tmp3_config, destination, tmp2_winners, tmp7_live, tmp8_metadata, tmp1_createdAt, tmp5_expiredAt, tmp6_isFinished, destination_0);
14859
14859
  }
14860
- function mapToTableLite(_this__u8e3s4) {
14861
- var lastRound = lastOrNull(_this__u8e3s4.v7l_1);
14860
+ function mapToTableLite(_this__u8e3s4, round) {
14861
+ var lastRound = round == null ? lastOrNull(_this__u8e3s4.v7l_1) : getOrNull(_this__u8e3s4.v7l_1, round);
14862
14862
  // Inline function 'kotlin.collections.map' call
14863
14863
  var this_0 = _this__u8e3s4.o7l_1;
14864
14864
  // Inline function 'kotlin.collections.mapTo' call
@@ -38449,12 +38449,13 @@
38449
38449
  }
38450
38450
  return sortedWith(results, new PlayerRatingOutputOrderComparator(destination));
38451
38451
  };
38452
- function mapToRatingInput(_this__u8e3s4, isWinner, isBot, finalGamePoints) {
38452
+ function mapToRatingInput(_this__u8e3s4, isWinner, isBot, finalGamePoints, leaguesConfig) {
38453
38453
  isBot = isBot === VOID ? false : isBot;
38454
- var userStatsPayload = getUserProfilePayloadOrDefault(_this__u8e3s4.s6t_1);
38454
+ leaguesConfig = leaguesConfig === VOID ? Companion_instance_10.defaultConfig() : leaguesConfig;
38455
+ var userStatsPayload = getUserProfilePayloadOrDefault(_this__u8e3s4.s6t_1, leaguesConfig);
38455
38456
  var tmp1_playerId = _this__u8e3s4.playerId;
38456
38457
  var tmp0_elvis_lhs = userStatsPayload.rating;
38457
- var tmp2_rating = tmp0_elvis_lhs == null ? 1000.0 : tmp0_elvis_lhs;
38458
+ var tmp2_rating = tmp0_elvis_lhs == null ? leaguesConfig.initialRating : tmp0_elvis_lhs;
38458
38459
  var tmp3_playedGamesCount = userStatsPayload.playedGamesCount;
38459
38460
  return new PlayerRatingInput(tmp1_playerId, tmp2_rating, finalGamePoints, isWinner, isBot, tmp3_playedGamesCount);
38460
38461
  }
@@ -48938,7 +48939,7 @@
48938
48939
  protoOf(ParserHelperImpl).decodeTableLite = function (json) {
48939
48940
  return mapFromDto_55(this.d94_1.r8c(json));
48940
48941
  };
48941
- protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json) {
48942
+ protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
48942
48943
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
48943
48944
  var this_0 = this.c94_1;
48944
48945
  // Inline function 'kotlinx.serialization.serializer' call
@@ -48948,7 +48949,7 @@
48948
48949
  var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
48949
48950
  var tmp$ret$2 = this_0.r44(tmp$ret$1, json);
48950
48951
  var fullGameHistory = mapFromDto_24(tmp$ret$2);
48951
- return mapToTableLite(fullGameHistory);
48952
+ return mapToTableLite(fullGameHistory, round);
48952
48953
  };
48953
48954
  function RatingHelper() {
48954
48955
  }