client_plugin_logic_deb 1.8.424 → 1.8.426
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.
- package/Logic_Debertz-client_plugin.d.ts +5 -2
- package/Logic_Debertz-client_plugin.js +1864 -1864
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +7444 -7432
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +148 -148
- package/Logic_Debertz-game_server.js +157 -150
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
initMetadataForClass(ObserverStrategy, 'ObserverStrategy', VOID, Enum);
|
|
1061
1061
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
1062
1062
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
1063
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
1063
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
1064
1064
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
1065
1065
|
initMetadataForLambda(TableSceneImpl$observeControls$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1066
1066
|
initMetadataForCoroutine($collectCOROUTINE$_41, CoroutineImpl);
|
|
@@ -3794,16 +3794,16 @@
|
|
|
3794
3794
|
return new PlayerStateViewModel(tmp5_playerId, tmp10_tag, tmp11_state, tmp9_connectionState, tmp6_startFromTime, tmp7_playerTurnTimeout, tmp8_waitPlayerUntilTime);
|
|
3795
3795
|
}
|
|
3796
3796
|
function toVMV2(_this__u8e3s4, playerIndex, highlightedCards) {
|
|
3797
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
3798
|
-
var tmp1_card = _this__u8e3s4.
|
|
3799
|
-
var tmp2_position = _this__u8e3s4.
|
|
3800
|
-
var tmp3_highlighted = highlightedCards.u1(_this__u8e3s4.
|
|
3797
|
+
var tmp0_playerId = _this__u8e3s4.f7p_1;
|
|
3798
|
+
var tmp1_card = _this__u8e3s4.h7p_1;
|
|
3799
|
+
var tmp2_position = _this__u8e3s4.g7p_1;
|
|
3800
|
+
var tmp3_highlighted = highlightedCards.u1(_this__u8e3s4.h7p_1);
|
|
3801
3801
|
return new CardOnTableViewModelV2(playerIndex, tmp0_playerId, tmp2_position, tmp3_highlighted, tmp1_card);
|
|
3802
3802
|
}
|
|
3803
3803
|
function toVM_0(_this__u8e3s4, playerIndex) {
|
|
3804
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
3805
|
-
var tmp1_card = _this__u8e3s4.
|
|
3806
|
-
var tmp2_position = _this__u8e3s4.
|
|
3804
|
+
var tmp0_playerId = _this__u8e3s4.f7p_1;
|
|
3805
|
+
var tmp1_card = _this__u8e3s4.h7p_1;
|
|
3806
|
+
var tmp2_position = _this__u8e3s4.g7p_1;
|
|
3807
3807
|
return new CardOnTableViewModel(playerIndex, tmp0_playerId, tmp2_position, tmp1_card);
|
|
3808
3808
|
}
|
|
3809
3809
|
function mapToClause(_this__u8e3s4) {
|
|
@@ -3930,7 +3930,7 @@
|
|
|
3930
3930
|
var _iterator__ex2g4s = this_0.l();
|
|
3931
3931
|
while (_iterator__ex2g4s.m()) {
|
|
3932
3932
|
var item = _iterator__ex2g4s.n();
|
|
3933
|
-
var tmp$ret$0 = toVM_0(item, getPlayerIndex(players, item.
|
|
3933
|
+
var tmp$ret$0 = toVM_0(item, getPlayerIndex(players, item.f7p_1));
|
|
3934
3934
|
destination.j(tmp$ret$0);
|
|
3935
3935
|
}
|
|
3936
3936
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, destination);
|
|
@@ -3965,9 +3965,9 @@
|
|
|
3965
3965
|
var _iterator__ex2g4s = points.l();
|
|
3966
3966
|
while (_iterator__ex2g4s.m()) {
|
|
3967
3967
|
var item = _iterator__ex2g4s.n();
|
|
3968
|
-
var tmp0_points = item.
|
|
3968
|
+
var tmp0_points = item.f8f_1;
|
|
3969
3969
|
// Inline function 'kotlin.collections.map' call
|
|
3970
|
-
var this_0 = item.
|
|
3970
|
+
var this_0 = item.e8f_1;
|
|
3971
3971
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3972
3972
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3973
3973
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
@@ -5710,22 +5710,22 @@
|
|
|
5710
5710
|
return tmp_0 instanceof Expectant ? tmp_0 : THROW_CCE();
|
|
5711
5711
|
}
|
|
5712
5712
|
function mapToExpectant_0(_this__u8e3s4, wrapper) {
|
|
5713
|
-
return new RestartGameExpectant(wrapper.faq_1, _this__u8e3s4.
|
|
5713
|
+
return new RestartGameExpectant(wrapper.faq_1, _this__u8e3s4.r8h_1);
|
|
5714
5714
|
}
|
|
5715
5715
|
function mapToExpectant_1(_this__u8e3s4, wrapper) {
|
|
5716
5716
|
return new TeamsDataExpectant(wrapper.faq_1, _this__u8e3s4.team1, _this__u8e3s4.team2);
|
|
5717
5717
|
}
|
|
5718
5718
|
function mapToExpectant_2(_this__u8e3s4, wrapper) {
|
|
5719
|
-
return new TrumpExpectant(wrapper.faq_1, _this__u8e3s4.
|
|
5719
|
+
return new TrumpExpectant(wrapper.faq_1, _this__u8e3s4.l8i_1);
|
|
5720
5720
|
}
|
|
5721
5721
|
function mapToExpectant_3(_this__u8e3s4, wrapper) {
|
|
5722
|
-
return new CombinationChoiceExpectant(wrapper.faq_1, _this__u8e3s4.
|
|
5722
|
+
return new CombinationChoiceExpectant(wrapper.faq_1, _this__u8e3s4.p8i_1, _this__u8e3s4.n8i_1, _this__u8e3s4.o8i_1);
|
|
5723
5723
|
}
|
|
5724
5724
|
function mapToExpectant_4(_this__u8e3s4, wrapper) {
|
|
5725
|
-
return new PickUpBribeExpectant(wrapper.faq_1, _this__u8e3s4.
|
|
5725
|
+
return new PickUpBribeExpectant(wrapper.faq_1, _this__u8e3s4.x8i_1, _this__u8e3s4.y8i_1, _this__u8e3s4.z8i_1);
|
|
5726
5726
|
}
|
|
5727
5727
|
function mapToExpectant_5(_this__u8e3s4, wrapper) {
|
|
5728
|
-
return new WinnerCombinationsExpectant(wrapper.faq_1, _this__u8e3s4.
|
|
5728
|
+
return new WinnerCombinationsExpectant(wrapper.faq_1, _this__u8e3s4.e8j_1);
|
|
5729
5729
|
}
|
|
5730
5730
|
function InterceptableActionWrapper(id, action, isFinished) {
|
|
5731
5731
|
isFinished = isFinished === VOID ? false : isFinished;
|
|
@@ -15616,7 +15616,7 @@
|
|
|
15616
15616
|
tmp_3 = null;
|
|
15617
15617
|
}
|
|
15618
15618
|
var tmp$ret$9 = tmp_3;
|
|
15619
|
-
return new PersistentTableStateDto(table.version, tmp, table.sceneInfo.
|
|
15619
|
+
return new PersistentTableStateDto(table.version, tmp, table.sceneInfo.j8k_1, tmp_0, tmp_1, tmp_2, tmp$ret$9);
|
|
15620
15620
|
}
|
|
15621
15621
|
return new PersistentTableStateDto(_this__u8e3s4.maj_1, _this__u8e3s4.naj_1);
|
|
15622
15622
|
}
|
|
@@ -19016,7 +19016,7 @@
|
|
|
19016
19016
|
var table = state.b72();
|
|
19017
19017
|
if (isInterface(action, InSceneAction)) {
|
|
19018
19018
|
var tmp;
|
|
19019
|
-
if (action.a9p(table.sceneInfo.
|
|
19019
|
+
if (action.a9p(table.sceneInfo.j8k_1)) {
|
|
19020
19020
|
tmp = new AvoidBuffer('CheckSceneBufferUseCase.inScene');
|
|
19021
19021
|
} else {
|
|
19022
19022
|
tmp = new PutInBuffer('CheckSceneBufferUseCase.inScene');
|
|
@@ -19053,7 +19053,7 @@
|
|
|
19053
19053
|
}
|
|
19054
19054
|
protoOf(PassErrorActionBufferUseCase).kb7 = function (state, action) {
|
|
19055
19055
|
if (action instanceof ErrorAction) {
|
|
19056
|
-
var reason = action.
|
|
19056
|
+
var reason = action.i8j_1.n89_1;
|
|
19057
19057
|
return checkTerminatedReason(state.tableOrNull, false, reason, 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
19058
19058
|
}
|
|
19059
19059
|
return new AvoidBuffer('PassErrorActionBufferUseCase');
|
|
@@ -19249,7 +19249,7 @@
|
|
|
19249
19249
|
if (!mustConsider)
|
|
19250
19250
|
return null;
|
|
19251
19251
|
var isPartnerLeads = config.playersMode.isTeamGame && isPartnerOf($this, winCard, player, players, $this.eb8_1);
|
|
19252
|
-
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.
|
|
19252
|
+
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.h7p_1, trump, firstSuit);
|
|
19253
19253
|
if (isPartnerLeads) {
|
|
19254
19254
|
var partnerRule = config.rules.trumpCardStepPartnerMode;
|
|
19255
19255
|
switch (partnerRule.q2_1) {
|
|
@@ -19258,7 +19258,7 @@
|
|
|
19258
19258
|
return null;
|
|
19259
19259
|
case 1:
|
|
19260
19260
|
if (isPlayerCardLowerWinCard) {
|
|
19261
|
-
var playerHasHigher = hasHigherTrump($this, player.n75_1, winCard.
|
|
19261
|
+
var playerHasHigher = hasHigherTrump($this, player.n75_1, winCard.h7p_1, trump, putPlayerCard, firstSuit);
|
|
19262
19262
|
return playerHasHigher ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
19263
19263
|
}
|
|
19264
19264
|
|
|
@@ -19269,7 +19269,7 @@
|
|
|
19269
19269
|
}
|
|
19270
19270
|
} else {
|
|
19271
19271
|
if (isPlayerCardLowerWinCard) {
|
|
19272
|
-
var playerHasHigher_0 = hasHigherTrump($this, player.n75_1, winCard.
|
|
19272
|
+
var playerHasHigher_0 = hasHigherTrump($this, player.n75_1, winCard.h7p_1, trump, putPlayerCard, firstSuit);
|
|
19273
19273
|
return playerHasHigher_0 ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
19274
19274
|
}
|
|
19275
19275
|
}
|
|
@@ -19302,7 +19302,7 @@
|
|
|
19302
19302
|
return tmp$ret$0;
|
|
19303
19303
|
}
|
|
19304
19304
|
function isPartnerOf($this, _this__u8e3s4, player, all, teams) {
|
|
19305
|
-
return _this__u8e3s4.
|
|
19305
|
+
return _this__u8e3s4.f7p_1 === teams.b9a(player.playerId, all).playerId;
|
|
19306
19306
|
}
|
|
19307
19307
|
function hasHigherTrump($this, _this__u8e3s4, winningCard, trump, playedCard, firstSuit) {
|
|
19308
19308
|
var tmp$ret$0;
|
|
@@ -19344,7 +19344,7 @@
|
|
|
19344
19344
|
tmp = tmp0_elvis_lhs;
|
|
19345
19345
|
}
|
|
19346
19346
|
var firstOnTable = tmp;
|
|
19347
|
-
var firstSuit = firstOnTable.
|
|
19347
|
+
var firstSuit = firstOnTable.h7p_1.r5t();
|
|
19348
19348
|
var playerHasSuit = hasSuit(this, player.n75_1, firstSuit);
|
|
19349
19349
|
var playerHasTrump = hasSuit(this, player.n75_1, trump);
|
|
19350
19350
|
var tmp$ret$0;
|
|
@@ -19363,7 +19363,7 @@
|
|
|
19363
19363
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
19364
19364
|
while (_iterator__ex2g4s.m()) {
|
|
19365
19365
|
var element = _iterator__ex2g4s.n();
|
|
19366
|
-
if (element.
|
|
19366
|
+
if (element.h7p_1.r5t().equals(trump)) {
|
|
19367
19367
|
tmp$ret$0 = true;
|
|
19368
19368
|
break $l$block_0;
|
|
19369
19369
|
}
|
|
@@ -19966,9 +19966,9 @@
|
|
|
19966
19966
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.round;
|
|
19967
19967
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.roundNumber;
|
|
19968
19968
|
var tmp_0 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
19969
|
-
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.
|
|
19969
|
+
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.j8k_1;
|
|
19970
19970
|
var tmp_1 = tmp6_elvis_lhs == null ? 'WAITING' : tmp6_elvis_lhs;
|
|
19971
|
-
suspendResult = tmp0.i24(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.
|
|
19971
|
+
suspendResult = tmp0.i24(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.k8k_1), this);
|
|
19972
19972
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
19973
19973
|
return suspendResult;
|
|
19974
19974
|
}
|
|
@@ -20568,7 +20568,7 @@
|
|
|
20568
20568
|
var value = this.vbh_1;
|
|
20569
20569
|
this.s8_1 = 1;
|
|
20570
20570
|
var tmp_0;
|
|
20571
|
-
if (get_isChoosePartnerScene(value.b72().sceneInfo.
|
|
20571
|
+
if (get_isChoosePartnerScene(value.b72().sceneInfo.j8k_1)) {
|
|
20572
20572
|
tmp_0 = null;
|
|
20573
20573
|
} else {
|
|
20574
20574
|
tmp_0 = this.ubh_1.lba_1.j9j(value.b72().players, value.b72().config);
|
|
@@ -21967,7 +21967,7 @@
|
|
|
21967
21967
|
this.t8_1 = 1;
|
|
21968
21968
|
var tmp_0 = this.jbq_1.dispatch;
|
|
21969
21969
|
var tmp0_safe_receiver = this.hbq_1.hba_1.h6f().b71_1;
|
|
21970
|
-
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
21970
|
+
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s8m_1));
|
|
21971
21971
|
return Unit_instance;
|
|
21972
21972
|
} else if (tmp === 1) {
|
|
21973
21973
|
throw this.v8_1;
|
|
@@ -23348,7 +23348,7 @@
|
|
|
23348
23348
|
case 1:
|
|
23349
23349
|
var $this$transform = this.nby_1;
|
|
23350
23350
|
var value = this.mby_1;
|
|
23351
|
-
if (value.b72().sceneInfo.
|
|
23351
|
+
if (value.b72().sceneInfo.j8k_1 === 'CALC_POINTS') {
|
|
23352
23352
|
this.s8_1 = 3;
|
|
23353
23353
|
suspendResult = $this$transform.i24(value, this);
|
|
23354
23354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -23467,7 +23467,7 @@
|
|
|
23467
23467
|
var tmp_0;
|
|
23468
23468
|
if (isShown) {
|
|
23469
23469
|
var tmp0_safe_receiver = value.b71_1;
|
|
23470
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
23470
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r8m_1;
|
|
23471
23471
|
var tmp_1;
|
|
23472
23472
|
if (tmp1_safe_receiver == null) {
|
|
23473
23473
|
tmp_1 = null;
|
|
@@ -23527,7 +23527,7 @@
|
|
|
23527
23527
|
var tmp0_0 = value.b72();
|
|
23528
23528
|
var tmp$ret$0;
|
|
23529
23529
|
l$ret$1: do {
|
|
23530
|
-
var sceneData = tmp0_0.sceneInfo.
|
|
23530
|
+
var sceneData = tmp0_0.sceneInfo.m8k_1;
|
|
23531
23531
|
if (sceneData instanceof CalcPointsSceneData) {
|
|
23532
23532
|
tmp$ret$0 = sceneData;
|
|
23533
23533
|
break l$ret$1;
|
|
@@ -23547,7 +23547,7 @@
|
|
|
23547
23547
|
this.ibz_1.obz_1.w(VOID, "observeControlsModeCalcPoints: Scene data can't be null");
|
|
23548
23548
|
}
|
|
23549
23549
|
var tmp8_mode = CalcPointsControlsMode_READY_CONTROLS_getInstance();
|
|
23550
|
-
var tmp6_safe_receiver = sceneData_0 == null ? null : sceneData_0.
|
|
23550
|
+
var tmp6_safe_receiver = sceneData_0 == null ? null : sceneData_0.e7r_1;
|
|
23551
23551
|
var tmp_9;
|
|
23552
23552
|
if (tmp6_safe_receiver == null) {
|
|
23553
23553
|
tmp_9 = null;
|
|
@@ -23642,7 +23642,7 @@
|
|
|
23642
23642
|
var tmp$ret$0;
|
|
23643
23643
|
$l$block_0: {
|
|
23644
23644
|
// Inline function 'games.jass.logic.client.utils.getSceneClientDataOrNull' call
|
|
23645
|
-
var sceneData = this_0.sceneInfo.
|
|
23645
|
+
var sceneData = this_0.sceneInfo.m8k_1;
|
|
23646
23646
|
if (sceneData instanceof CalcPointsSceneData) {
|
|
23647
23647
|
tmp$ret$0 = sceneData;
|
|
23648
23648
|
break $l$block_0;
|
|
@@ -23659,22 +23659,22 @@
|
|
|
23659
23659
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
23660
23660
|
var tmp_0;
|
|
23661
23661
|
if (tmp0_elvis_lhs == null) {
|
|
23662
|
-
throw new MechanicException('Required ' + getKClass(CalcPointsSceneData).ea() + ', current scene is ' + toString_0(this_0.sceneInfo.
|
|
23662
|
+
throw new MechanicException('Required ' + getKClass(CalcPointsSceneData).ea() + ', current scene is ' + toString_0(this_0.sceneInfo.m8k_1));
|
|
23663
23663
|
} else {
|
|
23664
23664
|
tmp_0 = tmp0_elvis_lhs;
|
|
23665
23665
|
}
|
|
23666
23666
|
return tmp_0;
|
|
23667
23667
|
}
|
|
23668
23668
|
function mapPoints($this, _this__u8e3s4, playersMode, players, gameHistory) {
|
|
23669
|
-
var tmp = getRoundPoints($this, _this__u8e3s4.
|
|
23669
|
+
var tmp = getRoundPoints($this, _this__u8e3s4.g7r_1, playersMode);
|
|
23670
23670
|
// Inline function 'kotlin.collections.map' call
|
|
23671
|
-
var this_0 = _this__u8e3s4.
|
|
23671
|
+
var this_0 = _this__u8e3s4.g7r_1;
|
|
23672
23672
|
// Inline function 'kotlin.collections.mapTo' call
|
|
23673
23673
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
23674
23674
|
var _iterator__ex2g4s = this_0.l();
|
|
23675
23675
|
while (_iterator__ex2g4s.m()) {
|
|
23676
23676
|
var item = _iterator__ex2g4s.n();
|
|
23677
|
-
var tmp$ret$0 = toVM(item, players, _this__u8e3s4.
|
|
23677
|
+
var tmp$ret$0 = toVM(item, players, _this__u8e3s4.e7r_1);
|
|
23678
23678
|
destination.j(tmp$ret$0);
|
|
23679
23679
|
}
|
|
23680
23680
|
var tmp_0 = destination;
|
|
@@ -23861,10 +23861,10 @@
|
|
|
23861
23861
|
return mapPoints(this, _get_scene__bi9f7f(this), table.config.playersMode, table.players, table.gameHistory);
|
|
23862
23862
|
};
|
|
23863
23863
|
protoOf(CalcPointsSceneImpl).qc0 = function () {
|
|
23864
|
-
return _get_scene__bi9f7f(this).
|
|
23864
|
+
return _get_scene__bi9f7f(this).d7r_1;
|
|
23865
23865
|
};
|
|
23866
23866
|
protoOf(CalcPointsSceneImpl).rc0 = function () {
|
|
23867
|
-
return _get_scene__bi9f7f(this).
|
|
23867
|
+
return _get_scene__bi9f7f(this).e7r_1;
|
|
23868
23868
|
};
|
|
23869
23869
|
protoOf(CalcPointsSceneImpl).sc0 = function () {
|
|
23870
23870
|
this.nbz_1.z71(CalcPointsSceneImpl$ready$slambda_0(this, null));
|
|
@@ -25351,7 +25351,7 @@
|
|
|
25351
25351
|
case 1:
|
|
25352
25352
|
var $this$transform = this.dcb_1;
|
|
25353
25353
|
var value = this.ccb_1;
|
|
25354
|
-
if (value.b72().sceneInfo.
|
|
25354
|
+
if (value.b72().sceneInfo.j8k_1 === 'CHOOSE_PARTNER') {
|
|
25355
25355
|
this.s8_1 = 3;
|
|
25356
25356
|
suspendResult = $this$transform.i24(value, this);
|
|
25357
25357
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -26003,7 +26003,7 @@
|
|
|
26003
26003
|
var tmp0 = this.bcf_1;
|
|
26004
26004
|
var value = this.ccf_1;
|
|
26005
26005
|
this.s8_1 = 1;
|
|
26006
|
-
suspendResult = tmp0.i24(value.sceneInfo.
|
|
26006
|
+
suspendResult = tmp0.i24(value.sceneInfo.j8k_1, this);
|
|
26007
26007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26008
26008
|
return suspendResult;
|
|
26009
26009
|
}
|
|
@@ -26622,7 +26622,7 @@
|
|
|
26622
26622
|
tmp$ret$0 = false;
|
|
26623
26623
|
break l$ret$1;
|
|
26624
26624
|
}
|
|
26625
|
-
var sceneId = value.b72().sceneInfo.
|
|
26625
|
+
var sceneId = value.b72().sceneInfo.j8k_1;
|
|
26626
26626
|
if (!get_isSceneWithCards(sceneId)) {
|
|
26627
26627
|
tmp$ret$0 = false;
|
|
26628
26628
|
break l$ret$1;
|
|
@@ -28805,7 +28805,7 @@
|
|
|
28805
28805
|
case 1:
|
|
28806
28806
|
var $this$transform = this.ncx_1;
|
|
28807
28807
|
var value = this.mcx_1;
|
|
28808
|
-
if (value.b72().sceneInfo.
|
|
28808
|
+
if (value.b72().sceneInfo.j8k_1 === 'EARN_POINTS') {
|
|
28809
28809
|
this.s8_1 = 3;
|
|
28810
28810
|
suspendResult = $this$transform.i24(value, this);
|
|
28811
28811
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -29525,7 +29525,7 @@
|
|
|
29525
29525
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
29526
29526
|
while (_iterator__ex2g4s.m()) {
|
|
29527
29527
|
var element = _iterator__ex2g4s.n();
|
|
29528
|
-
if (element.
|
|
29528
|
+
if (element.f7p_1 === currentPlayerId) {
|
|
29529
29529
|
tmp$ret$0 = false;
|
|
29530
29530
|
break $l$block_0;
|
|
29531
29531
|
}
|
|
@@ -29549,8 +29549,8 @@
|
|
|
29549
29549
|
var _iterator__ex2g4s_0 = updatedCardsOnTable.l();
|
|
29550
29550
|
while (_iterator__ex2g4s_0.m()) {
|
|
29551
29551
|
var item = _iterator__ex2g4s_0.n();
|
|
29552
|
-
var highlightedCards = $this.wct_1.md2(item.
|
|
29553
|
-
var tmp$ret$2 = toVMV2(item, getPlayerIndex(table.players, item.
|
|
29552
|
+
var highlightedCards = $this.wct_1.md2(item.f7p_1 === currentPlayerId, clientPayload.ead_1);
|
|
29553
|
+
var tmp$ret$2 = toVMV2(item, getPlayerIndex(table.players, item.f7p_1), highlightedCards);
|
|
29554
29554
|
destination.j(tmp$ret$2);
|
|
29555
29555
|
}
|
|
29556
29556
|
return destination;
|
|
@@ -29559,7 +29559,7 @@
|
|
|
29559
29559
|
if (interceptedPickUpBribeMechanicAction == null)
|
|
29560
29560
|
return null;
|
|
29561
29561
|
var tmp;
|
|
29562
|
-
if (interceptedPickUpBribeMechanicAction.gaq_1.
|
|
29562
|
+
if (interceptedPickUpBribeMechanicAction.gaq_1.y8i_1 === 0) {
|
|
29563
29563
|
// Inline function 'kotlin.collections.flatMap' call
|
|
29564
29564
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
29565
29565
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -30414,13 +30414,13 @@
|
|
|
30414
30414
|
var tmp_0;
|
|
30415
30415
|
if (tmp0_elvis_lhs == null) {
|
|
30416
30416
|
var tmp2_safe_receiver = expectant == null ? null : expectant.gaq_1;
|
|
30417
|
-
tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
30417
|
+
tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.l8i_1;
|
|
30418
30418
|
} else {
|
|
30419
30419
|
tmp_0 = tmp0_elvis_lhs;
|
|
30420
30420
|
}
|
|
30421
30421
|
|
|
30422
30422
|
var selectedRoundTrump = tmp_0;
|
|
30423
|
-
var cardDeckTrump = value.b72().requireCardDeck.
|
|
30423
|
+
var cardDeckTrump = value.b72().requireCardDeck.e87_1.r5t();
|
|
30424
30424
|
var tmp_1;
|
|
30425
30425
|
if (selectedRoundTrump == null) {
|
|
30426
30426
|
tmp_1 = new TrumpViewModel(cardDeckTrump, false, get_currentPlayer(value.b72()).o75_1.a7b_1);
|
|
@@ -32125,8 +32125,8 @@
|
|
|
32125
32125
|
var playersCardsToDistribute = flatten(destination);
|
|
32126
32126
|
var tmp1_elvis_lhs = cardDeck == null ? null : cardDeck.b94();
|
|
32127
32127
|
var tmp4_otherCardsCount = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
32128
|
-
var tmp5_trumpCard = cardDeck == null ? null : cardDeck.
|
|
32129
|
-
var tmp6_topOpenedCard = cardDeck == null ? null : cardDeck.
|
|
32128
|
+
var tmp5_trumpCard = cardDeck == null ? null : cardDeck.e87_1;
|
|
32129
|
+
var tmp6_topOpenedCard = cardDeck == null ? null : cardDeck.f87_1;
|
|
32130
32130
|
var tmp7_isUsed = isCardDeckUsed($this, table, clientPayload);
|
|
32131
32131
|
return new CardDeckViewModel(tmp4_otherCardsCount, tmp5_trumpCard, tmp6_topOpenedCard, tmp7_isUsed, playersCardsToDistribute);
|
|
32132
32132
|
}
|
|
@@ -32152,10 +32152,10 @@
|
|
|
32152
32152
|
}
|
|
32153
32153
|
}
|
|
32154
32154
|
var distributionTransition = firstOrNull(destination);
|
|
32155
|
-
return new CardDeckViewModelV2(cardDeck.b94(), cardDeck.
|
|
32155
|
+
return new CardDeckViewModelV2(cardDeck.b94(), cardDeck.e87_1, cardDeck.f87_1, getCardDeckState($this, table, clientPayload), distributionTransition);
|
|
32156
32156
|
}
|
|
32157
32157
|
function isCardDeckUsed($this, table, clientPayload) {
|
|
32158
|
-
switch (table.sceneInfo.
|
|
32158
|
+
switch (table.sceneInfo.j8k_1) {
|
|
32159
32159
|
case 'TRADE':
|
|
32160
32160
|
return false;
|
|
32161
32161
|
case 'EARN_POINTS':
|
|
@@ -32170,7 +32170,7 @@
|
|
|
32170
32170
|
}
|
|
32171
32171
|
function getCardDeckState($this, table, clientPayload) {
|
|
32172
32172
|
var tmp;
|
|
32173
|
-
switch (table.sceneInfo.
|
|
32173
|
+
switch (table.sceneInfo.j8k_1) {
|
|
32174
32174
|
case 'TRADE':
|
|
32175
32175
|
tmp = CardDeckState_READY_TO_DEAL_getInstance();
|
|
32176
32176
|
break;
|
|
@@ -32269,7 +32269,7 @@
|
|
|
32269
32269
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
32270
32270
|
while (_iterator__ex2g4s.m()) {
|
|
32271
32271
|
var element = _iterator__ex2g4s.n();
|
|
32272
|
-
if (element.
|
|
32272
|
+
if (element.f7p_1 === currentPlayerId) {
|
|
32273
32273
|
tmp$ret$0 = false;
|
|
32274
32274
|
break $l$block_0;
|
|
32275
32275
|
}
|
|
@@ -32293,7 +32293,7 @@
|
|
|
32293
32293
|
var _iterator__ex2g4s_0 = updatedCardsOnTable.l();
|
|
32294
32294
|
while (_iterator__ex2g4s_0.m()) {
|
|
32295
32295
|
var item = _iterator__ex2g4s_0.n();
|
|
32296
|
-
var tmp$ret$2 = toVM_0(item, getPlayerIndex(players, item.
|
|
32296
|
+
var tmp$ret$2 = toVM_0(item, getPlayerIndex(players, item.f7p_1));
|
|
32297
32297
|
destination.j(tmp$ret$2);
|
|
32298
32298
|
}
|
|
32299
32299
|
return destination;
|
|
@@ -33246,7 +33246,7 @@
|
|
|
33246
33246
|
case 1:
|
|
33247
33247
|
var $this$transform = this.mdm_1;
|
|
33248
33248
|
var value = this.ldm_1;
|
|
33249
|
-
if (value.b72().isCardDeckExist && value.b72().sceneInfo.
|
|
33249
|
+
if (value.b72().isCardDeckExist && value.b72().sceneInfo.j8k_1 === 'TRADE') {
|
|
33250
33250
|
this.s8_1 = 3;
|
|
33251
33251
|
suspendResult = $this$transform.i24(value, this);
|
|
33252
33252
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -33369,14 +33369,14 @@
|
|
|
33369
33369
|
var player = get_currentPlayer(value.b72());
|
|
33370
33370
|
var isShown = player.m75_1.u6f() && get_clientPayload(value).bad_1;
|
|
33371
33371
|
var tmp_0;
|
|
33372
|
-
if (isShown && value.b72().sceneInfo.
|
|
33372
|
+
if (isShown && value.b72().sceneInfo.l8k_1 === 'PLAYER_TURN') {
|
|
33373
33373
|
var tmp_1;
|
|
33374
33374
|
switch (player.o75_1.a7b_1.q2_1) {
|
|
33375
33375
|
case 0:
|
|
33376
|
-
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_FIRST_CIRCLE_CONTROLS_getInstance(), value.b72().requireCardDeck.
|
|
33376
|
+
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_FIRST_CIRCLE_CONTROLS_getInstance(), value.b72().requireCardDeck.e87_1.r5t(), true);
|
|
33377
33377
|
break;
|
|
33378
33378
|
case 1:
|
|
33379
|
-
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_SECOND_CIRCLE_CONTROLS_getInstance(), value.b72().requireCardDeck.
|
|
33379
|
+
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_SECOND_CIRCLE_CONTROLS_getInstance(), value.b72().requireCardDeck.e87_1.r5t(), true);
|
|
33380
33380
|
break;
|
|
33381
33381
|
case 2:
|
|
33382
33382
|
tmp_1 = new HiddenControlsViewModel();
|
|
@@ -33557,7 +33557,7 @@
|
|
|
33557
33557
|
var currentPlayer = get_currentPlayer(table);
|
|
33558
33558
|
var tmp_0 = this.gdo_1.dispatch;
|
|
33559
33559
|
var tmp0_elvis_lhs = this.edo_1;
|
|
33560
|
-
var tmp3_suit = tmp0_elvis_lhs == null ? table.requireCardDeck.
|
|
33560
|
+
var tmp3_suit = tmp0_elvis_lhs == null ? table.requireCardDeck.e87_1.r5t() : tmp0_elvis_lhs;
|
|
33561
33561
|
var tmp4_playerId = currentPlayer.playerId;
|
|
33562
33562
|
var tmp1_$this = this.ddo_1.jdo_1;
|
|
33563
33563
|
var tmp2_round = table.gameInfo.round;
|
|
@@ -35805,8 +35805,8 @@
|
|
|
35805
35805
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
35806
35806
|
next(action_0);
|
|
35807
35807
|
if (action_0 instanceof SceneActMechanicAction)
|
|
35808
|
-
if (action_0.
|
|
35809
|
-
var tmp0 = action_0.
|
|
35808
|
+
if (action_0.z8h_1 === 'WAITING_ACT') {
|
|
35809
|
+
var tmp0 = action_0.a8i_1;
|
|
35810
35810
|
var tmp$ret$0;
|
|
35811
35811
|
$l$block: {
|
|
35812
35812
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -35817,14 +35817,14 @@
|
|
|
35817
35817
|
throw new MechanicException('Required ' + getKClass(WaitingActData).ea() + ', current act is ' + toString_0(tmp0));
|
|
35818
35818
|
}
|
|
35819
35819
|
var waitingActData = tmp$ret$0;
|
|
35820
|
-
var requestPayload = waitingActData.
|
|
35820
|
+
var requestPayload = waitingActData.j7q_1;
|
|
35821
35821
|
if (!(requestPayload == null)) {
|
|
35822
35822
|
if (requestPayload instanceof CardDeckRequest) {
|
|
35823
|
-
if (this.jds_1 === waitingActData.
|
|
35823
|
+
if (this.jds_1 === waitingActData.g7q()) {
|
|
35824
35824
|
var tmp = store.dispatch;
|
|
35825
35825
|
// Inline function 'kotlin.collections.List' call
|
|
35826
35826
|
// Inline function 'kotlin.collections.MutableList' call
|
|
35827
|
-
var size = requestPayload.
|
|
35827
|
+
var size = requestPayload.h7q_1;
|
|
35828
35828
|
var list = ArrayList_init_$Create$(size);
|
|
35829
35829
|
// Inline function 'kotlin.repeat' call
|
|
35830
35830
|
var inductionVariable = 0;
|
|
@@ -35850,10 +35850,10 @@
|
|
|
35850
35850
|
var _iterator__ex2g4s_0 = destination.l();
|
|
35851
35851
|
while (_iterator__ex2g4s_0.m()) {
|
|
35852
35852
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
35853
|
-
var tmp$ret$9 = Companion_instance_1.
|
|
35853
|
+
var tmp$ret$9 = Companion_instance_1.a8b(item_0);
|
|
35854
35854
|
destination_0.j(tmp$ret$9);
|
|
35855
35855
|
}
|
|
35856
|
-
var tmp3_tag = this.lds_1.p9e(action_0.
|
|
35856
|
+
var tmp3_tag = this.lds_1.p9e(action_0.y8h_1, store.state.b72().gameInfo.round);
|
|
35857
35857
|
tmp(new RequestedCardDecksFromClientAction(destination_0, this.jds_1, false, tmp3_tag));
|
|
35858
35858
|
}
|
|
35859
35859
|
} else {
|
|
@@ -36009,7 +36009,7 @@
|
|
|
36009
36009
|
var _iterator__ex2g4s = combinations.l();
|
|
36010
36010
|
while (_iterator__ex2g4s.m()) {
|
|
36011
36011
|
var item = _iterator__ex2g4s.n();
|
|
36012
|
-
var tmp$ret$0 = item.
|
|
36012
|
+
var tmp$ret$0 = item.d7q_1;
|
|
36013
36013
|
destination.j(tmp$ret$0);
|
|
36014
36014
|
}
|
|
36015
36015
|
tmp_0(new MessageMechanicAction($this.idr_1.c9c(destination, player.l75_1)));
|
|
@@ -36019,7 +36019,7 @@
|
|
|
36019
36019
|
function onCombinationChoiceMessages($this, store, playerId, isAnnounced) {
|
|
36020
36020
|
var state = store.state;
|
|
36021
36021
|
if (isAnnounced) {
|
|
36022
|
-
var tmp0 = state.b72().sceneInfo.
|
|
36022
|
+
var tmp0 = state.b72().sceneInfo.n8k_1;
|
|
36023
36023
|
var tmp$ret$0;
|
|
36024
36024
|
$l$block: {
|
|
36025
36025
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -36033,13 +36033,13 @@
|
|
|
36033
36033
|
var player = getPlayer(state.b72().players, playerId);
|
|
36034
36034
|
var tmp = store.dispatch;
|
|
36035
36035
|
// Inline function 'kotlin.collections.map' call
|
|
36036
|
-
var this_0 = combinationActData.
|
|
36036
|
+
var this_0 = combinationActData.z7p_1;
|
|
36037
36037
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36038
36038
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
36039
36039
|
var _iterator__ex2g4s = this_0.l();
|
|
36040
36040
|
while (_iterator__ex2g4s.m()) {
|
|
36041
36041
|
var item = _iterator__ex2g4s.n();
|
|
36042
|
-
var tmp$ret$1 = item.
|
|
36042
|
+
var tmp$ret$1 = item.d7q_1;
|
|
36043
36043
|
destination.j(tmp$ret$1);
|
|
36044
36044
|
}
|
|
36045
36045
|
tmp(new MessageMechanicAction($this.idr_1.c9c(destination, player.l75_1)));
|
|
@@ -36054,7 +36054,7 @@
|
|
|
36054
36054
|
function onSceneMessages($this, store, action) {
|
|
36055
36055
|
var state = store.state;
|
|
36056
36056
|
var table = state.b72();
|
|
36057
|
-
var tmp0_subject = action.
|
|
36057
|
+
var tmp0_subject = action.u8h_1;
|
|
36058
36058
|
if (tmp0_subject === 'TRADE') {
|
|
36059
36059
|
var tmp;
|
|
36060
36060
|
if (table.config.playersMode.isTeamGame) {
|
|
@@ -36133,8 +36133,8 @@
|
|
|
36133
36133
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0_1));
|
|
36134
36134
|
}
|
|
36135
36135
|
var scene = tmp$ret$6;
|
|
36136
|
-
store.dispatch(new MessageMechanicAction($this.idr_1.b9c(getPlayer(table.players, scene.
|
|
36137
|
-
var randomData = scene.
|
|
36136
|
+
store.dispatch(new MessageMechanicAction($this.idr_1.b9c(getPlayer(table.players, scene.p7r_1).l75_1, scene.n7r_1)));
|
|
36137
|
+
var randomData = scene.m7r_1;
|
|
36138
36138
|
if (!(randomData == null)) {
|
|
36139
36139
|
store.dispatch(new MessageMechanicAction($this.idr_1.l9c(randomData)));
|
|
36140
36140
|
}
|
|
@@ -36154,15 +36154,15 @@
|
|
|
36154
36154
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
36155
36155
|
var tmp_3 = store.dispatch;
|
|
36156
36156
|
// Inline function 'kotlin.collections.map' call
|
|
36157
|
-
var this_0 = $this.jdr_1.i9j(scene_0.
|
|
36157
|
+
var this_0 = $this.jdr_1.i9j(scene_0.g7r_1);
|
|
36158
36158
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36159
36159
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
36160
36160
|
var _iterator__ex2g4s_2 = this_0.l();
|
|
36161
36161
|
while (_iterator__ex2g4s_2.m()) {
|
|
36162
36162
|
var item = _iterator__ex2g4s_2.n();
|
|
36163
|
-
var tmp0_points = item.
|
|
36163
|
+
var tmp0_points = item.f8f_1;
|
|
36164
36164
|
// Inline function 'kotlin.collections.map' call
|
|
36165
|
-
var this_1 = item.
|
|
36165
|
+
var this_1 = item.e8f_1;
|
|
36166
36166
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36167
36167
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
36168
36168
|
var _iterator__ex2g4s_3 = this_1.l();
|
|
@@ -36174,7 +36174,7 @@
|
|
|
36174
36174
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
36175
36175
|
destination.j(tmp$ret$11);
|
|
36176
36176
|
}
|
|
36177
|
-
tmp_3(new MessageMechanicAction($this.idr_1.f9c(table_0.gameInfo.round, destination, scene_0.
|
|
36177
|
+
tmp_3(new MessageMechanicAction($this.idr_1.f9c(table_0.gameInfo.round, destination, scene_0.k7r(whoChoseSuitPlayerId), scene_0.j7r(whoChoseSuitPlayerId), scene_0.d7r_1)));
|
|
36178
36178
|
}
|
|
36179
36179
|
}
|
|
36180
36180
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
@@ -36185,7 +36185,7 @@
|
|
|
36185
36185
|
if (excludePlayersIds.u1(expectantAction.playerId)) {
|
|
36186
36186
|
return Unit_instance;
|
|
36187
36187
|
}
|
|
36188
|
-
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.
|
|
36188
|
+
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.n8i_1);
|
|
36189
36189
|
} else {
|
|
36190
36190
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
36191
36191
|
var message = $this.idr_1.h9c('GAME_RESTART_EVENT_ID');
|
|
@@ -36193,7 +36193,7 @@
|
|
|
36193
36193
|
store.dispatch(new InfoMessageAction(message));
|
|
36194
36194
|
} else {
|
|
36195
36195
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
36196
|
-
var message_0 = $this.idr_1.d9c(expectantAction.
|
|
36196
|
+
var message_0 = $this.idr_1.d9c(expectantAction.e8j_1, $this$with.players);
|
|
36197
36197
|
store.dispatch(new InfoMessageAction(message_0));
|
|
36198
36198
|
}
|
|
36199
36199
|
}
|
|
@@ -36211,7 +36211,7 @@
|
|
|
36211
36211
|
tmp = Unit_instance;
|
|
36212
36212
|
} else {
|
|
36213
36213
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
36214
|
-
onSuitSelectMessages(this$0, store, action.
|
|
36214
|
+
onSuitSelectMessages(this$0, store, action.i8i_1, action.g8i_1);
|
|
36215
36215
|
tmp = Unit_instance;
|
|
36216
36216
|
} else {
|
|
36217
36217
|
if (action instanceof InterceptorCreatedClientAction) {
|
|
@@ -36219,11 +36219,11 @@
|
|
|
36219
36219
|
tmp = Unit_instance;
|
|
36220
36220
|
} else {
|
|
36221
36221
|
if (action instanceof PutCardMechanicAction) {
|
|
36222
|
-
onCardMessages(this$0, store, action.
|
|
36222
|
+
onCardMessages(this$0, store, action.u8i_1, action.s8i_1);
|
|
36223
36223
|
tmp = Unit_instance;
|
|
36224
36224
|
} else {
|
|
36225
36225
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
36226
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
36226
|
+
onWinnerCombinationMessages(this$0, store, action.e8j_1);
|
|
36227
36227
|
tmp = Unit_instance;
|
|
36228
36228
|
} else {
|
|
36229
36229
|
tmp = Unit_instance;
|
|
@@ -36246,7 +36246,7 @@
|
|
|
36246
36246
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
36247
36247
|
var tmp_0;
|
|
36248
36248
|
if (!(action.playerId === $currentPlayerId)) {
|
|
36249
|
-
onSuitSelectMessages(this$0, store, action.playerId, action.
|
|
36249
|
+
onSuitSelectMessages(this$0, store, action.playerId, action.g8i_1);
|
|
36250
36250
|
tmp_0 = Unit_instance;
|
|
36251
36251
|
}
|
|
36252
36252
|
tmp = tmp_0;
|
|
@@ -36254,7 +36254,7 @@
|
|
|
36254
36254
|
if (action instanceof PutCardMechanicAction) {
|
|
36255
36255
|
var tmp_1;
|
|
36256
36256
|
if (!(action.playerId === $currentPlayerId)) {
|
|
36257
|
-
onCardMessages(this$0, store, action.playerId, action.
|
|
36257
|
+
onCardMessages(this$0, store, action.playerId, action.s8i_1);
|
|
36258
36258
|
tmp_1 = Unit_instance;
|
|
36259
36259
|
}
|
|
36260
36260
|
tmp = tmp_1;
|
|
@@ -36264,29 +36264,29 @@
|
|
|
36264
36264
|
tmp = Unit_instance;
|
|
36265
36265
|
} else {
|
|
36266
36266
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
36267
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
36267
|
+
onWinnerCombinationMessages(this$0, store, action.e8j_1);
|
|
36268
36268
|
tmp = Unit_instance;
|
|
36269
36269
|
} else {
|
|
36270
36270
|
if (action instanceof SuitChoiceFromClientAction) {
|
|
36271
36271
|
var tmp_2;
|
|
36272
|
-
if (action.
|
|
36273
|
-
onSuitSelectMessages(this$0, store, action.
|
|
36272
|
+
if (action.y89_1 === $currentPlayerId) {
|
|
36273
|
+
onSuitSelectMessages(this$0, store, action.y89_1, action.b8a_1);
|
|
36274
36274
|
tmp_2 = Unit_instance;
|
|
36275
36275
|
}
|
|
36276
36276
|
tmp = tmp_2;
|
|
36277
36277
|
} else {
|
|
36278
36278
|
if (action instanceof CardFromClientAction) {
|
|
36279
36279
|
var tmp_3;
|
|
36280
|
-
if (action.
|
|
36281
|
-
onCardMessages(this$0, store, action.
|
|
36280
|
+
if (action.g8a_1 === $currentPlayerId) {
|
|
36281
|
+
onCardMessages(this$0, store, action.g8a_1, action.k8a_1);
|
|
36282
36282
|
tmp_3 = Unit_instance;
|
|
36283
36283
|
}
|
|
36284
36284
|
tmp = tmp_3;
|
|
36285
36285
|
} else {
|
|
36286
36286
|
if (action instanceof CombinationChoiceFromClientAction) {
|
|
36287
36287
|
var tmp_4;
|
|
36288
|
-
if (action.
|
|
36289
|
-
onCombinationChoiceMessages(this$0, store, action.
|
|
36288
|
+
if (action.c8a_1 === $currentPlayerId) {
|
|
36289
|
+
onCombinationChoiceMessages(this$0, store, action.c8a_1, action.f8a_1);
|
|
36290
36290
|
tmp_4 = Unit_instance;
|
|
36291
36291
|
}
|
|
36292
36292
|
tmp = tmp_4;
|
|
@@ -36417,7 +36417,7 @@
|
|
|
36417
36417
|
tmp = this.qds_1.m9i(tmp4, table);
|
|
36418
36418
|
} else {
|
|
36419
36419
|
if (tmp4 instanceof CardFromClientAction) {
|
|
36420
|
-
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.
|
|
36420
|
+
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.g8a_1, table.cardsOnTable.o(), tmp4.j8a_1));
|
|
36421
36421
|
var cardMechanicAction = this.qds_1.n9i(tmp4, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
36422
36422
|
tmp = cardMechanicAction;
|
|
36423
36423
|
} else {
|
|
@@ -36452,7 +36452,7 @@
|
|
|
36452
36452
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).ya1 = function (state, action) {
|
|
36453
36453
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
36454
36454
|
var clientPayload = get_clientPayload(state);
|
|
36455
|
-
var tmp0_subject = action_0.
|
|
36455
|
+
var tmp0_subject = action_0.u8h_1;
|
|
36456
36456
|
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.t9m(VOID, clientPayload.rds(VOID, VOID, VOID, VOID, VOID, VOID, false)) : state;
|
|
36457
36457
|
};
|
|
36458
36458
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).s6q = function (state, action) {
|
|
@@ -37368,7 +37368,7 @@
|
|
|
37368
37368
|
protoOf(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1).r6q = function (store, next, action) {
|
|
37369
37369
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
37370
37370
|
var state = store.state;
|
|
37371
|
-
if (get_isEarnPointScene(state.b72().sceneInfo.
|
|
37371
|
+
if (get_isEarnPointScene(state.b72().sceneInfo.j8k_1)) {
|
|
37372
37372
|
var tmp0_putPlayerCard = action_0.zdo_1;
|
|
37373
37373
|
var tmp1_player = get_currentPlayer(state.b72());
|
|
37374
37374
|
var tmp2_table = state.b72();
|
|
@@ -37426,8 +37426,8 @@
|
|
|
37426
37426
|
function ClientCombinationsReducerImpl() {
|
|
37427
37427
|
}
|
|
37428
37428
|
protoOf(ClientCombinationsReducerImpl).mdw = function (currentPlayerId, actData) {
|
|
37429
|
-
if (!(actData == null) && currentPlayerId === actData.
|
|
37430
|
-
return new CombinationToAnnounceState(actData.
|
|
37429
|
+
if (!(actData == null) && currentPlayerId === actData.g7q()) {
|
|
37430
|
+
return new CombinationToAnnounceState(actData.z7p_1, null, null);
|
|
37431
37431
|
}
|
|
37432
37432
|
return null;
|
|
37433
37433
|
};
|
|
@@ -37600,7 +37600,7 @@
|
|
|
37600
37600
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
37601
37601
|
Companion_getInstance_8();
|
|
37602
37602
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
37603
|
-
var this_0 = $action.
|
|
37603
|
+
var this_0 = $action.b8h_1.timeoutTimeMillis;
|
|
37604
37604
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
37605
37605
|
tmp = tmp_0.i6h(tmp_1.w6f(tmp_2, tmp$ret$0));
|
|
37606
37606
|
} else {
|
|
@@ -37634,13 +37634,13 @@
|
|
|
37634
37634
|
this.adx_1.d('ClientMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
37635
37635
|
var clientState = get_clientPayloadOrNull_0(state.payload);
|
|
37636
37636
|
var tmp0_$this = this.qa3_1;
|
|
37637
|
-
var tmp1_tableId = action.
|
|
37638
|
-
var tmp2_gameId = action.
|
|
37639
|
-
var tmp3_version = action.
|
|
37640
|
-
var tmp4_config = action.
|
|
37641
|
-
var tmp5_users = action.
|
|
37637
|
+
var tmp1_tableId = action.c8h_1;
|
|
37638
|
+
var tmp2_gameId = action.c8h_1;
|
|
37639
|
+
var tmp3_version = action.d8h_1;
|
|
37640
|
+
var tmp4_config = action.b8h_1;
|
|
37641
|
+
var tmp5_users = action.f8h_1;
|
|
37642
37642
|
var tmp6_spectators = emptyList();
|
|
37643
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
37643
|
+
var tmp7_gameCreatorPlayerId = action.e8h_1;
|
|
37644
37644
|
var newTable = tmp0_$this.ya4(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this, action));
|
|
37645
37645
|
var tmp;
|
|
37646
37646
|
if (clientState == null) {
|
|
@@ -37668,7 +37668,7 @@
|
|
|
37668
37668
|
if (clientState == null) {
|
|
37669
37669
|
var tmp_0 = Companion_instance_91;
|
|
37670
37670
|
var tmp_1 = get_currentPlayer(action.table).playerId;
|
|
37671
|
-
var tmp0_safe_receiver = action.table.sceneInfo.
|
|
37671
|
+
var tmp0_safe_receiver = action.table.sceneInfo.n8k_1;
|
|
37672
37672
|
var tmp_2;
|
|
37673
37673
|
if (tmp0_safe_receiver == null) {
|
|
37674
37674
|
tmp_2 = null;
|
|
@@ -37704,14 +37704,14 @@
|
|
|
37704
37704
|
}
|
|
37705
37705
|
var newPayload = this.bdx_1.rdw(get_clientPayload(state));
|
|
37706
37706
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
37707
|
-
var tmp3_terminationState = new TerminationState(action.
|
|
37707
|
+
var tmp3_terminationState = new TerminationState(action.j8h_1, action.l8h_1);
|
|
37708
37708
|
return state.t9m(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
37709
37709
|
};
|
|
37710
37710
|
protoOf(ClientMechanicLifecycleReducer).la3 = function (state, action) {
|
|
37711
37711
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
37712
37712
|
var tmp0_safe_receiver = state.b71_1;
|
|
37713
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9m(action.
|
|
37714
|
-
return state.t9m(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.
|
|
37713
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9m(action.n8h_1, action.q8h_1);
|
|
37714
|
+
return state.t9m(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.n8h_1, action.q8h_1) : tmp1_elvis_lhs);
|
|
37715
37715
|
};
|
|
37716
37716
|
protoOf(ClientMechanicLifecycleReducer).ka3 = function (state, action) {
|
|
37717
37717
|
var tmp = get_clientPayload(state);
|
|
@@ -37734,12 +37734,12 @@
|
|
|
37734
37734
|
tmp = null;
|
|
37735
37735
|
} else {
|
|
37736
37736
|
// Inline function 'kotlin.let' call
|
|
37737
|
-
tmp = this.bdx_1.rdw(tmp2_safe_receiver).rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.
|
|
37737
|
+
tmp = this.bdx_1.rdw(tmp2_safe_receiver).rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.i8j_1);
|
|
37738
37738
|
}
|
|
37739
37739
|
var newPayload = tmp;
|
|
37740
37740
|
var tmp3_safe_receiver = state.b71_1;
|
|
37741
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v9m(action.
|
|
37742
|
-
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.
|
|
37741
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v9m(action.i8j_1.n89_1);
|
|
37742
|
+
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.i8j_1.n89_1) : tmp4_elvis_lhs;
|
|
37743
37743
|
return state.t9m(VOID, newPayload, GameLifecycleState_FINISHED_getInstance(), newTerminationState);
|
|
37744
37744
|
};
|
|
37745
37745
|
function clientResetProcessingCardReducer() {
|
|
@@ -37779,7 +37779,7 @@
|
|
|
37779
37779
|
protoOf(clientSceneReducer$$inlined$reducerForActionType$1).ya1 = function (state, action) {
|
|
37780
37780
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
37781
37781
|
var tmp;
|
|
37782
|
-
switch (action_0.
|
|
37782
|
+
switch (action_0.u8h_1) {
|
|
37783
37783
|
case 'WAITING':
|
|
37784
37784
|
tmp = state;
|
|
37785
37785
|
break;
|
|
@@ -37834,8 +37834,8 @@
|
|
|
37834
37834
|
var tmp_0 = get_clientPayload(state);
|
|
37835
37835
|
var tmp_1;
|
|
37836
37836
|
if (tmp2.kdp_1) {
|
|
37837
|
-
var cards = last(state.b72().bribes).
|
|
37838
|
-
tmp_1 = new LastBribeState(first(cards).
|
|
37837
|
+
var cards = last(state.b72().bribes).b87_1;
|
|
37838
|
+
tmp_1 = new LastBribeState(first(cards).f7p_1, getWhoGotPreviousBribe(state.b72().players).playerId, cards);
|
|
37839
37839
|
} else {
|
|
37840
37840
|
tmp_1 = null;
|
|
37841
37841
|
}
|
|
@@ -38091,7 +38091,7 @@
|
|
|
38091
38091
|
tmp = new ErrorState(VOID, VOID, ProcessingReason_getInstance());
|
|
38092
38092
|
} else {
|
|
38093
38093
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
38094
|
-
tmp = mapToErrorState(action_0.
|
|
38094
|
+
tmp = mapToErrorState(action_0.n8h_1, state.b72());
|
|
38095
38095
|
} else {
|
|
38096
38096
|
tmp = null;
|
|
38097
38097
|
}
|
|
@@ -38269,7 +38269,7 @@
|
|
|
38269
38269
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0));
|
|
38270
38270
|
}
|
|
38271
38271
|
var sceneData = tmp$ret$0;
|
|
38272
|
-
var playersCardsToDistribute = sceneData.
|
|
38272
|
+
var playersCardsToDistribute = sceneData.l7r_1;
|
|
38273
38273
|
// Inline function 'kotlin.collections.sumOf' call
|
|
38274
38274
|
var sum = 0;
|
|
38275
38275
|
var _iterator__ex2g4s = playersCardsToDistribute.e2().l();
|
|
@@ -38279,9 +38279,9 @@
|
|
|
38279
38279
|
sum = tmp + element.o() | 0;
|
|
38280
38280
|
}
|
|
38281
38281
|
var cardsToDistributeCount = sum;
|
|
38282
|
-
var otherCardsCount = sceneData.
|
|
38282
|
+
var otherCardsCount = sceneData.o7r_1.o();
|
|
38283
38283
|
var cardDeckCards = createCardDeckCards($this, cardsToDistributeCount, otherCardsCount);
|
|
38284
|
-
var shuffleCardTransition = new ShuffleCardDeckTransition($this.tdx_1.a6n(), plus(listOf_0(sceneData.
|
|
38284
|
+
var shuffleCardTransition = new ShuffleCardDeckTransition($this.tdx_1.a6n(), plus(listOf_0(sceneData.n7r_1), cardDeckCards));
|
|
38285
38285
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, null, otherCardsCount);
|
|
38286
38286
|
var updatedTransitions = plus(get_clientPayload(state).iad_1, listOf([shuffleCardTransition, distributionTransition]));
|
|
38287
38287
|
return state.t9m(VOID, get_clientPayload(state).rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
@@ -38301,11 +38301,11 @@
|
|
|
38301
38301
|
var tmp0_$this = $this.sdx_1;
|
|
38302
38302
|
var tmp1_config = state.b72().config;
|
|
38303
38303
|
var tmp2_cardDeck = state.b72().requireCardDeck;
|
|
38304
|
-
var tmp3_newTopOpenedCard = sceneData.
|
|
38305
|
-
var tmp4_newPlayersCards = sceneData.
|
|
38304
|
+
var tmp3_newTopOpenedCard = sceneData.t7r_1;
|
|
38305
|
+
var tmp4_newPlayersCards = sceneData.r7r_1;
|
|
38306
38306
|
var updatedCardDeck = tmp0_$this.ma4(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
38307
|
-
var tmp5_distributeTrumpCard = updatedCardDeck.
|
|
38308
|
-
var tmp6_playersCardsToDistribute = sceneData.
|
|
38307
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.e87_1;
|
|
38308
|
+
var tmp6_playersCardsToDistribute = sceneData.r7r_1;
|
|
38309
38309
|
var tmp7_otherCardsCount = updatedCardDeck.b94();
|
|
38310
38310
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, tmp6_playersCardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
38311
38311
|
var updatedTransitions = plus_0(get_clientPayload(state).iad_1, distributionTransition);
|
|
@@ -38562,7 +38562,7 @@
|
|
|
38562
38562
|
};
|
|
38563
38563
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).ya1 = function (state, action) {
|
|
38564
38564
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
38565
|
-
var updatedTransitions = addPutCardOnTableTransition(this.ddy_1, action_0.playerId, this.edy_1, action_0.
|
|
38565
|
+
var updatedTransitions = addPutCardOnTableTransition(this.ddy_1, action_0.playerId, this.edy_1, action_0.r8i_1, state.b72(), get_clientPayload(state));
|
|
38566
38566
|
return state.t9m(VOID, get_clientPayload(state).rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38567
38567
|
};
|
|
38568
38568
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).s6q = function (state, action) {
|
|
@@ -38578,7 +38578,7 @@
|
|
|
38578
38578
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).ya1 = function (state, action) {
|
|
38579
38579
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
38580
38580
|
var tmp;
|
|
38581
|
-
switch (action_0.
|
|
38581
|
+
switch (action_0.u8h_1) {
|
|
38582
38582
|
case 'TRADE':
|
|
38583
38583
|
tmp = handleTradeScene(this.fdy_1, state, action_0, this.gdy_1);
|
|
38584
38584
|
break;
|
|
@@ -38607,15 +38607,15 @@
|
|
|
38607
38607
|
var interceptedAction = action_0.xdp_1.gaq_1;
|
|
38608
38608
|
var tmp;
|
|
38609
38609
|
if (interceptedAction instanceof CombinationChoiceMechanicAction) {
|
|
38610
|
-
var combination = first(interceptedAction.
|
|
38610
|
+
var combination = first(interceptedAction.o8i_1);
|
|
38611
38611
|
var tmp_0;
|
|
38612
|
-
if (interceptedAction.
|
|
38612
|
+
if (interceptedAction.n8i_1 && combination.d7q_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
38613
38613
|
var trumpCard = single(combination.g94());
|
|
38614
38614
|
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.hdy_1, trumpCard, getPlayer(state.b72().players, interceptedAction.playerId), this.idy_1, state.b72().players);
|
|
38615
38615
|
var tmp0_id = this.hdy_1.tdx_1.a6n();
|
|
38616
38616
|
var tmp1_playerIds = listOf_0(interceptedAction.playerId);
|
|
38617
|
-
var tmp2_toCard2 = state.b72().requireCardDeck.
|
|
38618
|
-
var tmp3_fromCard2 = state.b72().requireCardDeck.
|
|
38617
|
+
var tmp2_toCard2 = state.b72().requireCardDeck.e87_1;
|
|
38618
|
+
var tmp3_fromCard2 = state.b72().requireCardDeck.e87_1;
|
|
38619
38619
|
var updatedTransitions = plus_0(clientPayload.iad_1, new SwapCardsTransition(tmp0_id, tmp1_playerIds, trumpCardOrOrigin, trumpCard, tmp3_fromCard2, tmp2_toCard2));
|
|
38620
38620
|
tmp_0 = state.t9m(VOID, clientPayload.rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38621
38621
|
} else {
|
|
@@ -38626,17 +38626,17 @@
|
|
|
38626
38626
|
if (interceptedAction instanceof WinnerCombinationsMechanicAction) {
|
|
38627
38627
|
var tmp_1 = this.hdy_1.tdx_1.a6n();
|
|
38628
38628
|
// Inline function 'kotlin.collections.associate' call
|
|
38629
|
-
var this_0 = interceptedAction.
|
|
38629
|
+
var this_0 = interceptedAction.e8j_1;
|
|
38630
38630
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
38631
38631
|
// Inline function 'kotlin.collections.associateTo' call
|
|
38632
38632
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
38633
38633
|
var _iterator__ex2g4s = this_0.l();
|
|
38634
38634
|
while (_iterator__ex2g4s.m()) {
|
|
38635
38635
|
var element = _iterator__ex2g4s.n();
|
|
38636
|
-
var player = getPlayer(state.b72().players, element.
|
|
38636
|
+
var player = getPlayer(state.b72().players, element.x87_1);
|
|
38637
38637
|
var sortedPlayerCards = sortedWith(player.n75_1, new CardSuitSortingComparator(get_clientPayload(state).vac_1.vao_1));
|
|
38638
38638
|
// Inline function 'kotlin.collections.map' call
|
|
38639
|
-
var this_1 = element.
|
|
38639
|
+
var this_1 = element.y87_1;
|
|
38640
38640
|
// Inline function 'kotlin.collections.mapTo' call
|
|
38641
38641
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
38642
38642
|
var _iterator__ex2g4s_0 = this_1.l();
|
|
@@ -38674,7 +38674,7 @@
|
|
|
38674
38674
|
}
|
|
38675
38675
|
var handTransitions = destination_1;
|
|
38676
38676
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
38677
|
-
var pair = to(element.
|
|
38677
|
+
var pair = to(element.x87_1, handTransitions);
|
|
38678
38678
|
destination.m2(pair.me_1, pair.ne_1);
|
|
38679
38679
|
}
|
|
38680
38680
|
var updatedTransitions_0 = plus_0(clientPayload.iad_1, new ShowCombinationTransition(tmp_1, destination));
|
|
@@ -38689,16 +38689,16 @@
|
|
|
38689
38689
|
var _iterator__ex2g4s_2 = this_3.l();
|
|
38690
38690
|
while (_iterator__ex2g4s_2.m()) {
|
|
38691
38691
|
var item_1 = _iterator__ex2g4s_2.n();
|
|
38692
|
-
var tmp$ret$10 = item_1.
|
|
38692
|
+
var tmp$ret$10 = item_1.h7p_1;
|
|
38693
38693
|
destination_2.j(tmp$ret$10);
|
|
38694
38694
|
}
|
|
38695
|
-
var updatedTransitions_1 = plus_0(clientPayload.iad_1, new PickUpBribeTransition(tmp_3, interceptedAction.
|
|
38695
|
+
var updatedTransitions_1 = plus_0(clientPayload.iad_1, new PickUpBribeTransition(tmp_3, interceptedAction.x8i_1, destination_2));
|
|
38696
38696
|
tmp = state.t9m(VOID, clientPayload.rds(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_1));
|
|
38697
38697
|
} else {
|
|
38698
38698
|
if (interceptedAction instanceof TakeAllRemainingCardsMechanicAction) {
|
|
38699
38699
|
var tmp_4 = this.hdy_1.tdx_1.a6n();
|
|
38700
38700
|
// Inline function 'kotlin.collections.mapValues' call
|
|
38701
|
-
var this_4 = interceptedAction.
|
|
38701
|
+
var this_4 = interceptedAction.c8j_1;
|
|
38702
38702
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
38703
38703
|
var destination_3 = LinkedHashMap_init_$Create$(mapCapacity(this_4.o()));
|
|
38704
38704
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -38825,7 +38825,7 @@
|
|
|
38825
38825
|
var _iterator__ex2g4s = tmp1_safe_receiver.l();
|
|
38826
38826
|
while (_iterator__ex2g4s.m()) {
|
|
38827
38827
|
var element = _iterator__ex2g4s.n();
|
|
38828
|
-
var list = element.
|
|
38828
|
+
var list = element.y87_1;
|
|
38829
38829
|
addAll(destination, list);
|
|
38830
38830
|
}
|
|
38831
38831
|
tmp = destination;
|
|
@@ -38841,7 +38841,7 @@
|
|
|
38841
38841
|
var _iterator__ex2g4s_0 = cardsOnTable.l();
|
|
38842
38842
|
while (_iterator__ex2g4s_0.m()) {
|
|
38843
38843
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
38844
|
-
if (element_0.
|
|
38844
|
+
if (element_0.f7p_1 === playerId) {
|
|
38845
38845
|
tmp$ret$4 = element_0;
|
|
38846
38846
|
break $l$block;
|
|
38847
38847
|
}
|
|
@@ -38849,7 +38849,7 @@
|
|
|
38849
38849
|
tmp$ret$4 = null;
|
|
38850
38850
|
}
|
|
38851
38851
|
var tmp5_safe_receiver = tmp$ret$4;
|
|
38852
|
-
var tableCard = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
38852
|
+
var tableCard = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.h7p_1;
|
|
38853
38853
|
// Inline function 'kotlin.collections.map' call
|
|
38854
38854
|
// Inline function 'kotlin.collections.mapTo' call
|
|
38855
38855
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -38901,7 +38901,7 @@
|
|
|
38901
38901
|
tmp = tmp0_elvis_lhs;
|
|
38902
38902
|
}
|
|
38903
38903
|
var mechanic = tmp;
|
|
38904
|
-
var filtered = filterByPlayerId(mechanic.gaq_1.
|
|
38904
|
+
var filtered = filterByPlayerId(mechanic.gaq_1.e8j_1, playerId);
|
|
38905
38905
|
if (filtered.q())
|
|
38906
38906
|
return null;
|
|
38907
38907
|
var updated = mechanic.kaq(VOID, mechanic.gaq_1.k9p(filtered));
|
|
@@ -38936,7 +38936,7 @@
|
|
|
38936
38936
|
tmp = tmp0_elvis_lhs;
|
|
38937
38937
|
}
|
|
38938
38938
|
var mechanic = tmp;
|
|
38939
|
-
if (!(mechanic.gaq_1.
|
|
38939
|
+
if (!(mechanic.gaq_1.p8i_1 === playerId))
|
|
38940
38940
|
return null;
|
|
38941
38941
|
return mapToExpectant(mechanic);
|
|
38942
38942
|
}
|
|
@@ -38994,7 +38994,7 @@
|
|
|
38994
38994
|
var _iterator__ex2g4s = combinations.l();
|
|
38995
38995
|
while (_iterator__ex2g4s.m()) {
|
|
38996
38996
|
var item = _iterator__ex2g4s.n();
|
|
38997
|
-
var tmp0_elvis_lhs = item.
|
|
38997
|
+
var tmp0_elvis_lhs = item.e7q_1;
|
|
38998
38998
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
38999
38999
|
destination.j(tmp$ret$0);
|
|
39000
39000
|
}
|
|
@@ -39012,7 +39012,7 @@
|
|
|
39012
39012
|
var tmp1_isDistribution = cardsToDistribute.u1(item_0);
|
|
39013
39013
|
var tmp2_enabled = cardsStateVM.nam(item_0);
|
|
39014
39014
|
var tmp0_safe_receiver_0 = table.cardDeck;
|
|
39015
|
-
var tmp3_isTrump = equals(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
39015
|
+
var tmp3_isTrump = equals(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e87_1, item_0);
|
|
39016
39016
|
var tmp$ret$3 = new CardViewModel(item_0, tmp2_enabled, tmp3_isTrump, tmp1_isDistribution);
|
|
39017
39017
|
destination_0.j(tmp$ret$3);
|
|
39018
39018
|
}
|
|
@@ -39021,7 +39021,7 @@
|
|
|
39021
39021
|
protoOf(PlayerHandSelector).ndj = function (playerCards, isCardsDistribution, table) {
|
|
39022
39022
|
var tmp;
|
|
39023
39023
|
if (isCardsDistribution) {
|
|
39024
|
-
switch (table.sceneInfo.
|
|
39024
|
+
switch (table.sceneInfo.j8k_1) {
|
|
39025
39025
|
case 'TRADE':
|
|
39026
39026
|
tmp = playerCards;
|
|
39027
39027
|
break;
|
|
@@ -39085,8 +39085,8 @@
|
|
|
39085
39085
|
};
|
|
39086
39086
|
protoOf(PlayerHandSelector).acu = function (isCurrentPlayer, cards, isGameActive, table, clientPayload) {
|
|
39087
39087
|
var currentPlayer = get_currentPlayer(table);
|
|
39088
|
-
var isEarnPointScene = get_isEarnPointScene(table.sceneInfo.
|
|
39089
|
-
var tmp0_safe_receiver = table.sceneInfo.
|
|
39088
|
+
var isEarnPointScene = get_isEarnPointScene(table.sceneInfo.j8k_1);
|
|
39089
|
+
var tmp0_safe_receiver = table.sceneInfo.l8k_1;
|
|
39090
39090
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_isPlayerTurnAct(tmp0_safe_receiver);
|
|
39091
39091
|
var isPlayerTurnAct = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
39092
39092
|
var tmp;
|
|
@@ -39150,7 +39150,7 @@
|
|
|
39150
39150
|
var _iterator__ex2g4s = tmp1_safe_receiver.l();
|
|
39151
39151
|
while (_iterator__ex2g4s.m()) {
|
|
39152
39152
|
var element = _iterator__ex2g4s.n();
|
|
39153
|
-
var tmp0_safe_receiver = element.
|
|
39153
|
+
var tmp0_safe_receiver = element.e7q_1;
|
|
39154
39154
|
if (tmp0_safe_receiver == null)
|
|
39155
39155
|
null;
|
|
39156
39156
|
else {
|