game_client_logic_deb 1.8.243 → 1.8.245

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, WithTime, WithUtcOffset, WithDate]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithUtcOffset, WithTime]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -364,7 +364,7 @@
364
364
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
365
365
  //endregion
366
366
  function GameEngineConfig() {
367
- this.version = '1.8.243';
367
+ this.version = '1.8.245';
368
368
  }
369
369
  protoOf(GameEngineConfig).j2y = function () {
370
370
  return this.version;
@@ -33955,14 +33955,15 @@
33955
33955
  while (_iterator__ex2g4s.k()) {
33956
33956
  var _destruct__k2r9zo = _iterator__ex2g4s.l();
33957
33957
  var playerId = _destruct__k2r9zo.pe();
33958
- var cardsCount = _destruct__k2r9zo.qe();
33958
+ var maxCardsCount = _destruct__k2r9zo.qe();
33959
33959
  var tmp0_elvis_lhs = playersCards.g2(playerId);
33960
33960
  var currentPlayerCards = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
33961
- var requestedCardsCount = cardsCount - currentPlayerCards.m() | 0;
33962
- // Inline function 'kotlin.collections.set' call
33961
+ var requestedCardsCount = maxCardsCount - currentPlayerCards.m() | 0;
33963
33962
  // Inline function 'kotlin.math.min' call
33964
- var tmp$ret$4 = Math.min(cardsInCycle, requestedCardsCount);
33965
- var value = plus(currentPlayerCards, distributeCardsBottom(cards, tmp$ret$4));
33963
+ var countToDistribute = Math.min(cardsInCycle, requestedCardsCount);
33964
+ var distributeCards = distributeCardsBottom(cards, countToDistribute);
33965
+ // Inline function 'kotlin.collections.set' call
33966
+ var value = plus(currentPlayerCards, distributeCards);
33966
33967
  playersCards.j2(playerId, value);
33967
33968
  }
33968
33969
  }
@@ -34047,12 +34048,12 @@
34047
34048
  protoOf(CardsIntercatorImpl).o8c = function (cards, trumpCard, selectedTrump, players, config) {
34048
34049
  var whoGetsTheTrumpCard = this.h8c_1.m89(players, config);
34049
34050
  // Inline function 'kotlin.collections.mutableMapOf' call
34050
- var playerCards = LinkedHashMap_init_$Create$();
34051
+ var playersCards = LinkedHashMap_init_$Create$();
34051
34052
  if (!((whoGetsTheTrumpCard == null ? null : whoGetsTheTrumpCard.playerId) == null)) {
34052
34053
  // Inline function 'kotlin.collections.set' call
34053
34054
  var key = whoGetsTheTrumpCard.playerId;
34054
34055
  var value = listOf_0(trumpCard);
34055
- playerCards.j2(key, value);
34056
+ playersCards.j2(key, value);
34056
34057
  }
34057
34058
  var cardsInTheCardDeck = toMutableList(cards);
34058
34059
  // Inline function 'kotlin.collections.map' call
@@ -34062,11 +34063,11 @@
34062
34063
  while (tmp0_iterator.k()) {
34063
34064
  var item = tmp0_iterator.l();
34064
34065
  // Inline function 'games.jass.logic.domain.interactors.dealer.CardsIntercatorImpl.distributeSecondRoundCards.<anonymous>' call
34065
- var neededCardsCount = (config.playerHandCardsSize - item.y69() | 0) - playerCards.m() | 0;
34066
+ var neededCardsCount = config.playerHandCardsSize - item.y69() | 0;
34066
34067
  var tmp$ret$1 = to(item.playerId, neededCardsCount);
34067
34068
  destination.e(tmp$ret$1);
34068
34069
  }
34069
- var distributedPlayersCards = distributeCardsByCycles(this, 1, cardsInTheCardDeck, destination, playerCards);
34070
+ var distributedPlayersCards = distributeCardsByCycles(this, 1, cardsInTheCardDeck, destination, playersCards);
34070
34071
  var frezaCard = this.j8c_1.u89(config) ? single(distributeCardsTop(cardsInTheCardDeck, 1)) : null;
34071
34072
  var tmp1_$this = this.k8c_1;
34072
34073
  // Inline function 'kotlin.collections.map' call