raspberry_games_server_game_logic 1.8.396 → 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.
@@ -387,7 +387,7 @@
387
387
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
388
388
  //endregion
389
389
  function GameEngineConfig() {
390
- this.version = '1.8.396';
390
+ this.version = '1.8.397';
391
391
  }
392
392
  protoOf(GameEngineConfig).a3w = function () {
393
393
  return this.version;
@@ -50276,8 +50276,9 @@
50276
50276
  while (_iterator__ex2g4s.m()) {
50277
50277
  var element = _iterator__ex2g4s.n();
50278
50278
  // Inline function 'kotlin.math.absoluteValue' call
50279
- var this_0 = element.oldRating - element.newRating;
50280
- if (Math.abs(this_0) >= 100) {
50279
+ var this_0 = element.newRating - element.oldRating;
50280
+ var ratingMultiplier = Math.abs(this_0) / element.oldRating;
50281
+ if (ratingMultiplier > 0.15) {
50281
50282
  destination.j(element);
50282
50283
  }
50283
50284
  }
@@ -50309,7 +50310,7 @@
50309
50310
  var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
50310
50311
  // Inline function 'kotlin.collections.isNotEmpty' call
50311
50312
  if (!ratingChangeAboveLimit.r()) {
50312
- logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
50313
+ logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(ratingChangeAboveLimit));
50313
50314
  }
50314
50315
  }
50315
50316
  function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {