game_client_logic_deb 1.8.395 → 1.8.397

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.
@@ -386,7 +386,7 @@
386
386
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
387
387
  //endregion
388
388
  function GameEngineConfig() {
389
- this.version = '1.8.395';
389
+ this.version = '1.8.397';
390
390
  }
391
391
  protoOf(GameEngineConfig).w3u = function () {
392
392
  return this.version;
@@ -2747,14 +2747,10 @@
2747
2747
  var tmp;
2748
2748
  switch (this.p2_1) {
2749
2749
  case 0:
2750
- tmp = true;
2751
- break;
2752
2750
  case 1:
2753
2751
  tmp = true;
2754
2752
  break;
2755
2753
  case 2:
2756
- tmp = false;
2757
- break;
2758
2754
  case 3:
2759
2755
  tmp = false;
2760
2756
  break;
@@ -35003,6 +34999,8 @@
35003
34999
  var tmp;
35004
35000
  switch (this.p2_1) {
35005
35001
  case 0:
35002
+ tmp = false;
35003
+ break;
35006
35004
  case 2:
35007
35005
  case 1:
35008
35006
  case 3:
@@ -37860,7 +37858,7 @@
37860
37858
  function getFirstTeam($this, players) {
37861
37859
  // Inline function 'kotlin.check' call
37862
37860
  if (!(players.o() === 4)) {
37863
- var message = 'Players count should be 4';
37861
+ var message = 'Players count should be 4, actual ' + toString($this);
37864
37862
  throw IllegalStateException_init_$Create$(toString(message));
37865
37863
  }
37866
37864
  return listOf_0([players.p(0), players.p(2)]);
@@ -37868,7 +37866,7 @@
37868
37866
  function getSecondTeam($this, players) {
37869
37867
  // Inline function 'kotlin.check' call
37870
37868
  if (!(players.o() === 4)) {
37871
- var message = 'Players count should be 4';
37869
+ var message = 'Players count should be 4, actual ' + toString($this);
37872
37870
  throw IllegalStateException_init_$Create$(toString(message));
37873
37871
  }
37874
37872
  return listOf_0([players.p(1), players.p(3)]);
@@ -49046,8 +49044,9 @@
49046
49044
  while (_iterator__ex2g4s.m()) {
49047
49045
  var element = _iterator__ex2g4s.n();
49048
49046
  // Inline function 'kotlin.math.absoluteValue' call
49049
- var this_0 = element.oldRating - element.newRating;
49050
- if (Math.abs(this_0) >= 100) {
49047
+ var this_0 = element.newRating - element.oldRating;
49048
+ var ratingMultiplier = Math.abs(this_0) / element.oldRating;
49049
+ if (ratingMultiplier > 0.15) {
49051
49050
  destination.j(element);
49052
49051
  }
49053
49052
  }
@@ -49079,7 +49078,7 @@
49079
49078
  var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
49080
49079
  // Inline function 'kotlin.collections.isNotEmpty' call
49081
49080
  if (!ratingChangeAboveLimit.r()) {
49082
- logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
49081
+ logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(ratingChangeAboveLimit));
49083
49082
  }
49084
49083
  }
49085
49084
  function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {