client_plugin_logic_deb 1.8.426 → 1.8.428

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.
@@ -427,7 +427,7 @@
427
427
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
428
428
  //endregion
429
429
  function GameEngineConfig() {
430
- this.version = '1.8.426';
430
+ this.version = '1.8.428';
431
431
  }
432
432
  protoOf(GameEngineConfig).g3z = function () {
433
433
  return this.version;
@@ -1355,8 +1355,8 @@
1355
1355
  initMetadataForClass(NotCurrentPlayerCheck, 'NotCurrentPlayerCheck');
1356
1356
  initMetadataForClass(consumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
1357
1357
  initMetadataForInterface(IgnoreLoggerAction, 'IgnoreLoggerAction', VOID, VOID, [Action]);
1358
- initMetadataForLambda(botChatPutCardMiddleware$o$handle$slambda, CoroutineImpl, VOID, [1]);
1359
- initMetadataForClass(botChatPutCardMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
1358
+ initMetadataForLambda(botChatMiddleware$o$handle$slambda, CoroutineImpl, VOID, [1]);
1359
+ initMetadataForClass(botChatMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
1360
1360
  initMetadataForLambda(handleRandomMessage$slambda, CoroutineImpl, VOID, [1]);
1361
1361
  initMetadataForLambda(botLogicMiddleware$o$handle$slambda, CoroutineImpl, VOID, [1]);
1362
1362
  initMetadataForClass(botLogicMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
@@ -50923,116 +50923,83 @@
50923
50923
  return $super === VOID ? this.x9j(ratingList, playersMode, pointsMode, ratingConfig) : $super.x9j.call(this, ratingList, playersMode, pointsMode, ratingConfig);
50924
50924
  };
50925
50925
  protoOf(UserRatingInteractor).z9j = function (leavingPlayer, allPlayers, playersMode, pointsMode, ratingConfig) {
50926
- // Inline function 'kotlin.collections.map' call
50927
- // Inline function 'kotlin.collections.mapTo' call
50928
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(allPlayers, 10));
50926
+ var maxScore = pointsMode.value;
50927
+ // Inline function 'kotlin.collections.filter' call
50928
+ // Inline function 'kotlin.collections.filterTo' call
50929
+ var destination = ArrayList_init_$Create$_0();
50929
50930
  var _iterator__ex2g4s = allPlayers.l();
50930
50931
  while (_iterator__ex2g4s.m()) {
50931
- var item = _iterator__ex2g4s.n();
50932
- var isLeavingPlayer = item.playerId === leavingPlayer.playerId;
50933
- var tmp;
50934
- if (item.l75_1.isBot) {
50935
- tmp = AgentType_BOT_NATIVE_getInstance();
50936
- } else if (isLeavingPlayer) {
50937
- tmp = AgentType_BOT_REPLACEMENT_getInstance();
50938
- } else {
50939
- tmp = AgentType_HUMAN_getInstance();
50932
+ var element = _iterator__ex2g4s.n();
50933
+ if (!(element.playerId === leavingPlayer.playerId)) {
50934
+ destination.j(element);
50940
50935
  }
50941
- var agentType = tmp;
50942
- var currentPoints = item.q75_1.d7c_1;
50943
- // Inline function 'kotlin.collections.maxOf' call
50944
- var iterator = allPlayers.l();
50945
- if (!iterator.m())
50946
- throw NoSuchElementException_init_$Create$_0();
50947
- var maxValue = iterator.n().q75_1.d7c_1;
50948
- while (iterator.m()) {
50949
- var v = iterator.n().q75_1.d7c_1;
50950
- if (compareTo(maxValue, v) < 0) {
50951
- maxValue = v;
50952
- }
50936
+ }
50937
+ // Inline function 'kotlin.collections.sortedByDescending' call
50938
+ // Inline function 'kotlin.comparisons.compareByDescending' call
50939
+ var tmp = UserRatingInteractor$calculatePlayerLeftRating$lambda;
50940
+ var tmp$ret$3 = new sam$kotlin_Comparator$0_9(tmp);
50941
+ var nonLeavingPlayers = sortedWith(destination, tmp$ret$3);
50942
+ var tmp_0;
50943
+ if (playersMode.q2_1 === 3) {
50944
+ // Inline function 'kotlin.collections.map' call
50945
+ var this_0 = take(nonLeavingPlayers, 2);
50946
+ // Inline function 'kotlin.collections.mapTo' call
50947
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
50948
+ var _iterator__ex2g4s_0 = this_0.l();
50949
+ while (_iterator__ex2g4s_0.m()) {
50950
+ var item = _iterator__ex2g4s_0.n();
50951
+ var tmp$ret$5 = item.playerId;
50952
+ destination_0.j(tmp$ret$5);
50953
50953
  }
50954
- var maxCurrentPoints = maxValue;
50955
- var tmp_0;
50956
- if (playersMode.q2_1 === 3) {
50957
- var tmp_1;
50958
- if (isLeavingPlayer) {
50959
- tmp_1 = false;
50960
- } else {
50961
- // Inline function 'kotlin.collections.sortedByDescending' call
50962
- // Inline function 'kotlin.comparisons.compareByDescending' call
50963
- var tmp_2 = UserRatingInteractor$calculatePlayerLeftRating$lambda;
50964
- var tmp$ret$3 = new sam$kotlin_Comparator$0_9(tmp_2);
50965
- var sortedPlayers = sortedWith(allPlayers, tmp$ret$3);
50966
- var tmp0 = take(sortedPlayers, 2);
50967
- var tmp$ret$5;
50968
- $l$block_0: {
50969
- // Inline function 'kotlin.collections.any' call
50970
- var tmp_3;
50971
- if (isInterface(tmp0, Collection)) {
50972
- tmp_3 = tmp0.q();
50973
- } else {
50974
- tmp_3 = false;
50975
- }
50976
- if (tmp_3) {
50977
- tmp$ret$5 = false;
50978
- break $l$block_0;
50979
- }
50980
- var _iterator__ex2g4s_0 = tmp0.l();
50981
- while (_iterator__ex2g4s_0.m()) {
50982
- var element = _iterator__ex2g4s_0.n();
50983
- if (element.playerId === item.playerId) {
50984
- tmp$ret$5 = true;
50985
- break $l$block_0;
50986
- }
50987
- }
50988
- tmp$ret$5 = false;
50989
- }
50990
- tmp_1 = tmp$ret$5;
50991
- }
50992
- tmp_0 = tmp_1;
50954
+ tmp_0 = toSet(destination_0);
50955
+ } else {
50956
+ var tmp_1;
50957
+ // Inline function 'kotlin.collections.isNotEmpty' call
50958
+ if (!nonLeavingPlayers.q()) {
50959
+ tmp_1 = setOf(first(nonLeavingPlayers).playerId);
50993
50960
  } else {
50994
- tmp_0 = (!isLeavingPlayer && currentPoints === maxCurrentPoints && maxCurrentPoints > 0);
50961
+ tmp_1 = emptySet();
50995
50962
  }
50996
- var isWinner = tmp_0;
50997
- var tmp_4;
50998
- if (isLeavingPlayer) {
50999
- tmp_4 = 0;
50963
+ tmp_0 = tmp_1;
50964
+ }
50965
+ var winnerIds = tmp_0;
50966
+ // Inline function 'kotlin.collections.map' call
50967
+ // Inline function 'kotlin.collections.mapTo' call
50968
+ var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(allPlayers, 10));
50969
+ var _iterator__ex2g4s_1 = allPlayers.l();
50970
+ while (_iterator__ex2g4s_1.m()) {
50971
+ var item_0 = _iterator__ex2g4s_1.n();
50972
+ var isLeavingPlayer = item_0.playerId === leavingPlayer.playerId;
50973
+ var isWinner = winnerIds.u1(item_0.playerId);
50974
+ var tmp_2;
50975
+ if (item_0.l75_1.isBot) {
50976
+ tmp_2 = AgentType_BOT_NATIVE_getInstance();
50977
+ } else if (isLeavingPlayer) {
50978
+ tmp_2 = AgentType_BOT_REPLACEMENT_getInstance();
51000
50979
  } else {
51001
- var tmp_5;
51002
- if (maxCurrentPoints > 0) {
51003
- tmp_5 = pointsMode.value / maxCurrentPoints;
51004
- } else {
51005
- tmp_5 = 1.0;
51006
- }
51007
- var scaleFactor = tmp_5;
51008
- var tmp_6;
51009
- if (currentPoints === maxCurrentPoints) {
51010
- tmp_6 = pointsMode.value;
51011
- } else {
51012
- tmp_6 = numberToInt(currentPoints * scaleFactor);
51013
- }
51014
- tmp_4 = tmp_6;
50980
+ tmp_2 = AgentType_HUMAN_getInstance();
51015
50981
  }
51016
- var finalGamePoints = tmp_4;
51017
- var tmp$ret$7 = mapToRatingInput(item, isWinner, agentType, finalGamePoints);
51018
- destination.j(tmp$ret$7);
50982
+ var agentType = tmp_2;
50983
+ var finalGamePoints = isLeavingPlayer ? 0 : isWinner ? maxScore : item_0.q75_1.d7c_1;
50984
+ var tmp$ret$9 = mapToRatingInput(item_0, isWinner, agentType, finalGamePoints);
50985
+ destination_1.j(tmp$ret$9);
51019
50986
  }
51020
- var ratingInputs = destination;
50987
+ var ratingInputs = destination_1;
51021
50988
  var results = this.x9j(ratingInputs, playersMode, pointsMode, ratingConfig);
51022
- var tmp$ret$11;
51023
- $l$block_1: {
50989
+ var tmp$ret$13;
50990
+ $l$block: {
51024
50991
  // Inline function 'kotlin.collections.firstOrNull' call
51025
- var _iterator__ex2g4s_1 = results.l();
51026
- while (_iterator__ex2g4s_1.m()) {
51027
- var element_0 = _iterator__ex2g4s_1.n();
50992
+ var _iterator__ex2g4s_2 = results.l();
50993
+ while (_iterator__ex2g4s_2.m()) {
50994
+ var element_0 = _iterator__ex2g4s_2.n();
51028
50995
  if (element_0.t7h_1 === leavingPlayer.playerId) {
51029
- tmp$ret$11 = element_0;
51030
- break $l$block_1;
50996
+ tmp$ret$13 = element_0;
50997
+ break $l$block;
51031
50998
  }
51032
50999
  }
51033
- tmp$ret$11 = null;
51000
+ tmp$ret$13 = null;
51034
51001
  }
51035
- return tmp$ret$11;
51002
+ return tmp$ret$13;
51036
51003
  };
51037
51004
  protoOf(UserRatingInteractor).a9k = function (leavingPlayer, allPlayers, playersMode, pointsMode, ratingConfig, $super) {
51038
51005
  ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
@@ -57181,7 +57148,7 @@
57181
57148
  // Inline function 'kotlin.let' call
57182
57149
  var tmp0_asyncProvider = _get_asyncProvider__jbpyhw_0(this);
57183
57150
  var tmp1_conversationCache = _get_conversationCache__95j15a(this);
57184
- this_0.j(botChatPutCardMiddleware(tmp3_safe_receiver, tmp1_conversationCache, tmp0_asyncProvider, isEnableBotForPlayer));
57151
+ this_0.j(botChatMiddleware(tmp3_safe_receiver, tmp1_conversationCache, tmp0_asyncProvider, isEnableBotForPlayer));
57185
57152
  }
57186
57153
  }
57187
57154
  return this_0.e3();
@@ -58085,9 +58052,9 @@
58085
58052
  return Unit_instance;
58086
58053
  };
58087
58054
  }
58088
- function botChatPutCardMiddleware(botChatInteractor, conversationCache, asyncProvider, isEnableBotChatForPlayer) {
58055
+ function botChatMiddleware(botChatInteractor, conversationCache, asyncProvider, isEnableBotChatForPlayer) {
58089
58056
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
58090
- return new botChatPutCardMiddleware$$inlined$middlewareForActionType$1(conversationCache, botChatInteractor, asyncProvider, isEnableBotChatForPlayer);
58057
+ return new botChatMiddleware$$inlined$middlewareForActionType$1(conversationCache, botChatInteractor, asyncProvider, isEnableBotChatForPlayer);
58091
58058
  }
58092
58059
  function shouldGenerateRandomMessage() {
58093
58060
  return false;
@@ -58095,7 +58062,7 @@
58095
58062
  function handleRandomMessage(store, playerId, botChatInteractor, asyncProvider, isEnableBotChatForPlayer, triggerReason) {
58096
58063
  asyncProvider.f6l(VOID, handleRandomMessage$slambda_0(store, botChatInteractor, playerId, triggerReason, isEnableBotChatForPlayer, null));
58097
58064
  }
58098
- function botChatPutCardMiddleware$o$handle$slambda($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
58065
+ function botChatMiddleware$o$handle$slambda($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
58099
58066
  this.g9t_1 = $botChatInteractor;
58100
58067
  this.h9t_1 = $store;
58101
58068
  this.i9t_1 = $messageText;
@@ -58103,16 +58070,16 @@
58103
58070
  this.k9t_1 = $isEnableBotChatForPlayer;
58104
58071
  CoroutineImpl.call(this, resultContinuation);
58105
58072
  }
58106
- protoOf(botChatPutCardMiddleware$o$handle$slambda).j29 = function ($this$launchDefault, $completion) {
58073
+ protoOf(botChatMiddleware$o$handle$slambda).j29 = function ($this$launchDefault, $completion) {
58107
58074
  var tmp = this.k29($this$launchDefault, $completion);
58108
58075
  tmp.u8_1 = Unit_instance;
58109
58076
  tmp.v8_1 = null;
58110
58077
  return tmp.a9();
58111
58078
  };
58112
- protoOf(botChatPutCardMiddleware$o$handle$slambda).i9 = function (p1, $completion) {
58079
+ protoOf(botChatMiddleware$o$handle$slambda).i9 = function (p1, $completion) {
58113
58080
  return this.j29((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
58114
58081
  };
58115
- protoOf(botChatPutCardMiddleware$o$handle$slambda).a9 = function () {
58082
+ protoOf(botChatMiddleware$o$handle$slambda).a9 = function () {
58116
58083
  var suspendResult = this.u8_1;
58117
58084
  $sm: do
58118
58085
  try {
@@ -58157,29 +58124,29 @@
58157
58124
  }
58158
58125
  while (true);
58159
58126
  };
58160
- protoOf(botChatPutCardMiddleware$o$handle$slambda).k29 = function ($this$launchDefault, completion) {
58161
- var i = new botChatPutCardMiddleware$o$handle$slambda(this.g9t_1, this.h9t_1, this.i9t_1, this.j9t_1, this.k9t_1, completion);
58127
+ protoOf(botChatMiddleware$o$handle$slambda).k29 = function ($this$launchDefault, completion) {
58128
+ var i = new botChatMiddleware$o$handle$slambda(this.g9t_1, this.h9t_1, this.i9t_1, this.j9t_1, this.k9t_1, completion);
58162
58129
  i.l9t_1 = $this$launchDefault;
58163
58130
  return i;
58164
58131
  };
58165
- function botChatPutCardMiddleware$o$handle$slambda_0($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
58166
- var i = new botChatPutCardMiddleware$o$handle$slambda($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation);
58132
+ function botChatMiddleware$o$handle$slambda_0($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
58133
+ var i = new botChatMiddleware$o$handle$slambda($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation);
58167
58134
  var l = function ($this$launchDefault, $completion) {
58168
58135
  return i.j29($this$launchDefault, $completion);
58169
58136
  };
58170
58137
  l.$arity = 1;
58171
58138
  return l;
58172
58139
  }
58173
- function botChatPutCardMiddleware$$inlined$middlewareForActionType$1($conversationCache, $botChatInteractor, $asyncProvider, $isEnableBotChatForPlayer) {
58140
+ function botChatMiddleware$$inlined$middlewareForActionType$1($conversationCache, $botChatInteractor, $asyncProvider, $isEnableBotChatForPlayer) {
58174
58141
  this.m9t_1 = $conversationCache;
58175
58142
  this.n9t_1 = $botChatInteractor;
58176
58143
  this.o9t_1 = $asyncProvider;
58177
58144
  this.p9t_1 = $isEnableBotChatForPlayer;
58178
58145
  }
58179
- protoOf(botChatPutCardMiddleware$$inlined$middlewareForActionType$1).c6p = function (action) {
58146
+ protoOf(botChatMiddleware$$inlined$middlewareForActionType$1).c6p = function (action) {
58180
58147
  return action instanceof MechanicAction;
58181
58148
  };
58182
- protoOf(botChatPutCardMiddleware$$inlined$middlewareForActionType$1).r6q = function (store, next, action) {
58149
+ protoOf(botChatMiddleware$$inlined$middlewareForActionType$1).r6q = function (store, next, action) {
58183
58150
  var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
58184
58151
  next(action_0);
58185
58152
  if (action_0 instanceof MessageMechanicAction) {
@@ -58226,7 +58193,7 @@
58226
58193
  }
58227
58194
  var messageText = tmp_0;
58228
58195
  if (!(messageText == null)) {
58229
- this.o9t_1.f6l(VOID, botChatPutCardMiddleware$o$handle$slambda_0(this.n9t_1, store, messageText, action_0, this.p9t_1, null));
58196
+ this.o9t_1.f6l(VOID, botChatMiddleware$o$handle$slambda_0(this.n9t_1, store, messageText, action_0, this.p9t_1, null));
58230
58197
  }
58231
58198
  }
58232
58199
  }
@@ -58234,7 +58201,7 @@
58234
58201
  }
58235
58202
  }
58236
58203
  };
58237
- protoOf(botChatPutCardMiddleware$$inlined$middlewareForActionType$1).b6p = function (store, next, action) {
58204
+ protoOf(botChatMiddleware$$inlined$middlewareForActionType$1).b6p = function (store, next, action) {
58238
58205
  return this.r6q(store, next, action);
58239
58206
  };
58240
58207
  function handleRandomMessage$slambda($store, $botChatInteractor, $playerId, $triggerReason, $isEnableBotChatForPlayer, resultContinuation) {