client_plugin_logic_deb 1.8.403 → 1.8.404
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 +1 -0
- package/Logic_Debertz-client_plugin.js +5 -5
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +10001 -10001
- package/Logic_Debertz-game_client.js +326 -317
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +56 -50
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
case 1:
|
|
1512
1512
|
var $this$transform = this.xa6_1;
|
|
1513
1513
|
var value = this.wa6_1;
|
|
1514
|
-
if (value.
|
|
1514
|
+
if (value.e72()) {
|
|
1515
1515
|
this.s8_1 = 3;
|
|
1516
1516
|
suspendResult = $this$transform.i24(value, this);
|
|
1517
1517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
case 1:
|
|
1729
1729
|
var $this$transform = this.pa8_1;
|
|
1730
1730
|
var value = this.oa8_1;
|
|
1731
|
-
if (value.
|
|
1731
|
+
if (value.e72()) {
|
|
1732
1732
|
this.s8_1 = 3;
|
|
1733
1733
|
suspendResult = $this$transform.i24(value, this);
|
|
1734
1734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
case 1:
|
|
2309
2309
|
var $this$transform = this.nac_1;
|
|
2310
2310
|
var value = this.mac_1;
|
|
2311
|
-
if (value.
|
|
2311
|
+
if (value.e72()) {
|
|
2312
2312
|
this.s8_1 = 3;
|
|
2313
2313
|
suspendResult = $this$transform.i24(value, this);
|
|
2314
2314
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2525,7 +2525,7 @@
|
|
|
2525
2525
|
case 1:
|
|
2526
2526
|
var $this$transform = this.fae_1;
|
|
2527
2527
|
var value = this.eae_1;
|
|
2528
|
-
if (value.
|
|
2528
|
+
if (value.e72()) {
|
|
2529
2529
|
this.s8_1 = 3;
|
|
2530
2530
|
suspendResult = $this$transform.i24(value, this);
|
|
2531
2531
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -3418,7 +3418,7 @@
|
|
|
3418
3418
|
var tmp;
|
|
3419
3419
|
if (_this__u8e3s4 instanceof PlayerLostConnectionReason) {
|
|
3420
3420
|
// Inline function 'kotlin.takeUnless' call
|
|
3421
|
-
var this_0 = getPlayer(table.players, _this__u8e3s4.g6e_1).
|
|
3421
|
+
var this_0 = getPlayer(table.players, _this__u8e3s4.g6e_1).k75_1;
|
|
3422
3422
|
var tmp_0;
|
|
3423
3423
|
if (!(_this__u8e3s4.g6e_1 === get_currentPlayer(table).playerId)) {
|
|
3424
3424
|
tmp_0 = this_0;
|
|
@@ -3430,7 +3430,7 @@
|
|
|
3430
3430
|
} else {
|
|
3431
3431
|
if (_this__u8e3s4 instanceof PlayerTimeoutReason) {
|
|
3432
3432
|
// Inline function 'kotlin.takeUnless' call
|
|
3433
|
-
var this_1 = getPlayer(table.players, _this__u8e3s4.j6e_1).
|
|
3433
|
+
var this_1 = getPlayer(table.players, _this__u8e3s4.j6e_1).k75_1;
|
|
3434
3434
|
var tmp_1;
|
|
3435
3435
|
if (!(_this__u8e3s4.j6e_1 === get_currentPlayer(table).playerId)) {
|
|
3436
3436
|
tmp_1 = this_1;
|
|
@@ -3445,7 +3445,7 @@
|
|
|
3445
3445
|
if (_this__u8e3s4.k6e_1 === get_currentPlayer(table).playerId) {
|
|
3446
3446
|
tmp_2 = null;
|
|
3447
3447
|
} else {
|
|
3448
|
-
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.k6e_1).
|
|
3448
|
+
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.k6e_1).k75_1, _this__u8e3s4);
|
|
3449
3449
|
}
|
|
3450
3450
|
tmp = tmp_2;
|
|
3451
3451
|
} else {
|
|
@@ -3570,41 +3570,41 @@
|
|
|
3570
3570
|
return true;
|
|
3571
3571
|
};
|
|
3572
3572
|
function toVM(_this__u8e3s4, players, gameWinner) {
|
|
3573
|
-
var player = getPlayer(players, first(_this__u8e3s4.
|
|
3573
|
+
var player = getPlayer(players, first(_this__u8e3s4.o7g_1).r7g_1);
|
|
3574
3574
|
// Inline function 'kotlin.collections.map' call
|
|
3575
|
-
var this_0 = _this__u8e3s4.
|
|
3575
|
+
var this_0 = _this__u8e3s4.o7g_1;
|
|
3576
3576
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3577
3577
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3578
3578
|
var _iterator__ex2g4s = this_0.l();
|
|
3579
3579
|
while (_iterator__ex2g4s.m()) {
|
|
3580
3580
|
var item = _iterator__ex2g4s.n();
|
|
3581
|
-
var tmp = getPlayer(players, item.
|
|
3582
|
-
var tmp_0 = new ValuePointClause(item.
|
|
3581
|
+
var tmp = getPlayer(players, item.r7g_1).k75_1;
|
|
3582
|
+
var tmp_0 = new ValuePointClause(item.t7g_1);
|
|
3583
3583
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3584
|
-
var tmp0_elvis_lhs = item.
|
|
3584
|
+
var tmp0_elvis_lhs = item.x7g_1;
|
|
3585
3585
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3586
3586
|
var tmp_1 = tmp_0.rag(mapToClause(filterByCombinationState(filterCombinationsAndLastBribe(tmp$ret$0), [CombinationState_ACCEPTED_getInstance(), CombinationState_CANCELED_getInstance()])));
|
|
3587
3587
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3588
|
-
var tmp0_elvis_lhs_0 = item.
|
|
3588
|
+
var tmp0_elvis_lhs_0 = item.x7g_1;
|
|
3589
3589
|
var tmp$ret$1 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3590
3590
|
var tmp_2 = mapToClause(filterByCombinationState(filterBonusOrFine(tmp$ret$1), [CombinationState_ACCEPTED_getInstance()]));
|
|
3591
3591
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3592
|
-
var tmp0_elvis_lhs_1 = item.
|
|
3592
|
+
var tmp0_elvis_lhs_1 = item.x7g_1;
|
|
3593
3593
|
var tmp$ret$2 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3594
3594
|
var tmp$ret$3 = new PlayerPointsViewModel(tmp, tmp_1, tmp_2, mapToClause(filterByCombinationState(filterWithFirstCardOrBela(tmp$ret$2), [CombinationState_REJECTED_getInstance()])));
|
|
3595
3595
|
destination.j(tmp$ret$3);
|
|
3596
3596
|
}
|
|
3597
|
-
var tmp1_beforeEarnedPoints = _this__u8e3s4.
|
|
3598
|
-
var tmp2_finalRoundPoints = _this__u8e3s4.
|
|
3599
|
-
var tmp3_finalGamePoints = _this__u8e3s4.
|
|
3600
|
-
var tmp4_badges = createBadges(_this__u8e3s4, player.
|
|
3597
|
+
var tmp1_beforeEarnedPoints = _this__u8e3s4.q7g();
|
|
3598
|
+
var tmp2_finalRoundPoints = _this__u8e3s4.y7g();
|
|
3599
|
+
var tmp3_finalGamePoints = _this__u8e3s4.z7g();
|
|
3600
|
+
var tmp4_badges = createBadges(_this__u8e3s4, player.n75_1.n7a_1, gameWinner);
|
|
3601
3601
|
return new PointsCellViewModel(destination, tmp4_badges, tmp1_beforeEarnedPoints, tmp2_finalRoundPoints, tmp3_finalGamePoints);
|
|
3602
3602
|
}
|
|
3603
3603
|
function toPlayerVM(_this__u8e3s4, currentPlayerId, isGameFinished, round, isRatingUp, wasPlayerOffline) {
|
|
3604
|
-
var tmp4_userInfo = _this__u8e3s4.
|
|
3605
|
-
var tmp5_selectedSuit = _this__u8e3s4.
|
|
3606
|
-
var tmp6_isGameCreator = _this__u8e3s4.
|
|
3607
|
-
var tmp7_isShuffleCards = _this__u8e3s4.
|
|
3604
|
+
var tmp4_userInfo = _this__u8e3s4.k75_1;
|
|
3605
|
+
var tmp5_selectedSuit = _this__u8e3s4.n75_1.r7a_1 ? round.trump : null;
|
|
3606
|
+
var tmp6_isGameCreator = _this__u8e3s4.n75_1.g7a_1;
|
|
3607
|
+
var tmp7_isShuffleCards = _this__u8e3s4.n75_1.j7a_1;
|
|
3608
3608
|
var tmp8_isCurrentPlayer = currentPlayerId === _this__u8e3s4.playerId;
|
|
3609
3609
|
var tmp0_safe_receiver = round.trump;
|
|
3610
3610
|
var tmp;
|
|
@@ -3614,7 +3614,7 @@
|
|
|
3614
3614
|
// Inline function 'kotlin.let' call
|
|
3615
3615
|
// Inline function 'kotlin.collections.sumOf' call
|
|
3616
3616
|
var sum = 0;
|
|
3617
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
3617
|
+
var _iterator__ex2g4s = _this__u8e3s4.p75_1.u7b_1.l();
|
|
3618
3618
|
while (_iterator__ex2g4s.m()) {
|
|
3619
3619
|
var element = _iterator__ex2g4s.n();
|
|
3620
3620
|
var tmp_0 = sum;
|
|
@@ -3655,10 +3655,10 @@
|
|
|
3655
3655
|
return new PlayerViewModel(tmp4_userInfo, tmp5_selectedSuit, tmp7_isShuffleCards, tmp8_isCurrentPlayer, tmp6_isGameCreator, tmp9_points, tmp10_isRatingUp, tmp11_wasPlayerOffline);
|
|
3656
3656
|
}
|
|
3657
3657
|
function toStateVM(_this__u8e3s4, showConnectionStatus, isGameFinished, isStateActive) {
|
|
3658
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3658
|
+
var tmp0_safe_receiver = _this__u8e3s4.l75_1.t6f_1;
|
|
3659
3659
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z6f_1;
|
|
3660
3660
|
var tmp5_playerId = _this__u8e3s4.playerId;
|
|
3661
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3661
|
+
var tmp1_safe_receiver = _this__u8e3s4.l75_1.n6f_1;
|
|
3662
3662
|
var tmp;
|
|
3663
3663
|
if (tmp1_safe_receiver == null) {
|
|
3664
3664
|
tmp = null;
|
|
@@ -3673,7 +3673,7 @@
|
|
|
3673
3673
|
tmp = tmp_0;
|
|
3674
3674
|
}
|
|
3675
3675
|
var tmp6_startFromTime = tmp;
|
|
3676
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3676
|
+
var tmp2_safe_receiver = _this__u8e3s4.l75_1.o6f_1;
|
|
3677
3677
|
var tmp_1;
|
|
3678
3678
|
if (tmp2_safe_receiver == null) {
|
|
3679
3679
|
tmp_1 = null;
|
|
@@ -3688,7 +3688,7 @@
|
|
|
3688
3688
|
tmp_1 = tmp_2;
|
|
3689
3689
|
}
|
|
3690
3690
|
var tmp7_playerTurnTimeout = tmp_1;
|
|
3691
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3691
|
+
var tmp3_safe_receiver = _this__u8e3s4.l75_1.p6f_1;
|
|
3692
3692
|
var tmp_3;
|
|
3693
3693
|
if (tmp3_safe_receiver == null) {
|
|
3694
3694
|
tmp_3 = null;
|
|
@@ -3722,21 +3722,21 @@
|
|
|
3722
3722
|
tmp_5 = null;
|
|
3723
3723
|
}
|
|
3724
3724
|
var tmp9_connectionState = tmp_5;
|
|
3725
|
-
var tmp10_tag = _this__u8e3s4.
|
|
3726
|
-
var tmp11_state = isStateActive ? _this__u8e3s4.
|
|
3725
|
+
var tmp10_tag = _this__u8e3s4.l75_1.s6f_1;
|
|
3726
|
+
var tmp11_state = isStateActive ? _this__u8e3s4.l75_1.q6f_1 : PlayerWaitingState_IDLE_getInstance();
|
|
3727
3727
|
return new PlayerStateViewModel(tmp5_playerId, tmp10_tag, tmp11_state, tmp9_connectionState, tmp6_startFromTime, tmp7_playerTurnTimeout, tmp8_waitPlayerUntilTime);
|
|
3728
3728
|
}
|
|
3729
3729
|
function toVMV2(_this__u8e3s4, playerIndex, highlightedCards) {
|
|
3730
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
3731
|
-
var tmp1_card = _this__u8e3s4.
|
|
3732
|
-
var tmp2_position = _this__u8e3s4.
|
|
3733
|
-
var tmp3_highlighted = highlightedCards.u1(_this__u8e3s4.
|
|
3730
|
+
var tmp0_playerId = _this__u8e3s4.n7o_1;
|
|
3731
|
+
var tmp1_card = _this__u8e3s4.p7o_1;
|
|
3732
|
+
var tmp2_position = _this__u8e3s4.o7o_1;
|
|
3733
|
+
var tmp3_highlighted = highlightedCards.u1(_this__u8e3s4.p7o_1);
|
|
3734
3734
|
return new CardOnTableViewModelV2(playerIndex, tmp0_playerId, tmp2_position, tmp3_highlighted, tmp1_card);
|
|
3735
3735
|
}
|
|
3736
3736
|
function toVM_0(_this__u8e3s4, playerIndex) {
|
|
3737
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
3738
|
-
var tmp1_card = _this__u8e3s4.
|
|
3739
|
-
var tmp2_position = _this__u8e3s4.
|
|
3737
|
+
var tmp0_playerId = _this__u8e3s4.n7o_1;
|
|
3738
|
+
var tmp1_card = _this__u8e3s4.p7o_1;
|
|
3739
|
+
var tmp2_position = _this__u8e3s4.o7o_1;
|
|
3740
3740
|
return new CardOnTableViewModel(playerIndex, tmp0_playerId, tmp2_position, tmp1_card);
|
|
3741
3741
|
}
|
|
3742
3742
|
function mapToClause(_this__u8e3s4) {
|
|
@@ -3746,7 +3746,7 @@
|
|
|
3746
3746
|
var _iterator__ex2g4s = _this__u8e3s4.l();
|
|
3747
3747
|
while (_iterator__ex2g4s.m()) {
|
|
3748
3748
|
var item = _iterator__ex2g4s.n();
|
|
3749
|
-
var tmp$ret$0 = new CombinationPointClause(mapFromDetailed(item), item.
|
|
3749
|
+
var tmp$ret$0 = new CombinationPointClause(mapFromDetailed(item), item.e7g_1);
|
|
3750
3750
|
destination.j(tmp$ret$0);
|
|
3751
3751
|
}
|
|
3752
3752
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
function createBadges(_this__u8e3s4, countOfBytes, gameWinner) {
|
|
3786
3786
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3787
3787
|
var badges = ArrayList_init_$Create$_0();
|
|
3788
|
-
switch (_this__u8e3s4.
|
|
3788
|
+
switch (_this__u8e3s4.p7g_1.q2_1) {
|
|
3789
3789
|
case 0:
|
|
3790
3790
|
if (countOfBytes > 1) {
|
|
3791
3791
|
badges.j(new Badge(BadgeType_N_BYTE_getInstance(), countOfBytes));
|
|
@@ -3804,14 +3804,14 @@
|
|
|
3804
3804
|
break;
|
|
3805
3805
|
}
|
|
3806
3806
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3807
|
-
var tmp0 = _this__u8e3s4.
|
|
3807
|
+
var tmp0 = _this__u8e3s4.o7g_1;
|
|
3808
3808
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3809
3809
|
var destination = ArrayList_init_$Create$_0();
|
|
3810
3810
|
var _iterator__ex2g4s = tmp0.l();
|
|
3811
3811
|
while (_iterator__ex2g4s.m()) {
|
|
3812
3812
|
var element = _iterator__ex2g4s.n();
|
|
3813
3813
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3814
|
-
var tmp0_elvis_lhs = element.
|
|
3814
|
+
var tmp0_elvis_lhs = element.x7g_1;
|
|
3815
3815
|
var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3816
3816
|
addAll(destination, list);
|
|
3817
3817
|
}
|
|
@@ -3854,8 +3854,8 @@
|
|
|
3854
3854
|
return badges;
|
|
3855
3855
|
}
|
|
3856
3856
|
function toVM_1(_this__u8e3s4, players) {
|
|
3857
|
-
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.yag_1).
|
|
3858
|
-
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.xag_1).
|
|
3857
|
+
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.yag_1).k75_1;
|
|
3858
|
+
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.xag_1).k75_1;
|
|
3859
3859
|
// Inline function 'kotlin.collections.map' call
|
|
3860
3860
|
var this_0 = _this__u8e3s4.zag_1;
|
|
3861
3861
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3863,7 +3863,7 @@
|
|
|
3863
3863
|
var _iterator__ex2g4s = this_0.l();
|
|
3864
3864
|
while (_iterator__ex2g4s.m()) {
|
|
3865
3865
|
var item = _iterator__ex2g4s.n();
|
|
3866
|
-
var tmp$ret$0 = toVM_0(item, getPlayerIndex(players, item.
|
|
3866
|
+
var tmp$ret$0 = toVM_0(item, getPlayerIndex(players, item.n7o_1));
|
|
3867
3867
|
destination.j(tmp$ret$0);
|
|
3868
3868
|
}
|
|
3869
3869
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, destination);
|
|
@@ -3875,7 +3875,7 @@
|
|
|
3875
3875
|
tmp = null;
|
|
3876
3876
|
} else {
|
|
3877
3877
|
// Inline function 'kotlin.let' call
|
|
3878
|
-
tmp = getPlayer(players, _this__u8e3s4.bah_1).
|
|
3878
|
+
tmp = getPlayer(players, _this__u8e3s4.bah_1).k75_1;
|
|
3879
3879
|
}
|
|
3880
3880
|
var tmp4_whoShuffleCardsUserInfo = tmp;
|
|
3881
3881
|
var tmp_0;
|
|
@@ -3883,7 +3883,7 @@
|
|
|
3883
3883
|
tmp_0 = null;
|
|
3884
3884
|
} else {
|
|
3885
3885
|
// Inline function 'kotlin.let' call
|
|
3886
|
-
tmp_0 = getPlayer(players, _this__u8e3s4.cah_1).
|
|
3886
|
+
tmp_0 = getPlayer(players, _this__u8e3s4.cah_1).k75_1;
|
|
3887
3887
|
}
|
|
3888
3888
|
var tmp5_whoChoseSuitUserInfo = tmp_0;
|
|
3889
3889
|
var tmp6_playersMode = config.playersMode;
|
|
@@ -3898,15 +3898,15 @@
|
|
|
3898
3898
|
var _iterator__ex2g4s = points.l();
|
|
3899
3899
|
while (_iterator__ex2g4s.m()) {
|
|
3900
3900
|
var item = _iterator__ex2g4s.n();
|
|
3901
|
-
var tmp0_points = item.
|
|
3901
|
+
var tmp0_points = item.d8d_1;
|
|
3902
3902
|
// Inline function 'kotlin.collections.map' call
|
|
3903
|
-
var this_0 = item.
|
|
3903
|
+
var this_0 = item.c8d_1;
|
|
3904
3904
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3905
3905
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3906
3906
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
3907
3907
|
while (_iterator__ex2g4s_0.m()) {
|
|
3908
3908
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
3909
|
-
var tmp$ret$4 = getPlayer(players, item_0).
|
|
3909
|
+
var tmp$ret$4 = getPlayer(players, item_0).k75_1;
|
|
3910
3910
|
destination_0.j(tmp$ret$4);
|
|
3911
3911
|
}
|
|
3912
3912
|
var tmp$ret$7 = new PointItemViewModel(destination_0, tmp0_points);
|
|
@@ -4260,7 +4260,7 @@
|
|
|
4260
4260
|
this.xai_1 = isRatingUp;
|
|
4261
4261
|
this.yai_1 = wasPlayerOffline;
|
|
4262
4262
|
}
|
|
4263
|
-
protoOf(PlayerViewModel).
|
|
4263
|
+
protoOf(PlayerViewModel).f7a = function () {
|
|
4264
4264
|
return this.tai_1;
|
|
4265
4265
|
};
|
|
4266
4266
|
protoOf(PlayerViewModel).h6e = function () {
|
|
@@ -5571,22 +5571,22 @@
|
|
|
5571
5571
|
return tmp_0 instanceof Expectant ? tmp_0 : THROW_CCE();
|
|
5572
5572
|
}
|
|
5573
5573
|
function mapToExpectant_0(_this__u8e3s4, wrapper) {
|
|
5574
|
-
return new RestartGameExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5574
|
+
return new RestartGameExpectant(wrapper.dan_1, _this__u8e3s4.s8f_1);
|
|
5575
5575
|
}
|
|
5576
5576
|
function mapToExpectant_1(_this__u8e3s4, wrapper) {
|
|
5577
|
-
return new TeamsDataExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5577
|
+
return new TeamsDataExpectant(wrapper.dan_1, _this__u8e3s4.d8g_1, _this__u8e3s4.e8g_1);
|
|
5578
5578
|
}
|
|
5579
5579
|
function mapToExpectant_2(_this__u8e3s4, wrapper) {
|
|
5580
|
-
return new TrumpExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5580
|
+
return new TrumpExpectant(wrapper.dan_1, _this__u8e3s4.o8g_1);
|
|
5581
5581
|
}
|
|
5582
5582
|
function mapToExpectant_3(_this__u8e3s4, wrapper) {
|
|
5583
|
-
return new CombinationChoiceExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5583
|
+
return new CombinationChoiceExpectant(wrapper.dan_1, _this__u8e3s4.s8g_1, _this__u8e3s4.q8g_1, _this__u8e3s4.r8g_1);
|
|
5584
5584
|
}
|
|
5585
5585
|
function mapToExpectant_4(_this__u8e3s4, wrapper) {
|
|
5586
|
-
return new PickUpBribeExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5586
|
+
return new PickUpBribeExpectant(wrapper.dan_1, _this__u8e3s4.z8g_1, _this__u8e3s4.a8h_1);
|
|
5587
5587
|
}
|
|
5588
5588
|
function mapToExpectant_5(_this__u8e3s4, wrapper) {
|
|
5589
|
-
return new WinnerCombinationsExpectant(wrapper.dan_1, _this__u8e3s4.
|
|
5589
|
+
return new WinnerCombinationsExpectant(wrapper.dan_1, _this__u8e3s4.c8h_1);
|
|
5590
5590
|
}
|
|
5591
5591
|
function InterceptableActionWrapper(id, action, isFinished) {
|
|
5592
5592
|
isFinished = isFinished === VOID ? false : isFinished;
|
|
@@ -15190,7 +15190,7 @@
|
|
|
15190
15190
|
var _iterator__ex2g4s = this_0.l();
|
|
15191
15191
|
while (_iterator__ex2g4s.m()) {
|
|
15192
15192
|
var item = _iterator__ex2g4s.n();
|
|
15193
|
-
var tmp$ret$0 = mapToDto_8(item.
|
|
15193
|
+
var tmp$ret$0 = mapToDto_8(item.k75_1);
|
|
15194
15194
|
destination.j(tmp$ret$0);
|
|
15195
15195
|
}
|
|
15196
15196
|
var tmp_1 = destination;
|
|
@@ -15213,7 +15213,7 @@
|
|
|
15213
15213
|
tmp_3 = null;
|
|
15214
15214
|
}
|
|
15215
15215
|
var tmp$ret$9 = tmp_3;
|
|
15216
|
-
return new PersistentTableStateDto(table.version, tmp, table.sceneInfo.
|
|
15216
|
+
return new PersistentTableStateDto(table.version, tmp, table.sceneInfo.i8i_1, tmp_0, tmp_1, tmp_2, tmp$ret$9);
|
|
15217
15217
|
}
|
|
15218
15218
|
return new PersistentTableStateDto(_this__u8e3s4.nag_1, _this__u8e3s4.oag_1);
|
|
15219
15219
|
}
|
|
@@ -16844,22 +16844,22 @@
|
|
|
16844
16844
|
protoOf(GameHistoryViewModel).x5j = function () {
|
|
16845
16845
|
return this.gameId;
|
|
16846
16846
|
};
|
|
16847
|
-
protoOf(GameHistoryViewModel).
|
|
16847
|
+
protoOf(GameHistoryViewModel).q90 = function () {
|
|
16848
16848
|
return this.createdAt;
|
|
16849
16849
|
};
|
|
16850
16850
|
protoOf(GameHistoryViewModel).hb3 = function () {
|
|
16851
16851
|
return this.gameType;
|
|
16852
16852
|
};
|
|
16853
|
-
protoOf(GameHistoryViewModel).
|
|
16853
|
+
protoOf(GameHistoryViewModel).d91 = function () {
|
|
16854
16854
|
return this.users;
|
|
16855
16855
|
};
|
|
16856
16856
|
protoOf(GameHistoryViewModel).e3w = function () {
|
|
16857
16857
|
return this.config;
|
|
16858
16858
|
};
|
|
16859
|
-
protoOf(GameHistoryViewModel).
|
|
16859
|
+
protoOf(GameHistoryViewModel).k94 = function () {
|
|
16860
16860
|
return this.gameWinners;
|
|
16861
16861
|
};
|
|
16862
|
-
protoOf(GameHistoryViewModel).
|
|
16862
|
+
protoOf(GameHistoryViewModel).h94 = function () {
|
|
16863
16863
|
return this.metadata;
|
|
16864
16864
|
};
|
|
16865
16865
|
protoOf(GameHistoryViewModel).equals = function (other) {
|
|
@@ -16956,10 +16956,10 @@
|
|
|
16956
16956
|
protoOf(RoundEndedHistoryViewModel).x5j = function () {
|
|
16957
16957
|
return this.gameId;
|
|
16958
16958
|
};
|
|
16959
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
16959
|
+
protoOf(RoundEndedHistoryViewModel).g94 = function () {
|
|
16960
16960
|
return this.roundNumber;
|
|
16961
16961
|
};
|
|
16962
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
16962
|
+
protoOf(RoundEndedHistoryViewModel).t94 = function () {
|
|
16963
16963
|
return this.items;
|
|
16964
16964
|
};
|
|
16965
16965
|
protoOf(RoundEndedHistoryViewModel).jb3 = function () {
|
|
@@ -18535,13 +18535,13 @@
|
|
|
18535
18535
|
function CheckSceneBufferUseCase() {
|
|
18536
18536
|
}
|
|
18537
18537
|
protoOf(CheckSceneBufferUseCase).zb3 = function (state, action) {
|
|
18538
|
-
if (!state.
|
|
18538
|
+
if (!state.e72() && !get_isCreated(state)) {
|
|
18539
18539
|
return new PutInBuffer('CheckSceneBufferUseCase.isTableExists');
|
|
18540
18540
|
}
|
|
18541
18541
|
var table = state.c72();
|
|
18542
18542
|
if (isInterface(action, InSceneAction)) {
|
|
18543
18543
|
var tmp;
|
|
18544
|
-
if (action.j9l(table.sceneInfo.
|
|
18544
|
+
if (action.j9l(table.sceneInfo.i8i_1)) {
|
|
18545
18545
|
tmp = new AvoidBuffer('CheckSceneBufferUseCase.inScene');
|
|
18546
18546
|
} else {
|
|
18547
18547
|
tmp = new PutInBuffer('CheckSceneBufferUseCase.inScene');
|
|
@@ -18555,7 +18555,7 @@
|
|
|
18555
18555
|
this.hb4_1 = ignoreForPlayers;
|
|
18556
18556
|
}
|
|
18557
18557
|
protoOf(NextPlayerTurnBufferUseCase).zb3 = function (state, action) {
|
|
18558
|
-
if (!state.
|
|
18558
|
+
if (!state.e72() && !get_isCreated(state)) {
|
|
18559
18559
|
return new PutInBuffer('NextPlayerTurnBufferUseCase.isTableExists');
|
|
18560
18560
|
}
|
|
18561
18561
|
var table = state.c72();
|
|
@@ -18565,7 +18565,7 @@
|
|
|
18565
18565
|
return new AvoidBuffer('NextPlayerTurnBufferUseCase.ignored');
|
|
18566
18566
|
}
|
|
18567
18567
|
var tmp;
|
|
18568
|
-
if (playerTurn.
|
|
18568
|
+
if (playerTurn.l75_1.u6f()) {
|
|
18569
18569
|
tmp = new AvoidBuffer('NextPlayerTurnBufferUseCase.playerTurn');
|
|
18570
18570
|
} else {
|
|
18571
18571
|
tmp = new PutInBuffer('NextPlayerTurnBufferUseCase.playerTurn: ' + ('expected = ' + playerTurn.playerId));
|
|
@@ -18578,7 +18578,7 @@
|
|
|
18578
18578
|
}
|
|
18579
18579
|
protoOf(PassErrorActionBufferUseCase).zb3 = function (state, action) {
|
|
18580
18580
|
if (action instanceof ErrorAction) {
|
|
18581
|
-
var reason = action.
|
|
18581
|
+
var reason = action.h8h_1.w87_1;
|
|
18582
18582
|
return checkTerminatedReason(state.tableOrNull, false, reason, 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
18583
18583
|
}
|
|
18584
18584
|
return new AvoidBuffer('PassErrorActionBufferUseCase');
|
|
@@ -18625,7 +18625,7 @@
|
|
|
18625
18625
|
}
|
|
18626
18626
|
}
|
|
18627
18627
|
}
|
|
18628
|
-
if (isGameFinished && !table.sceneInfo.
|
|
18628
|
+
if (isGameFinished && !table.sceneInfo.f95()) {
|
|
18629
18629
|
return new PutInBuffer(debugLabel);
|
|
18630
18630
|
}
|
|
18631
18631
|
return new AvoidBuffer(debugLabel);
|
|
@@ -18641,7 +18641,7 @@
|
|
|
18641
18641
|
function PassTerminatedActionBufferUseCase() {
|
|
18642
18642
|
}
|
|
18643
18643
|
protoOf(PassTerminatedActionBufferUseCase).zb3 = function (state, action) {
|
|
18644
|
-
if (!state.
|
|
18644
|
+
if (!state.e72() && !get_isCreated(state)) {
|
|
18645
18645
|
return new PutInBuffer('PassTerminatedActionBufferUseCase: Table not exists');
|
|
18646
18646
|
}
|
|
18647
18647
|
if (isInterface(action, TerminatedAction)) {
|
|
@@ -18653,7 +18653,7 @@
|
|
|
18653
18653
|
function WaitPlayerAnswerBufferUseCase() {
|
|
18654
18654
|
}
|
|
18655
18655
|
protoOf(WaitPlayerAnswerBufferUseCase).zb3 = function (state, action) {
|
|
18656
|
-
if (!state.
|
|
18656
|
+
if (!state.e72() && !get_isCreated(state)) {
|
|
18657
18657
|
return new PutInBuffer('WaitPlayerAnswerBufferUseCase.isTableExists');
|
|
18658
18658
|
}
|
|
18659
18659
|
var table = state.c72();
|
|
@@ -18704,7 +18704,7 @@
|
|
|
18704
18704
|
function WaitUntilInterceptorFinishedBufferUseCase() {
|
|
18705
18705
|
}
|
|
18706
18706
|
protoOf(WaitUntilInterceptorFinishedBufferUseCase).zb3 = function (state, action) {
|
|
18707
|
-
if (!state.
|
|
18707
|
+
if (!state.e72() && !get_isCreated(state)) {
|
|
18708
18708
|
return new PutInBuffer('WaitUntilInterceptorFinishedBufferUseCase.isTableExists');
|
|
18709
18709
|
}
|
|
18710
18710
|
var clientState = get_clientPayload(state);
|
|
@@ -18774,7 +18774,7 @@
|
|
|
18774
18774
|
if (!mustConsider)
|
|
18775
18775
|
return null;
|
|
18776
18776
|
var isPartnerLeads = config.playersMode.isTeamGame && isPartnerOf($this, winCard, player, players, $this.tb4_1);
|
|
18777
|
-
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.
|
|
18777
|
+
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.p7o_1, trump, firstSuit);
|
|
18778
18778
|
if (isPartnerLeads) {
|
|
18779
18779
|
var partnerRule = config.rules.trumpCardStepPartnerMode;
|
|
18780
18780
|
switch (partnerRule.q2_1) {
|
|
@@ -18783,7 +18783,7 @@
|
|
|
18783
18783
|
return null;
|
|
18784
18784
|
case 1:
|
|
18785
18785
|
if (isPlayerCardLowerWinCard) {
|
|
18786
|
-
var playerHasHigher = hasHigherTrump($this, player.
|
|
18786
|
+
var playerHasHigher = hasHigherTrump($this, player.m75_1, winCard.p7o_1, trump, putPlayerCard, firstSuit);
|
|
18787
18787
|
return playerHasHigher ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
18788
18788
|
}
|
|
18789
18789
|
|
|
@@ -18794,7 +18794,7 @@
|
|
|
18794
18794
|
}
|
|
18795
18795
|
} else {
|
|
18796
18796
|
if (isPlayerCardLowerWinCard) {
|
|
18797
|
-
var playerHasHigher_0 = hasHigherTrump($this, player.
|
|
18797
|
+
var playerHasHigher_0 = hasHigherTrump($this, player.m75_1, winCard.p7o_1, trump, putPlayerCard, firstSuit);
|
|
18798
18798
|
return playerHasHigher_0 ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
18799
18799
|
}
|
|
18800
18800
|
}
|
|
@@ -18827,7 +18827,7 @@
|
|
|
18827
18827
|
return tmp$ret$0;
|
|
18828
18828
|
}
|
|
18829
18829
|
function isPartnerOf($this, _this__u8e3s4, player, all, teams) {
|
|
18830
|
-
return _this__u8e3s4.
|
|
18830
|
+
return _this__u8e3s4.n7o_1 === teams.i97(player.playerId, all).playerId;
|
|
18831
18831
|
}
|
|
18832
18832
|
function hasHigherTrump($this, _this__u8e3s4, winningCard, trump, playedCard, firstSuit) {
|
|
18833
18833
|
var tmp$ret$0;
|
|
@@ -18861,7 +18861,7 @@
|
|
|
18861
18861
|
}
|
|
18862
18862
|
protoOf(PutCardValidatorInteractorImpl).sb4 = function (putPlayerCard, cardsOnTable, selectedTrump, player, players, config) {
|
|
18863
18863
|
var trump = selectedTrump;
|
|
18864
|
-
var tmp0_elvis_lhs = Companion_instance.
|
|
18864
|
+
var tmp0_elvis_lhs = Companion_instance.r91(cardsOnTable);
|
|
18865
18865
|
var tmp;
|
|
18866
18866
|
if (tmp0_elvis_lhs == null) {
|
|
18867
18867
|
return null;
|
|
@@ -18869,9 +18869,9 @@
|
|
|
18869
18869
|
tmp = tmp0_elvis_lhs;
|
|
18870
18870
|
}
|
|
18871
18871
|
var firstOnTable = tmp;
|
|
18872
|
-
var firstSuit = firstOnTable.
|
|
18873
|
-
var playerHasSuit = hasSuit(this, player.
|
|
18874
|
-
var playerHasTrump = hasSuit(this, player.
|
|
18872
|
+
var firstSuit = firstOnTable.p7o_1.r5t();
|
|
18873
|
+
var playerHasSuit = hasSuit(this, player.m75_1, firstSuit);
|
|
18874
|
+
var playerHasTrump = hasSuit(this, player.m75_1, trump);
|
|
18875
18875
|
var tmp$ret$0;
|
|
18876
18876
|
$l$block_0: {
|
|
18877
18877
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -18888,7 +18888,7 @@
|
|
|
18888
18888
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
18889
18889
|
while (_iterator__ex2g4s.m()) {
|
|
18890
18890
|
var element = _iterator__ex2g4s.n();
|
|
18891
|
-
if (element.
|
|
18891
|
+
if (element.p7o_1.r5t().equals(trump)) {
|
|
18892
18892
|
tmp$ret$0 = true;
|
|
18893
18893
|
break $l$block_0;
|
|
18894
18894
|
}
|
|
@@ -18896,7 +18896,7 @@
|
|
|
18896
18896
|
tmp$ret$0 = false;
|
|
18897
18897
|
}
|
|
18898
18898
|
var anyTrumpOnTbl = tmp$ret$0;
|
|
18899
|
-
var winningCard = this.ub4_1.
|
|
18899
|
+
var winningCard = this.ub4_1.e98(cardsOnTable, trump);
|
|
18900
18900
|
var tmp1_safe_receiver = checkHigherTrump(this, config.rules.trumpCardStepMode, config, players, trump, player, putPlayerCard, firstSuit, playerHasSuit, anyTrumpOnTbl, winningCard);
|
|
18901
18901
|
if (tmp1_safe_receiver == null)
|
|
18902
18902
|
null;
|
|
@@ -19288,7 +19288,7 @@
|
|
|
19288
19288
|
var _iterator__ex2g4s = value.l();
|
|
19289
19289
|
while (_iterator__ex2g4s.m()) {
|
|
19290
19290
|
var item = _iterator__ex2g4s.n();
|
|
19291
|
-
destination.j(item.
|
|
19291
|
+
destination.j(item.k75_1);
|
|
19292
19292
|
}
|
|
19293
19293
|
|
|
19294
19294
|
suspendResult = tmp0.i24(destination, this);
|
|
@@ -19491,9 +19491,9 @@
|
|
|
19491
19491
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.round;
|
|
19492
19492
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.roundNumber;
|
|
19493
19493
|
var tmp_0 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
19494
|
-
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.
|
|
19494
|
+
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.i8i_1;
|
|
19495
19495
|
var tmp_1 = tmp6_elvis_lhs == null ? 'WAITING' : tmp6_elvis_lhs;
|
|
19496
|
-
suspendResult = tmp0.i24(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.
|
|
19496
|
+
suspendResult = tmp0.i24(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.j8i_1), this);
|
|
19497
19497
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
19498
19498
|
return suspendResult;
|
|
19499
19499
|
}
|
|
@@ -19795,7 +19795,7 @@
|
|
|
19795
19795
|
var _iterator__ex2g4s = this_0.l();
|
|
19796
19796
|
while (_iterator__ex2g4s.m()) {
|
|
19797
19797
|
var item = _iterator__ex2g4s.n();
|
|
19798
|
-
destination.j(new PlayerHandMetadataViewModel(item.playerId, item.
|
|
19798
|
+
destination.j(new PlayerHandMetadataViewModel(item.playerId, item.o75_1.o7b(), item.o75_1.r7b().p7b_1, item.o75_1.a7e(), item.o75_1.c7e()));
|
|
19799
19799
|
}
|
|
19800
19800
|
|
|
19801
19801
|
suspendResult = tmp0.i24(new PlayersHandsMetadataViewModel(destination), this);
|
|
@@ -20093,10 +20093,10 @@
|
|
|
20093
20093
|
var value = this.kbe_1;
|
|
20094
20094
|
this.s8_1 = 1;
|
|
20095
20095
|
var tmp_0;
|
|
20096
|
-
if (get_isChoosePartnerScene(value.c72().sceneInfo.
|
|
20096
|
+
if (get_isChoosePartnerScene(value.c72().sceneInfo.i8i_1)) {
|
|
20097
20097
|
tmp_0 = null;
|
|
20098
20098
|
} else {
|
|
20099
|
-
tmp_0 = this.jbe_1.ab7_1.
|
|
20099
|
+
tmp_0 = this.jbe_1.ab7_1.e9f(value.c72().players, value.c72().config);
|
|
20100
20100
|
}
|
|
20101
20101
|
|
|
20102
20102
|
var points = tmp_0;
|
|
@@ -21492,7 +21492,7 @@
|
|
|
21492
21492
|
this.t8_1 = 1;
|
|
21493
21493
|
var tmp_0 = this.ybm_1.dispatch;
|
|
21494
21494
|
var tmp0_safe_receiver = this.wbm_1.wb6_1.h6f().c71_1;
|
|
21495
|
-
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
21495
|
+
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r8k_1));
|
|
21496
21496
|
return Unit_instance;
|
|
21497
21497
|
} else if (tmp === 1) {
|
|
21498
21498
|
throw this.v8_1;
|
|
@@ -22285,9 +22285,12 @@
|
|
|
22285
22285
|
return this.wb6_1.h6f().c72();
|
|
22286
22286
|
};
|
|
22287
22287
|
protoOf(BaseGameMechanic).d72 = function () {
|
|
22288
|
-
return this.wb6_1.h6f().
|
|
22288
|
+
return this.wb6_1.h6f().tableOrNull;
|
|
22289
22289
|
};
|
|
22290
22290
|
protoOf(BaseGameMechanic).e72 = function () {
|
|
22291
|
+
return this.wb6_1.h6f().e72();
|
|
22292
|
+
};
|
|
22293
|
+
protoOf(BaseGameMechanic).f72 = function () {
|
|
22291
22294
|
return this.wb6_1.h6f().gameLifecycleState;
|
|
22292
22295
|
};
|
|
22293
22296
|
protoOf(BaseGameMechanic).onCreate = function () {
|
|
@@ -22632,7 +22635,7 @@
|
|
|
22632
22635
|
return this.dbs_1;
|
|
22633
22636
|
};
|
|
22634
22637
|
protoOf(OnlineGameMechanicImpl).observeFromClientAction = function () {
|
|
22635
|
-
return this.ebs_1.
|
|
22638
|
+
return this.ebs_1.h99();
|
|
22636
22639
|
};
|
|
22637
22640
|
protoOf(OnlineGameMechanicImpl).mechanicActions = function (actions) {
|
|
22638
22641
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -22685,7 +22688,7 @@
|
|
|
22685
22688
|
while (first.m() && second.m()) {
|
|
22686
22689
|
var tmp0_1 = first.n();
|
|
22687
22690
|
var user = second.n();
|
|
22688
|
-
list.j(tmp0_1.
|
|
22691
|
+
list.j(tmp0_1.u7a(user));
|
|
22689
22692
|
}
|
|
22690
22693
|
var tmp0_$this = table.config;
|
|
22691
22694
|
var tmp1_rules = this.cbt_1.rules;
|
|
@@ -22870,7 +22873,7 @@
|
|
|
22870
22873
|
case 1:
|
|
22871
22874
|
var $this$transform = this.cbv_1;
|
|
22872
22875
|
var value = this.bbv_1;
|
|
22873
|
-
if (value.c72().sceneInfo.
|
|
22876
|
+
if (value.c72().sceneInfo.i8i_1 === 'CALC_POINTS') {
|
|
22874
22877
|
this.s8_1 = 3;
|
|
22875
22878
|
suspendResult = $this$transform.i24(value, this);
|
|
22876
22879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -22989,7 +22992,7 @@
|
|
|
22989
22992
|
var tmp_0;
|
|
22990
22993
|
if (isShown) {
|
|
22991
22994
|
var tmp0_safe_receiver = value.c71_1;
|
|
22992
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
22995
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8k_1;
|
|
22993
22996
|
var tmp_1;
|
|
22994
22997
|
if (tmp1_safe_receiver == null) {
|
|
22995
22998
|
tmp_1 = null;
|
|
@@ -23045,11 +23048,11 @@
|
|
|
23045
23048
|
}
|
|
23046
23049
|
tmp_3 = tmp_4;
|
|
23047
23050
|
} else {
|
|
23048
|
-
var enabled = get_currentPlayer(value.c72()).
|
|
23051
|
+
var enabled = get_currentPlayer(value.c72()).l75_1.u6f();
|
|
23049
23052
|
var tmp0_0 = value.c72();
|
|
23050
23053
|
var tmp$ret$0;
|
|
23051
23054
|
l$ret$1: do {
|
|
23052
|
-
var sceneData = tmp0_0.sceneInfo.
|
|
23055
|
+
var sceneData = tmp0_0.sceneInfo.l8i_1;
|
|
23053
23056
|
if (sceneData instanceof CalcPointsSceneData) {
|
|
23054
23057
|
tmp$ret$0 = sceneData;
|
|
23055
23058
|
break l$ret$1;
|
|
@@ -23069,7 +23072,7 @@
|
|
|
23069
23072
|
this.xbv_1.dbw_1.w(VOID, "observeControlsModeCalcPoints: Scene data can't be null");
|
|
23070
23073
|
}
|
|
23071
23074
|
var tmp8_mode = CalcPointsControlsMode_READY_CONTROLS_getInstance();
|
|
23072
|
-
var tmp6_safe_receiver = sceneData_0 == null ? null : sceneData_0.
|
|
23075
|
+
var tmp6_safe_receiver = sceneData_0 == null ? null : sceneData_0.m7q_1;
|
|
23073
23076
|
var tmp_9;
|
|
23074
23077
|
if (tmp6_safe_receiver == null) {
|
|
23075
23078
|
tmp_9 = null;
|
|
@@ -23164,7 +23167,7 @@
|
|
|
23164
23167
|
var tmp$ret$0;
|
|
23165
23168
|
$l$block_0: {
|
|
23166
23169
|
// Inline function 'games.jass.logic.client.utils.getSceneClientDataOrNull' call
|
|
23167
|
-
var sceneData = this_0.sceneInfo.
|
|
23170
|
+
var sceneData = this_0.sceneInfo.l8i_1;
|
|
23168
23171
|
if (sceneData instanceof CalcPointsSceneData) {
|
|
23169
23172
|
tmp$ret$0 = sceneData;
|
|
23170
23173
|
break $l$block_0;
|
|
@@ -23181,22 +23184,22 @@
|
|
|
23181
23184
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
23182
23185
|
var tmp_0;
|
|
23183
23186
|
if (tmp0_elvis_lhs == null) {
|
|
23184
|
-
throw new MechanicException('Required ' + getKClass(CalcPointsSceneData).ea() + ', current scene is ' + toString_0(this_0.sceneInfo.
|
|
23187
|
+
throw new MechanicException('Required ' + getKClass(CalcPointsSceneData).ea() + ', current scene is ' + toString_0(this_0.sceneInfo.l8i_1));
|
|
23185
23188
|
} else {
|
|
23186
23189
|
tmp_0 = tmp0_elvis_lhs;
|
|
23187
23190
|
}
|
|
23188
23191
|
return tmp_0;
|
|
23189
23192
|
}
|
|
23190
23193
|
function mapPoints($this, _this__u8e3s4, playersMode, players, gameHistory) {
|
|
23191
|
-
var tmp = getRoundPoints($this, _this__u8e3s4.
|
|
23194
|
+
var tmp = getRoundPoints($this, _this__u8e3s4.o7q_1, playersMode);
|
|
23192
23195
|
// Inline function 'kotlin.collections.map' call
|
|
23193
|
-
var this_0 = _this__u8e3s4.
|
|
23196
|
+
var this_0 = _this__u8e3s4.o7q_1;
|
|
23194
23197
|
// Inline function 'kotlin.collections.mapTo' call
|
|
23195
23198
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
23196
23199
|
var _iterator__ex2g4s = this_0.l();
|
|
23197
23200
|
while (_iterator__ex2g4s.m()) {
|
|
23198
23201
|
var item = _iterator__ex2g4s.n();
|
|
23199
|
-
var tmp$ret$0 = toVM(item, players, _this__u8e3s4.
|
|
23202
|
+
var tmp$ret$0 = toVM(item, players, _this__u8e3s4.m7q_1);
|
|
23200
23203
|
destination.j(tmp$ret$0);
|
|
23201
23204
|
}
|
|
23202
23205
|
var tmp_0 = destination;
|
|
@@ -23214,7 +23217,7 @@
|
|
|
23214
23217
|
while (_iterator__ex2g4s.m()) {
|
|
23215
23218
|
var element = _iterator__ex2g4s.n();
|
|
23216
23219
|
var tmp_0 = sum;
|
|
23217
|
-
sum = tmp_0 + element.
|
|
23220
|
+
sum = tmp_0 + element.d7c() | 0;
|
|
23218
23221
|
}
|
|
23219
23222
|
tmp = sum + 10 | 0;
|
|
23220
23223
|
}
|
|
@@ -23226,7 +23229,7 @@
|
|
|
23226
23229
|
var _iterator__ex2g4s_0 = _this__u8e3s4.l();
|
|
23227
23230
|
while (_iterator__ex2g4s_0.m()) {
|
|
23228
23231
|
var item = _iterator__ex2g4s_0.n();
|
|
23229
|
-
var tmp$ret$2 = item.
|
|
23232
|
+
var tmp$ret$2 = item.o7g_1;
|
|
23230
23233
|
destination.j(tmp$ret$2);
|
|
23231
23234
|
}
|
|
23232
23235
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -23236,7 +23239,7 @@
|
|
|
23236
23239
|
var _iterator__ex2g4s_1 = this_0.l();
|
|
23237
23240
|
while (_iterator__ex2g4s_1.m()) {
|
|
23238
23241
|
var item_0 = _iterator__ex2g4s_1.n();
|
|
23239
|
-
var tmp0_elvis_lhs = item_0.
|
|
23242
|
+
var tmp0_elvis_lhs = item_0.x7g_1;
|
|
23240
23243
|
var tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
23241
23244
|
destination_0.j(tmp$ret$5);
|
|
23242
23245
|
}
|
|
@@ -23247,7 +23250,7 @@
|
|
|
23247
23250
|
var _iterator__ex2g4s_2 = this_1.l();
|
|
23248
23251
|
while (_iterator__ex2g4s_2.m()) {
|
|
23249
23252
|
var item_1 = _iterator__ex2g4s_2.n();
|
|
23250
|
-
var tmp$ret$8 = new CombinationPointClause(mapFromDetailed(item_1), item_1.
|
|
23253
|
+
var tmp$ret$8 = new CombinationPointClause(mapFromDetailed(item_1), item_1.e7g_1);
|
|
23251
23254
|
destination_1.j(tmp$ret$8);
|
|
23252
23255
|
}
|
|
23253
23256
|
var tmp$ret$11;
|
|
@@ -23317,7 +23320,7 @@
|
|
|
23317
23320
|
if (tmp === 0) {
|
|
23318
23321
|
this.t8_1 = 1;
|
|
23319
23322
|
var table = this.abx_1.cbw_1.h6f().c72();
|
|
23320
|
-
this.cbx_1.dispatch(new PlayerReadyFromClientAction(get_currentPlayer(table).playerId, false, this.abx_1.ebw_1.
|
|
23323
|
+
this.cbx_1.dispatch(new PlayerReadyFromClientAction(get_currentPlayer(table).playerId, false, this.abx_1.ebw_1.r9a(table.gameInfo.round)));
|
|
23321
23324
|
return Unit_instance;
|
|
23322
23325
|
} else if (tmp === 1) {
|
|
23323
23326
|
throw this.v8_1;
|
|
@@ -23383,10 +23386,10 @@
|
|
|
23383
23386
|
return mapPoints(this, _get_scene__bi9f7f(this), table.config.playersMode, table.players, table.gameHistory);
|
|
23384
23387
|
};
|
|
23385
23388
|
protoOf(CalcPointsSceneImpl).fbx = function () {
|
|
23386
|
-
return _get_scene__bi9f7f(this).
|
|
23389
|
+
return _get_scene__bi9f7f(this).l7q_1;
|
|
23387
23390
|
};
|
|
23388
23391
|
protoOf(CalcPointsSceneImpl).gbx = function () {
|
|
23389
|
-
return _get_scene__bi9f7f(this).
|
|
23392
|
+
return _get_scene__bi9f7f(this).m7q_1;
|
|
23390
23393
|
};
|
|
23391
23394
|
protoOf(CalcPointsSceneImpl).hbx = function () {
|
|
23392
23395
|
this.cbw_1.a72(CalcPointsSceneImpl$ready$slambda_0(this, null));
|
|
@@ -23451,7 +23454,7 @@
|
|
|
23451
23454
|
var tmp0 = this.sbx_1;
|
|
23452
23455
|
var value = this.tbx_1;
|
|
23453
23456
|
this.s8_1 = 1;
|
|
23454
|
-
suspendResult = tmp0.i24(get_currentPlayer(value).
|
|
23457
|
+
suspendResult = tmp0.i24(get_currentPlayer(value).n75_1.o7a_1, this);
|
|
23455
23458
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
23456
23459
|
return suspendResult;
|
|
23457
23460
|
}
|
|
@@ -23548,7 +23551,7 @@
|
|
|
23548
23551
|
var tmp0 = this.nby_1;
|
|
23549
23552
|
var value = this.oby_1;
|
|
23550
23553
|
this.s8_1 = 1;
|
|
23551
|
-
suspendResult = tmp0.i24(get_currentPlayer(value).
|
|
23554
|
+
suspendResult = tmp0.i24(get_currentPlayer(value).n75_1.o7a_1 > 0, this);
|
|
23552
23555
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
23553
23556
|
return suspendResult;
|
|
23554
23557
|
}
|
|
@@ -24873,7 +24876,7 @@
|
|
|
24873
24876
|
case 1:
|
|
24874
24877
|
var $this$transform = this.sc7_1;
|
|
24875
24878
|
var value = this.rc7_1;
|
|
24876
|
-
if (value.c72().sceneInfo.
|
|
24879
|
+
if (value.c72().sceneInfo.i8i_1 === 'CHOOSE_PARTNER') {
|
|
24877
24880
|
this.s8_1 = 3;
|
|
24878
24881
|
suspendResult = $this$transform.i24(value, this);
|
|
24879
24882
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -25010,8 +25013,8 @@
|
|
|
25010
25013
|
if (isSceneActive && notInterceptedAction) {
|
|
25011
25014
|
var player = get_currentPlayer(value.c72());
|
|
25012
25015
|
var tmp_1;
|
|
25013
|
-
if (player.
|
|
25014
|
-
var enabled = player.
|
|
25016
|
+
if (player.n75_1.g7a_1) {
|
|
25017
|
+
var enabled = player.l75_1.u6f();
|
|
25015
25018
|
var tmp_2;
|
|
25016
25019
|
if (enabled) {
|
|
25017
25020
|
tmp_2 = new TeamsControlsViewModel(TeamsControlsMode_ACCEPT_PARTNER_getInstance(), VOID, true, true);
|
|
@@ -25179,7 +25182,7 @@
|
|
|
25179
25182
|
var table = this.jc9_1.rc9_1.h6f().c72();
|
|
25180
25183
|
var tmp_0 = this.mc9_1.dispatch;
|
|
25181
25184
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
25182
|
-
var tmp1_tag = this.jc9_1.sc9_1.
|
|
25185
|
+
var tmp1_tag = this.jc9_1.sc9_1.q9a(table.gameInfo.round);
|
|
25183
25186
|
tmp_0(new PartnerSelectedFromClientAction(tmp0_playerId, false, tmp1_tag, this.kc9_1));
|
|
25184
25187
|
return Unit_instance;
|
|
25185
25188
|
} else if (tmp === 1) {
|
|
@@ -25519,7 +25522,7 @@
|
|
|
25519
25522
|
var tmp0 = this.ocb_1;
|
|
25520
25523
|
var value = this.pcb_1;
|
|
25521
25524
|
this.s8_1 = 1;
|
|
25522
|
-
suspendResult = tmp0.i24(value.sceneInfo.
|
|
25525
|
+
suspendResult = tmp0.i24(value.sceneInfo.i8i_1, this);
|
|
25523
25526
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
25524
25527
|
return suspendResult;
|
|
25525
25528
|
}
|
|
@@ -26137,14 +26140,14 @@
|
|
|
26137
26140
|
tmp$ret$0 = false;
|
|
26138
26141
|
break l$ret$1;
|
|
26139
26142
|
}
|
|
26140
|
-
var sceneId = value.c72().sceneInfo.
|
|
26143
|
+
var sceneId = value.c72().sceneInfo.i8i_1;
|
|
26141
26144
|
if (!get_isSceneWithCards(sceneId)) {
|
|
26142
26145
|
tmp$ret$0 = false;
|
|
26143
26146
|
break l$ret$1;
|
|
26144
26147
|
}
|
|
26145
26148
|
var tmp_0;
|
|
26146
26149
|
if (this.fcf_1.jcf_1) {
|
|
26147
|
-
tmp_0 = (get_currentPlayer(value.c72()).
|
|
26150
|
+
tmp_0 = (get_currentPlayer(value.c72()).l75_1.u6f() && get_clientPayload(value).eaa_1);
|
|
26148
26151
|
} else {
|
|
26149
26152
|
tmp_0 = get_clientPayload(value).eaa_1;
|
|
26150
26153
|
}
|
|
@@ -26954,7 +26957,7 @@
|
|
|
26954
26957
|
var tmp0 = this.icl_1;
|
|
26955
26958
|
var tmp$ret$0 = Unit_instance;
|
|
26956
26959
|
l$ret$1: do {
|
|
26957
|
-
if (!tmp0.
|
|
26960
|
+
if (!tmp0.e72()) {
|
|
26958
26961
|
tmp$ret$0 = null;
|
|
26959
26962
|
break l$ret$1;
|
|
26960
26963
|
}
|
|
@@ -27098,7 +27101,7 @@
|
|
|
27098
27101
|
var tmp0 = this.mcm_1;
|
|
27099
27102
|
var tmp$ret$0 = Unit_instance;
|
|
27100
27103
|
l$ret$1: do {
|
|
27101
|
-
if (!tmp0.
|
|
27104
|
+
if (!tmp0.e72()) {
|
|
27102
27105
|
tmp$ret$0 = null;
|
|
27103
27106
|
break l$ret$1;
|
|
27104
27107
|
}
|
|
@@ -27230,7 +27233,7 @@
|
|
|
27230
27233
|
this.s8_1 = 1;
|
|
27231
27234
|
var tmp$ret$0 = Unit_instance;
|
|
27232
27235
|
l$ret$1: do {
|
|
27233
|
-
if (!value.
|
|
27236
|
+
if (!value.e72()) {
|
|
27234
27237
|
tmp$ret$0 = null;
|
|
27235
27238
|
break l$ret$1;
|
|
27236
27239
|
}
|
|
@@ -27350,7 +27353,7 @@
|
|
|
27350
27353
|
this.lco_1 = this.oco_1;
|
|
27351
27354
|
var table = this.nco_1;
|
|
27352
27355
|
var player = getPlayer(table.players, this.jco_1);
|
|
27353
|
-
var tmp0_safe_receiver = player.
|
|
27356
|
+
var tmp0_safe_receiver = player.l75_1.t6f_1;
|
|
27354
27357
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z6f_1;
|
|
27355
27358
|
if (tmp0_elvis_lhs == null) {
|
|
27356
27359
|
this.s8_1 = 4;
|
|
@@ -27484,7 +27487,7 @@
|
|
|
27484
27487
|
var _iterator__ex2g4s_0 = destination.l();
|
|
27485
27488
|
while (_iterator__ex2g4s_0.m()) {
|
|
27486
27489
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
27487
|
-
if (element_0.
|
|
27490
|
+
if (element_0.k76()) {
|
|
27488
27491
|
destination_0.j(element_0);
|
|
27489
27492
|
}
|
|
27490
27493
|
}
|
|
@@ -27503,7 +27506,7 @@
|
|
|
27503
27506
|
var iterator = destination_1.s(destination_1.o());
|
|
27504
27507
|
while (iterator.k4()) {
|
|
27505
27508
|
var element_1 = iterator.m4();
|
|
27506
|
-
if (element_1.
|
|
27509
|
+
if (element_1.p77().v6e_1 === playerId) {
|
|
27507
27510
|
tmp$ret$10 = element_1;
|
|
27508
27511
|
break $l$block;
|
|
27509
27512
|
}
|
|
@@ -27898,7 +27901,7 @@
|
|
|
27898
27901
|
var tmp0 = this.ccq_1;
|
|
27899
27902
|
var value = this.ecq_1;
|
|
27900
27903
|
this.s8_1 = 1;
|
|
27901
|
-
suspendResult = tmp0.i24(this.dcq_1.hcq_1.kcq(true, get_currentPlayer(value.c72()).
|
|
27904
|
+
suspendResult = tmp0.i24(this.dcq_1.hcq_1.kcq(true, get_currentPlayer(value.c72()).m75_1, get_isCreated(value), value.c72(), get_clientPayload(value)), this);
|
|
27902
27905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
27903
27906
|
return suspendResult;
|
|
27904
27907
|
}
|
|
@@ -28093,7 +28096,7 @@
|
|
|
28093
28096
|
var tmp0 = this.acs_1;
|
|
28094
28097
|
var value = this.bcs_1;
|
|
28095
28098
|
this.s8_1 = 1;
|
|
28096
|
-
suspendResult = tmp0.i24(value == null ? null : value.
|
|
28099
|
+
suspendResult = tmp0.i24(value == null ? null : value.q79_1, this);
|
|
28097
28100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
28098
28101
|
return suspendResult;
|
|
28099
28102
|
}
|
|
@@ -28796,7 +28799,7 @@
|
|
|
28796
28799
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
28797
28800
|
while (_iterator__ex2g4s.m()) {
|
|
28798
28801
|
var element = _iterator__ex2g4s.n();
|
|
28799
|
-
if (element.
|
|
28802
|
+
if (element.n7o_1 === currentPlayerId) {
|
|
28800
28803
|
tmp$ret$0 = false;
|
|
28801
28804
|
break $l$block_0;
|
|
28802
28805
|
}
|
|
@@ -28820,8 +28823,8 @@
|
|
|
28820
28823
|
var _iterator__ex2g4s_0 = updatedCardsOnTable.l();
|
|
28821
28824
|
while (_iterator__ex2g4s_0.m()) {
|
|
28822
28825
|
var item = _iterator__ex2g4s_0.n();
|
|
28823
|
-
var highlightedCards = $this.hcq_1.ccx(item.
|
|
28824
|
-
var tmp$ret$2 = toVMV2(item, getPlayerIndex(table.players, item.
|
|
28826
|
+
var highlightedCards = $this.hcq_1.ccx(item.n7o_1 === currentPlayerId, clientPayload.haa_1);
|
|
28827
|
+
var tmp$ret$2 = toVMV2(item, getPlayerIndex(table.players, item.n7o_1), highlightedCards);
|
|
28825
28828
|
destination.j(tmp$ret$2);
|
|
28826
28829
|
}
|
|
28827
28830
|
return destination;
|
|
@@ -28830,14 +28833,14 @@
|
|
|
28830
28833
|
if (interceptedPickUpBribeMechanicAction == null)
|
|
28831
28834
|
return null;
|
|
28832
28835
|
var tmp;
|
|
28833
|
-
if (interceptedPickUpBribeMechanicAction.ean_1.
|
|
28836
|
+
if (interceptedPickUpBribeMechanicAction.ean_1.a8h_1 === 0) {
|
|
28834
28837
|
// Inline function 'kotlin.collections.flatMap' call
|
|
28835
28838
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
28836
28839
|
var destination = ArrayList_init_$Create$_0();
|
|
28837
28840
|
var _iterator__ex2g4s = players.l();
|
|
28838
28841
|
while (_iterator__ex2g4s.m()) {
|
|
28839
28842
|
var element = _iterator__ex2g4s.n();
|
|
28840
|
-
var list = filterWithFirstCardOrBela(element.
|
|
28843
|
+
var list = filterWithFirstCardOrBela(element.p75_1.t7b_1);
|
|
28841
28844
|
addAll(destination, list);
|
|
28842
28845
|
}
|
|
28843
28846
|
var tmp$ret$3;
|
|
@@ -28856,7 +28859,7 @@
|
|
|
28856
28859
|
var _iterator__ex2g4s_0 = destination.l();
|
|
28857
28860
|
while (_iterator__ex2g4s_0.m()) {
|
|
28858
28861
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
28859
|
-
if (element_0.
|
|
28862
|
+
if (element_0.b7g_1.equals(CombinationState_ACCEPTED_getInstance())) {
|
|
28860
28863
|
tmp$ret$3 = true;
|
|
28861
28864
|
break $l$block_0;
|
|
28862
28865
|
}
|
|
@@ -29564,18 +29567,18 @@
|
|
|
29564
29567
|
var tmp_0;
|
|
29565
29568
|
if (tmp0_elvis_lhs == null) {
|
|
29566
29569
|
var tmp2_safe_receiver = expectant == null ? null : expectant.ean_1;
|
|
29567
|
-
tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
29570
|
+
tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o8g_1;
|
|
29568
29571
|
} else {
|
|
29569
29572
|
tmp_0 = tmp0_elvis_lhs;
|
|
29570
29573
|
}
|
|
29571
29574
|
|
|
29572
29575
|
var selectedRoundTrump = tmp_0;
|
|
29573
|
-
var cardDeckTrump = value.c72().requireCardDeck.
|
|
29576
|
+
var cardDeckTrump = value.c72().requireCardDeck.n85_1.r5t();
|
|
29574
29577
|
var tmp_1;
|
|
29575
29578
|
if (selectedRoundTrump == null) {
|
|
29576
|
-
tmp_1 = new TrumpViewModel(cardDeckTrump, false, get_currentPlayer(value.c72()).
|
|
29579
|
+
tmp_1 = new TrumpViewModel(cardDeckTrump, false, get_currentPlayer(value.c72()).n75_1.q7a_1);
|
|
29577
29580
|
} else {
|
|
29578
|
-
tmp_1 = new TrumpViewModel(selectedRoundTrump, true, get_currentPlayer(value.c72()).
|
|
29581
|
+
tmp_1 = new TrumpViewModel(selectedRoundTrump, true, get_currentPlayer(value.c72()).n75_1.q7a_1);
|
|
29579
29582
|
}
|
|
29580
29583
|
|
|
29581
29584
|
suspendResult = tmp0.i24(tmp_1, this);
|
|
@@ -31264,7 +31267,7 @@
|
|
|
31264
31267
|
var item = _iterator__ex2g4s.n();
|
|
31265
31268
|
var tmp0_$this = $this.md4_1;
|
|
31266
31269
|
var tmp1_playerId = item.playerId;
|
|
31267
|
-
var tmp2_cards = item.
|
|
31270
|
+
var tmp2_cards = item.m75_1;
|
|
31268
31271
|
var tmp3_players = mapWithIndex(table.players);
|
|
31269
31272
|
var playerCards = tmp0_$this.pdd(tmp1_playerId, true, tmp2_cards, tmp3_players, null);
|
|
31270
31273
|
var tmp4_$this = $this.md4_1;
|
|
@@ -31273,10 +31276,10 @@
|
|
|
31273
31276
|
destination.j(tmp$ret$0);
|
|
31274
31277
|
}
|
|
31275
31278
|
var playersCardsToDistribute = flatten(destination);
|
|
31276
|
-
var tmp1_elvis_lhs = cardDeck == null ? null : cardDeck.
|
|
31279
|
+
var tmp1_elvis_lhs = cardDeck == null ? null : cardDeck.s91();
|
|
31277
31280
|
var tmp4_otherCardsCount = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
31278
|
-
var tmp5_trumpCard = cardDeck == null ? null : cardDeck.
|
|
31279
|
-
var tmp6_topOpenedCard = cardDeck == null ? null : cardDeck.
|
|
31281
|
+
var tmp5_trumpCard = cardDeck == null ? null : cardDeck.n85_1;
|
|
31282
|
+
var tmp6_topOpenedCard = cardDeck == null ? null : cardDeck.o85_1;
|
|
31280
31283
|
var tmp7_isUsed = isCardDeckUsed($this, table, clientPayload);
|
|
31281
31284
|
return new CardDeckViewModel(tmp4_otherCardsCount, tmp5_trumpCard, tmp6_topOpenedCard, tmp7_isUsed, playersCardsToDistribute);
|
|
31282
31285
|
}
|
|
@@ -31302,10 +31305,10 @@
|
|
|
31302
31305
|
}
|
|
31303
31306
|
}
|
|
31304
31307
|
var distributionTransition = firstOrNull(destination);
|
|
31305
|
-
return new CardDeckViewModelV2(cardDeck.
|
|
31308
|
+
return new CardDeckViewModelV2(cardDeck.s91(), cardDeck.n85_1, cardDeck.o85_1, getCardDeckState($this, table, clientPayload), distributionTransition);
|
|
31306
31309
|
}
|
|
31307
31310
|
function isCardDeckUsed($this, table, clientPayload) {
|
|
31308
|
-
switch (table.sceneInfo.
|
|
31311
|
+
switch (table.sceneInfo.i8i_1) {
|
|
31309
31312
|
case 'TRADE':
|
|
31310
31313
|
return false;
|
|
31311
31314
|
case 'EARN_POINTS':
|
|
@@ -31320,7 +31323,7 @@
|
|
|
31320
31323
|
}
|
|
31321
31324
|
function getCardDeckState($this, table, clientPayload) {
|
|
31322
31325
|
var tmp;
|
|
31323
|
-
switch (table.sceneInfo.
|
|
31326
|
+
switch (table.sceneInfo.i8i_1) {
|
|
31324
31327
|
case 'TRADE':
|
|
31325
31328
|
tmp = CardDeckState_READY_TO_DEAL_getInstance();
|
|
31326
31329
|
break;
|
|
@@ -31419,7 +31422,7 @@
|
|
|
31419
31422
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
31420
31423
|
while (_iterator__ex2g4s.m()) {
|
|
31421
31424
|
var element = _iterator__ex2g4s.n();
|
|
31422
|
-
if (element.
|
|
31425
|
+
if (element.n7o_1 === currentPlayerId) {
|
|
31423
31426
|
tmp$ret$0 = false;
|
|
31424
31427
|
break $l$block_0;
|
|
31425
31428
|
}
|
|
@@ -31443,7 +31446,7 @@
|
|
|
31443
31446
|
var _iterator__ex2g4s_0 = updatedCardsOnTable.l();
|
|
31444
31447
|
while (_iterator__ex2g4s_0.m()) {
|
|
31445
31448
|
var item = _iterator__ex2g4s_0.n();
|
|
31446
|
-
var tmp$ret$2 = toVM_0(item, getPlayerIndex(players, item.
|
|
31449
|
+
var tmp$ret$2 = toVM_0(item, getPlayerIndex(players, item.n7o_1));
|
|
31447
31450
|
destination.j(tmp$ret$2);
|
|
31448
31451
|
}
|
|
31449
31452
|
return destination;
|
|
@@ -32262,8 +32265,8 @@
|
|
|
32262
32265
|
var value = this.tdf_1;
|
|
32263
32266
|
this.s8_1 = 1;
|
|
32264
32267
|
var tmp0_safe_receiver = singleOrNull(filterWhoChoseSuit(value.c72().players));
|
|
32265
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
32266
|
-
var isFirstSuitCirclePassed = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
32268
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n75_1;
|
|
32269
|
+
var isFirstSuitCirclePassed = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7e();
|
|
32267
32270
|
var tmp_0;
|
|
32268
32271
|
if (!(isFirstSuitCirclePassed == null)) {
|
|
32269
32272
|
var tmp0_0 = get_clientPayload(value).baa_1;
|
|
@@ -32396,7 +32399,7 @@
|
|
|
32396
32399
|
case 1:
|
|
32397
32400
|
var $this$transform = this.qdg_1;
|
|
32398
32401
|
var value = this.pdg_1;
|
|
32399
|
-
if (value.c72().isCardDeckExist && value.c72().sceneInfo.
|
|
32402
|
+
if (value.c72().isCardDeckExist && value.c72().sceneInfo.i8i_1 === 'TRADE') {
|
|
32400
32403
|
this.s8_1 = 3;
|
|
32401
32404
|
suspendResult = $this$transform.i24(value, this);
|
|
32402
32405
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -32517,16 +32520,16 @@
|
|
|
32517
32520
|
break l$ret$1;
|
|
32518
32521
|
}
|
|
32519
32522
|
var player = get_currentPlayer(value.c72());
|
|
32520
|
-
var isShown = player.
|
|
32523
|
+
var isShown = player.l75_1.u6f() && get_clientPayload(value).eaa_1;
|
|
32521
32524
|
var tmp_0;
|
|
32522
|
-
if (isShown && value.c72().sceneInfo.
|
|
32525
|
+
if (isShown && value.c72().sceneInfo.k8i_1 === 'PLAYER_TURN') {
|
|
32523
32526
|
var tmp_1;
|
|
32524
|
-
switch (player.
|
|
32527
|
+
switch (player.n75_1.q7a_1.q2_1) {
|
|
32525
32528
|
case 0:
|
|
32526
|
-
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_FIRST_CIRCLE_CONTROLS_getInstance(), value.c72().requireCardDeck.
|
|
32529
|
+
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_FIRST_CIRCLE_CONTROLS_getInstance(), value.c72().requireCardDeck.n85_1.r5t(), true);
|
|
32527
32530
|
break;
|
|
32528
32531
|
case 1:
|
|
32529
|
-
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_SECOND_CIRCLE_CONTROLS_getInstance(), value.c72().requireCardDeck.
|
|
32532
|
+
tmp_1 = new TradeControlsViewModel(SelectSuitControlsMode_SECOND_CIRCLE_CONTROLS_getInstance(), value.c72().requireCardDeck.n85_1.r5t(), true);
|
|
32530
32533
|
break;
|
|
32531
32534
|
case 2:
|
|
32532
32535
|
tmp_1 = new HiddenControlsViewModel();
|
|
@@ -32707,11 +32710,11 @@
|
|
|
32707
32710
|
var currentPlayer = get_currentPlayer(table);
|
|
32708
32711
|
var tmp_0 = this.kdi_1.dispatch;
|
|
32709
32712
|
var tmp0_elvis_lhs = this.idi_1;
|
|
32710
|
-
var tmp3_suit = tmp0_elvis_lhs == null ? table.requireCardDeck.
|
|
32713
|
+
var tmp3_suit = tmp0_elvis_lhs == null ? table.requireCardDeck.n85_1.r5t() : tmp0_elvis_lhs;
|
|
32711
32714
|
var tmp4_playerId = currentPlayer.playerId;
|
|
32712
32715
|
var tmp1_$this = this.hdi_1.ndi_1;
|
|
32713
32716
|
var tmp2_round = table.gameInfo.round;
|
|
32714
|
-
var tmp5_tag = tmp1_$this.
|
|
32717
|
+
var tmp5_tag = tmp1_$this.t9a(tmp2_round, currentPlayer);
|
|
32715
32718
|
tmp_0(new SuitChoiceFromClientAction(tmp4_playerId, false, tmp5_tag, tmp3_suit));
|
|
32716
32719
|
return Unit_instance;
|
|
32717
32720
|
} else if (tmp === 1) {
|
|
@@ -32760,13 +32763,13 @@
|
|
|
32760
32763
|
this.t8_1 = 1;
|
|
32761
32764
|
var table = this.ydi_1.state.c72();
|
|
32762
32765
|
var currentPlayer = get_currentPlayer(table);
|
|
32763
|
-
var playerOption = currentPlayer.
|
|
32764
|
-
if (playerOption.
|
|
32765
|
-
this.ydi_1.dispatch(new InfoMessageAction(this.wdi_1.mdi_1.
|
|
32766
|
+
var playerOption = currentPlayer.n75_1;
|
|
32767
|
+
if (playerOption.j7a_1 && playerOption.u7e() && !table.config.rules.playWithoutLiabilities) {
|
|
32768
|
+
this.ydi_1.dispatch(new InfoMessageAction(this.wdi_1.mdi_1.o99(ValidationCode_SUIT_VALIDATION_NEED_TO_PLAY_getInstance())));
|
|
32766
32769
|
} else {
|
|
32767
32770
|
var tmp_0 = this.ydi_1.dispatch;
|
|
32768
32771
|
var tmp0_playerId = currentPlayer.playerId;
|
|
32769
|
-
var tmp1_tag = this.wdi_1.ndi_1.
|
|
32772
|
+
var tmp1_tag = this.wdi_1.ndi_1.t9a(table.gameInfo.round, currentPlayer);
|
|
32770
32773
|
tmp_0(new SuitChoiceFromClientAction(tmp0_playerId, false, tmp1_tag, null));
|
|
32771
32774
|
}
|
|
32772
32775
|
return Unit_instance;
|
|
@@ -34640,7 +34643,7 @@
|
|
|
34640
34643
|
var tmp = store.dispatch;
|
|
34641
34644
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
34642
34645
|
var tmp1_isAccepted = action_0.hdj_1;
|
|
34643
|
-
var tmp2_tag = this.idm_1.
|
|
34646
|
+
var tmp2_tag = this.idm_1.s9a(table.sceneInfo, table.gameInfo.round);
|
|
34644
34647
|
tmp(new CombinationChoiceFromClientAction(tmp0_playerId, false, tmp2_tag, tmp1_isAccepted));
|
|
34645
34648
|
}
|
|
34646
34649
|
};
|
|
@@ -34659,9 +34662,9 @@
|
|
|
34659
34662
|
next(action_0);
|
|
34660
34663
|
var table = store.state.c72();
|
|
34661
34664
|
var player = get_currentPlayer(table);
|
|
34662
|
-
var playerCombinations = player.
|
|
34665
|
+
var playerCombinations = player.p75_1.t7b_1;
|
|
34663
34666
|
// Inline function 'kotlin.collections.map' call
|
|
34664
|
-
var this_0 = this.jdm_1.
|
|
34667
|
+
var this_0 = this.jdm_1.l9a(playerCombinations);
|
|
34665
34668
|
// Inline function 'kotlin.collections.mapTo' call
|
|
34666
34669
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
34667
34670
|
var _iterator__ex2g4s = this_0.l();
|
|
@@ -34769,7 +34772,7 @@
|
|
|
34769
34772
|
if (tmp_0) {
|
|
34770
34773
|
tmp = new CombinationToAnnounceAction(findFirstRoundCombinations, acceptedCombinations, declinedCombinations);
|
|
34771
34774
|
} else {
|
|
34772
|
-
var tmp0_safe_receiver = this.jdm_1.
|
|
34775
|
+
var tmp0_safe_receiver = this.jdm_1.m9a(action_0.edj_1.s6i_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
34773
34776
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
34774
34777
|
var tmp_6;
|
|
34775
34778
|
var tmp_7;
|
|
@@ -34846,7 +34849,7 @@
|
|
|
34846
34849
|
var tmp5_card = action_0.edj_1.s6i_1;
|
|
34847
34850
|
var tmp1_cardNumber = table.cardsOnTable.o();
|
|
34848
34851
|
var tmp2_round = table.gameInfo.round;
|
|
34849
|
-
var tmp6_tag = this.kdm_1.
|
|
34852
|
+
var tmp6_tag = this.kdm_1.u9a(tmp2_round, VOID, tmp1_cardNumber);
|
|
34850
34853
|
tmp_6 = new CardFromClientAction(tmp3_playerId, false, tmp6_tag, tmp5_card, tmp4_combinations);
|
|
34851
34854
|
}
|
|
34852
34855
|
tmp = tmp_6;
|
|
@@ -34957,8 +34960,8 @@
|
|
|
34957
34960
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
34958
34961
|
next(action_0);
|
|
34959
34962
|
if (action_0 instanceof SceneActMechanicAction)
|
|
34960
|
-
if (action_0.
|
|
34961
|
-
var tmp0 = action_0.
|
|
34963
|
+
if (action_0.a8g_1 === 'WAITING_ACT') {
|
|
34964
|
+
var tmp0 = action_0.b8g_1;
|
|
34962
34965
|
var tmp$ret$0;
|
|
34963
34966
|
$l$block: {
|
|
34964
34967
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -34969,14 +34972,14 @@
|
|
|
34969
34972
|
throw new MechanicException('Required ' + getKClass(WaitingActData).ea() + ', current act is ' + toString_0(tmp0));
|
|
34970
34973
|
}
|
|
34971
34974
|
var waitingActData = tmp$ret$0;
|
|
34972
|
-
var requestPayload = waitingActData.
|
|
34975
|
+
var requestPayload = waitingActData.r7p_1;
|
|
34973
34976
|
if (!(requestPayload == null)) {
|
|
34974
34977
|
if (requestPayload instanceof CardDeckRequest) {
|
|
34975
|
-
if (this.ndm_1 === waitingActData.
|
|
34978
|
+
if (this.ndm_1 === waitingActData.o7p()) {
|
|
34976
34979
|
var tmp = store.dispatch;
|
|
34977
34980
|
// Inline function 'kotlin.collections.List' call
|
|
34978
34981
|
// Inline function 'kotlin.collections.MutableList' call
|
|
34979
|
-
var size = requestPayload.
|
|
34982
|
+
var size = requestPayload.p7p_1;
|
|
34980
34983
|
var list = ArrayList_init_$Create$(size);
|
|
34981
34984
|
// Inline function 'kotlin.repeat' call
|
|
34982
34985
|
var inductionVariable = 0;
|
|
@@ -34993,7 +34996,7 @@
|
|
|
34993
34996
|
var _iterator__ex2g4s = list.l();
|
|
34994
34997
|
while (_iterator__ex2g4s.m()) {
|
|
34995
34998
|
var item = _iterator__ex2g4s.n();
|
|
34996
|
-
var tmp$ret$6 = this.odm_1.
|
|
34999
|
+
var tmp$ret$6 = this.odm_1.n9a();
|
|
34997
35000
|
destination.j(tmp$ret$6);
|
|
34998
35001
|
}
|
|
34999
35002
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -35002,10 +35005,10 @@
|
|
|
35002
35005
|
var _iterator__ex2g4s_0 = destination.l();
|
|
35003
35006
|
while (_iterator__ex2g4s_0.m()) {
|
|
35004
35007
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
35005
|
-
var tmp$ret$9 = Companion_instance_1.
|
|
35008
|
+
var tmp$ret$9 = Companion_instance_1.g89(item_0);
|
|
35006
35009
|
destination_0.j(tmp$ret$9);
|
|
35007
35010
|
}
|
|
35008
|
-
var tmp3_tag = this.pdm_1.
|
|
35011
|
+
var tmp3_tag = this.pdm_1.p9a(action_0.z8f_1, store.state.c72().gameInfo.round);
|
|
35009
35012
|
tmp(new RequestedCardDecksFromClientAction(destination_0, this.ndm_1, false, tmp3_tag));
|
|
35010
35013
|
}
|
|
35011
35014
|
} else {
|
|
@@ -35110,8 +35113,8 @@
|
|
|
35110
35113
|
var nextTurnPlayerId = singleOrNull(action.c9l());
|
|
35111
35114
|
if (!(nextTurnPlayerId == null) && currentPlayerId === nextTurnPlayerId) {
|
|
35112
35115
|
var nextTurnPlayer = getPlayer(table.players, nextTurnPlayerId);
|
|
35113
|
-
if (lastCardInteractor.
|
|
35114
|
-
var gameCard = single(nextTurnPlayer.
|
|
35116
|
+
if (lastCardInteractor.e9a(nextTurnPlayer)) {
|
|
35117
|
+
var gameCard = single(nextTurnPlayer.m75_1);
|
|
35115
35118
|
return new PutCardAndCheckCombinationsAction(new ProcessingCard(gameCard));
|
|
35116
35119
|
}
|
|
35117
35120
|
}
|
|
@@ -35143,7 +35146,7 @@
|
|
|
35143
35146
|
// Inline function 'kotlin.with' call
|
|
35144
35147
|
var $this$with = store.state.c72();
|
|
35145
35148
|
var player = getPlayer($this$with.players, playerId);
|
|
35146
|
-
store.dispatch(new MessageMechanicAction($this.mdl_1.
|
|
35149
|
+
store.dispatch(new MessageMechanicAction($this.mdl_1.m99(player.n75_1.w7e(), selectedSuit, player.k75_1)));
|
|
35147
35150
|
}
|
|
35148
35151
|
function onCardMessages($this, store, playerId, combinations) {
|
|
35149
35152
|
// Inline function 'kotlin.with' call
|
|
@@ -35161,17 +35164,17 @@
|
|
|
35161
35164
|
var _iterator__ex2g4s = combinations.l();
|
|
35162
35165
|
while (_iterator__ex2g4s.m()) {
|
|
35163
35166
|
var item = _iterator__ex2g4s.n();
|
|
35164
|
-
var tmp$ret$0 = item.
|
|
35167
|
+
var tmp$ret$0 = item.l7p_1;
|
|
35165
35168
|
destination.j(tmp$ret$0);
|
|
35166
35169
|
}
|
|
35167
|
-
tmp_0(new MessageMechanicAction($this.mdl_1.
|
|
35170
|
+
tmp_0(new MessageMechanicAction($this.mdl_1.k99(destination, player.k75_1)));
|
|
35168
35171
|
tmp = Unit_instance;
|
|
35169
35172
|
}
|
|
35170
35173
|
}
|
|
35171
35174
|
function onCombinationChoiceMessages($this, store, playerId, isAnnounced) {
|
|
35172
35175
|
var state = store.state;
|
|
35173
35176
|
if (isAnnounced) {
|
|
35174
|
-
var tmp0 = state.c72().sceneInfo.
|
|
35177
|
+
var tmp0 = state.c72().sceneInfo.m8i_1;
|
|
35175
35178
|
var tmp$ret$0;
|
|
35176
35179
|
$l$block: {
|
|
35177
35180
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -35185,32 +35188,32 @@
|
|
|
35185
35188
|
var player = getPlayer(state.c72().players, playerId);
|
|
35186
35189
|
var tmp = store.dispatch;
|
|
35187
35190
|
// Inline function 'kotlin.collections.map' call
|
|
35188
|
-
var this_0 = combinationActData.
|
|
35191
|
+
var this_0 = combinationActData.h7p_1;
|
|
35189
35192
|
// Inline function 'kotlin.collections.mapTo' call
|
|
35190
35193
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
35191
35194
|
var _iterator__ex2g4s = this_0.l();
|
|
35192
35195
|
while (_iterator__ex2g4s.m()) {
|
|
35193
35196
|
var item = _iterator__ex2g4s.n();
|
|
35194
|
-
var tmp$ret$1 = item.
|
|
35197
|
+
var tmp$ret$1 = item.l7p_1;
|
|
35195
35198
|
destination.j(tmp$ret$1);
|
|
35196
35199
|
}
|
|
35197
|
-
tmp(new MessageMechanicAction($this.mdl_1.
|
|
35200
|
+
tmp(new MessageMechanicAction($this.mdl_1.k99(destination, player.k75_1)));
|
|
35198
35201
|
}
|
|
35199
35202
|
}
|
|
35200
35203
|
function onWinnerCombinationMessages($this, store, winnerCombinations) {
|
|
35201
35204
|
// Inline function 'kotlin.with' call
|
|
35202
35205
|
var $this$with = store.state.c72();
|
|
35203
|
-
var message = $this.mdl_1.
|
|
35206
|
+
var message = $this.mdl_1.l99(winnerCombinations, $this$with.players);
|
|
35204
35207
|
store.dispatch(new MessageMechanicAction(message));
|
|
35205
35208
|
}
|
|
35206
35209
|
function onSceneMessages($this, store, action) {
|
|
35207
35210
|
var state = store.state;
|
|
35208
35211
|
var table = state.c72();
|
|
35209
|
-
var tmp0_subject = action.
|
|
35212
|
+
var tmp0_subject = action.v8f_1;
|
|
35210
35213
|
if (tmp0_subject === 'TRADE') {
|
|
35211
35214
|
var tmp;
|
|
35212
35215
|
if (table.config.playersMode.isTeamGame) {
|
|
35213
|
-
var tmp0 = $this.odl_1.
|
|
35216
|
+
var tmp0 = $this.odl_1.y98(table.players);
|
|
35214
35217
|
var tmp$ret$0;
|
|
35215
35218
|
$l$block_0: {
|
|
35216
35219
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -35233,7 +35236,7 @@
|
|
|
35233
35236
|
while (_iterator__ex2g4s_0.m()) {
|
|
35234
35237
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
35235
35238
|
var tmp_1 = sum;
|
|
35236
|
-
sum = tmp_1 + element_0.
|
|
35239
|
+
sum = tmp_1 + element_0.p75_1.s7b_1 | 0;
|
|
35237
35240
|
}
|
|
35238
35241
|
if (sum >= table.config.pointsMode.value) {
|
|
35239
35242
|
tmp$ret$0 = true;
|
|
@@ -35261,7 +35264,7 @@
|
|
|
35261
35264
|
var _iterator__ex2g4s_1 = tmp0_0.l();
|
|
35262
35265
|
while (_iterator__ex2g4s_1.m()) {
|
|
35263
35266
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
35264
|
-
if (element_1.
|
|
35267
|
+
if (element_1.p75_1.s7b_1 >= table.config.pointsMode.value) {
|
|
35265
35268
|
tmp$ret$4 = true;
|
|
35266
35269
|
break $l$block_2;
|
|
35267
35270
|
}
|
|
@@ -35272,7 +35275,7 @@
|
|
|
35272
35275
|
}
|
|
35273
35276
|
var hasWinners = tmp;
|
|
35274
35277
|
if (hasWinners) {
|
|
35275
|
-
store.dispatch(new MessageMechanicAction($this.mdl_1.
|
|
35278
|
+
store.dispatch(new MessageMechanicAction($this.mdl_1.p99('ONE_MORE_ROUND_NEEDED_ID')));
|
|
35276
35279
|
}
|
|
35277
35280
|
var tmp0_1 = action.sceneData;
|
|
35278
35281
|
var tmp$ret$6;
|
|
@@ -35285,10 +35288,10 @@
|
|
|
35285
35288
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0_1));
|
|
35286
35289
|
}
|
|
35287
35290
|
var scene = tmp$ret$6;
|
|
35288
|
-
store.dispatch(new MessageMechanicAction($this.mdl_1.
|
|
35289
|
-
var randomData = scene.
|
|
35291
|
+
store.dispatch(new MessageMechanicAction($this.mdl_1.j99(getPlayer(table.players, scene.x7q_1).k75_1, scene.v7q_1)));
|
|
35292
|
+
var randomData = scene.u7q_1;
|
|
35290
35293
|
if (!(randomData == null)) {
|
|
35291
|
-
store.dispatch(new MessageMechanicAction($this.mdl_1.
|
|
35294
|
+
store.dispatch(new MessageMechanicAction($this.mdl_1.t99(randomData)));
|
|
35292
35295
|
}
|
|
35293
35296
|
} else if (tmp0_subject === 'CALC_POINTS') {
|
|
35294
35297
|
var tmp0_2 = action.sceneData;
|
|
@@ -35306,27 +35309,27 @@
|
|
|
35306
35309
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
35307
35310
|
var tmp_3 = store.dispatch;
|
|
35308
35311
|
// Inline function 'kotlin.collections.map' call
|
|
35309
|
-
var this_0 = $this.ndl_1.
|
|
35312
|
+
var this_0 = $this.ndl_1.d9f(scene_0.o7q_1);
|
|
35310
35313
|
// Inline function 'kotlin.collections.mapTo' call
|
|
35311
35314
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
35312
35315
|
var _iterator__ex2g4s_2 = this_0.l();
|
|
35313
35316
|
while (_iterator__ex2g4s_2.m()) {
|
|
35314
35317
|
var item = _iterator__ex2g4s_2.n();
|
|
35315
|
-
var tmp0_points = item.
|
|
35318
|
+
var tmp0_points = item.d8d_1;
|
|
35316
35319
|
// Inline function 'kotlin.collections.map' call
|
|
35317
|
-
var this_1 = item.
|
|
35320
|
+
var this_1 = item.c8d_1;
|
|
35318
35321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
35319
35322
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
35320
35323
|
var _iterator__ex2g4s_3 = this_1.l();
|
|
35321
35324
|
while (_iterator__ex2g4s_3.m()) {
|
|
35322
35325
|
var item_0 = _iterator__ex2g4s_3.n();
|
|
35323
|
-
var tmp$ret$8 = getPlayer(table_0.players, item_0).
|
|
35326
|
+
var tmp$ret$8 = getPlayer(table_0.players, item_0).k75_1;
|
|
35324
35327
|
destination_0.j(tmp$ret$8);
|
|
35325
35328
|
}
|
|
35326
35329
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
35327
35330
|
destination.j(tmp$ret$11);
|
|
35328
35331
|
}
|
|
35329
|
-
tmp_3(new MessageMechanicAction($this.mdl_1.
|
|
35332
|
+
tmp_3(new MessageMechanicAction($this.mdl_1.n99(table_0.gameInfo.round, destination, scene_0.s7q(whoChoseSuitPlayerId), scene_0.r7q(whoChoseSuitPlayerId), scene_0.l7q_1)));
|
|
35330
35333
|
}
|
|
35331
35334
|
}
|
|
35332
35335
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
@@ -35337,15 +35340,15 @@
|
|
|
35337
35340
|
if (excludePlayersIds.u1(expectantAction.playerId)) {
|
|
35338
35341
|
return Unit_instance;
|
|
35339
35342
|
}
|
|
35340
|
-
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.
|
|
35343
|
+
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.q8g_1);
|
|
35341
35344
|
} else {
|
|
35342
35345
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
35343
|
-
var message = $this.mdl_1.
|
|
35346
|
+
var message = $this.mdl_1.p99('GAME_RESTART_EVENT_ID');
|
|
35344
35347
|
store.dispatch(new MessageMechanicAction(message));
|
|
35345
35348
|
store.dispatch(new InfoMessageAction(message));
|
|
35346
35349
|
} else {
|
|
35347
35350
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
35348
|
-
var message_0 = $this.mdl_1.
|
|
35351
|
+
var message_0 = $this.mdl_1.l99(expectantAction.c8h_1, $this$with.players);
|
|
35349
35352
|
store.dispatch(new InfoMessageAction(message_0));
|
|
35350
35353
|
}
|
|
35351
35354
|
}
|
|
@@ -35363,7 +35366,7 @@
|
|
|
35363
35366
|
tmp = Unit_instance;
|
|
35364
35367
|
} else {
|
|
35365
35368
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
35366
|
-
onSuitSelectMessages(this$0, store, action.
|
|
35369
|
+
onSuitSelectMessages(this$0, store, action.l8g_1, action.j8g_1);
|
|
35367
35370
|
tmp = Unit_instance;
|
|
35368
35371
|
} else {
|
|
35369
35372
|
if (action instanceof InterceptorCreatedClientAction) {
|
|
@@ -35371,11 +35374,11 @@
|
|
|
35371
35374
|
tmp = Unit_instance;
|
|
35372
35375
|
} else {
|
|
35373
35376
|
if (action instanceof PutCardMechanicAction) {
|
|
35374
|
-
onCardMessages(this$0, store, action.
|
|
35377
|
+
onCardMessages(this$0, store, action.w8g_1, action.v8g_1);
|
|
35375
35378
|
tmp = Unit_instance;
|
|
35376
35379
|
} else {
|
|
35377
35380
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
35378
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
35381
|
+
onWinnerCombinationMessages(this$0, store, action.c8h_1);
|
|
35379
35382
|
tmp = Unit_instance;
|
|
35380
35383
|
} else {
|
|
35381
35384
|
tmp = Unit_instance;
|
|
@@ -35398,7 +35401,7 @@
|
|
|
35398
35401
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
35399
35402
|
var tmp_0;
|
|
35400
35403
|
if (!(action.playerId === $currentPlayerId)) {
|
|
35401
|
-
onSuitSelectMessages(this$0, store, action.playerId, action.
|
|
35404
|
+
onSuitSelectMessages(this$0, store, action.playerId, action.j8g_1);
|
|
35402
35405
|
tmp_0 = Unit_instance;
|
|
35403
35406
|
}
|
|
35404
35407
|
tmp = tmp_0;
|
|
@@ -35406,7 +35409,7 @@
|
|
|
35406
35409
|
if (action instanceof PutCardMechanicAction) {
|
|
35407
35410
|
var tmp_1;
|
|
35408
35411
|
if (!(action.playerId === $currentPlayerId)) {
|
|
35409
|
-
onCardMessages(this$0, store, action.playerId, action.
|
|
35412
|
+
onCardMessages(this$0, store, action.playerId, action.v8g_1);
|
|
35410
35413
|
tmp_1 = Unit_instance;
|
|
35411
35414
|
}
|
|
35412
35415
|
tmp = tmp_1;
|
|
@@ -35416,29 +35419,29 @@
|
|
|
35416
35419
|
tmp = Unit_instance;
|
|
35417
35420
|
} else {
|
|
35418
35421
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
35419
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
35422
|
+
onWinnerCombinationMessages(this$0, store, action.c8h_1);
|
|
35420
35423
|
tmp = Unit_instance;
|
|
35421
35424
|
} else {
|
|
35422
35425
|
if (action instanceof SuitChoiceFromClientAction) {
|
|
35423
35426
|
var tmp_2;
|
|
35424
|
-
if (action.
|
|
35425
|
-
onSuitSelectMessages(this$0, store, action.
|
|
35427
|
+
if (action.h88_1 === $currentPlayerId) {
|
|
35428
|
+
onSuitSelectMessages(this$0, store, action.h88_1, action.k88_1);
|
|
35426
35429
|
tmp_2 = Unit_instance;
|
|
35427
35430
|
}
|
|
35428
35431
|
tmp = tmp_2;
|
|
35429
35432
|
} else {
|
|
35430
35433
|
if (action instanceof CardFromClientAction) {
|
|
35431
35434
|
var tmp_3;
|
|
35432
|
-
if (action.
|
|
35433
|
-
onCardMessages(this$0, store, action.
|
|
35435
|
+
if (action.p88_1 === $currentPlayerId) {
|
|
35436
|
+
onCardMessages(this$0, store, action.p88_1, action.t88_1);
|
|
35434
35437
|
tmp_3 = Unit_instance;
|
|
35435
35438
|
}
|
|
35436
35439
|
tmp = tmp_3;
|
|
35437
35440
|
} else {
|
|
35438
35441
|
if (action instanceof CombinationChoiceFromClientAction) {
|
|
35439
35442
|
var tmp_4;
|
|
35440
|
-
if (action.
|
|
35441
|
-
onCombinationChoiceMessages(this$0, store, action.
|
|
35443
|
+
if (action.l88_1 === $currentPlayerId) {
|
|
35444
|
+
onCombinationChoiceMessages(this$0, store, action.l88_1, action.o88_1);
|
|
35442
35445
|
tmp_4 = Unit_instance;
|
|
35443
35446
|
}
|
|
35444
35447
|
tmp = tmp_4;
|
|
@@ -35554,23 +35557,23 @@
|
|
|
35554
35557
|
next(tmp4);
|
|
35555
35558
|
var tmp;
|
|
35556
35559
|
if (tmp4 instanceof MessageFromClientAction) {
|
|
35557
|
-
tmp = this.udm_1.
|
|
35560
|
+
tmp = this.udm_1.f9e(tmp4, table.players);
|
|
35558
35561
|
} else {
|
|
35559
35562
|
if (tmp4 instanceof PartnerSelectedFromClientAction) {
|
|
35560
|
-
tmp = this.udm_1.
|
|
35563
|
+
tmp = this.udm_1.g9e(tmp4, table.players);
|
|
35561
35564
|
} else {
|
|
35562
35565
|
if (tmp4 instanceof PlayerReadyFromClientAction) {
|
|
35563
|
-
tmp = this.udm_1.
|
|
35566
|
+
tmp = this.udm_1.h9e(tmp4);
|
|
35564
35567
|
} else {
|
|
35565
35568
|
if (tmp4 instanceof SuitChoiceFromClientAction) {
|
|
35566
|
-
tmp = this.udm_1.
|
|
35569
|
+
tmp = this.udm_1.i9e(tmp4, table.players, table.config);
|
|
35567
35570
|
} else {
|
|
35568
35571
|
if (tmp4 instanceof CombinationChoiceFromClientAction) {
|
|
35569
|
-
tmp = this.udm_1.
|
|
35572
|
+
tmp = this.udm_1.j9e(tmp4, table);
|
|
35570
35573
|
} else {
|
|
35571
35574
|
if (tmp4 instanceof CardFromClientAction) {
|
|
35572
|
-
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.
|
|
35573
|
-
var cardMechanicAction = this.udm_1.
|
|
35575
|
+
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.p88_1, table.cardsOnTable.o(), tmp4.s88_1));
|
|
35576
|
+
var cardMechanicAction = this.udm_1.k9e(tmp4, newCardsOnTheTable, table.players, table.config);
|
|
35574
35577
|
tmp = cardMechanicAction;
|
|
35575
35578
|
} else {
|
|
35576
35579
|
tmp = null;
|
|
@@ -35604,7 +35607,7 @@
|
|
|
35604
35607
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).j9z = function (state, action) {
|
|
35605
35608
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
35606
35609
|
var clientPayload = get_clientPayload(state);
|
|
35607
|
-
var tmp0_subject = action_0.
|
|
35610
|
+
var tmp0_subject = action_0.v8f_1;
|
|
35608
35611
|
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.z9i(VOID, clientPayload.vdm(VOID, VOID, VOID, VOID, VOID, VOID, false)) : state;
|
|
35609
35612
|
};
|
|
35610
35613
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).r6q = function (state, action) {
|
|
@@ -35638,7 +35641,7 @@
|
|
|
35638
35641
|
case 0:
|
|
35639
35642
|
this.t8_1 = 2;
|
|
35640
35643
|
var state = this.edn_1.state;
|
|
35641
|
-
if (!state.
|
|
35644
|
+
if (!state.e72() || state.c72().isGameFinished) {
|
|
35642
35645
|
var tmp_0 = this;
|
|
35643
35646
|
this.edn_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.fdn_1.f9j_1), state.c72().isGameFinished));
|
|
35644
35647
|
tmp_0.idn_1 = Unit_instance;
|
|
@@ -35825,7 +35828,7 @@
|
|
|
35825
35828
|
protoOf(reloadTimersWhenContinueGameMiddleware$$inlined$middlewareForActionType$1).q6q = function (store, next, action) {
|
|
35826
35829
|
var action_0 = action instanceof ContinueGameMechanicAction ? action : THROW_CCE();
|
|
35827
35830
|
next(action_0);
|
|
35828
|
-
var table = action_0.
|
|
35831
|
+
var table = action_0.g8f_1;
|
|
35829
35832
|
// Inline function 'kotlin.collections.filter' call
|
|
35830
35833
|
var tmp0 = filterPlayerTurn(table.players);
|
|
35831
35834
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -35841,7 +35844,7 @@
|
|
|
35841
35844
|
var _iterator__ex2g4s_0 = destination.l();
|
|
35842
35845
|
while (_iterator__ex2g4s_0.m()) {
|
|
35843
35846
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
35844
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.
|
|
35847
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.l75_1.a6h()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.bdo_1, this.cdo_1), VOID, TimerType_DELAY_getInstance()));
|
|
35845
35848
|
}
|
|
35846
35849
|
};
|
|
35847
35850
|
protoOf(reloadTimersWhenContinueGameMiddleware$$inlined$middlewareForActionType$1).a6p = function (store, next, action) {
|
|
@@ -36041,7 +36044,7 @@
|
|
|
36041
36044
|
switch (tmp) {
|
|
36042
36045
|
case 0:
|
|
36043
36046
|
this.t8_1 = 3;
|
|
36044
|
-
if (!this.mdp_1.mdj_1 && this.ndp_1.
|
|
36047
|
+
if (!this.mdp_1.mdj_1 && this.ndp_1.e72() && !this.ndp_1.c72().isGameFinished) {
|
|
36045
36048
|
this.s8_1 = 1;
|
|
36046
36049
|
suspendResult = this.odp_1.pb4(this.ndp_1.c72(), get_clientPayload(this.ndp_1), false, this);
|
|
36047
36050
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -36215,7 +36218,7 @@
|
|
|
36215
36218
|
protoOf(clearTimersWhenErrorMiddleware$$inlined$middlewareForActionType$1).q6q = function (store, next, action) {
|
|
36216
36219
|
var action_0 = action instanceof ErrorAction ? action : THROW_CCE();
|
|
36217
36220
|
var state = store.state;
|
|
36218
|
-
if (state.
|
|
36221
|
+
if (state.e72()) {
|
|
36219
36222
|
// Inline function 'kotlin.collections.forEach' call
|
|
36220
36223
|
var _iterator__ex2g4s = state.d71_1.l();
|
|
36221
36224
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -36500,13 +36503,13 @@
|
|
|
36500
36503
|
protoOf(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1).q6q = function (store, next, action) {
|
|
36501
36504
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
36502
36505
|
var state = store.state;
|
|
36503
|
-
if (get_isEarnPointScene(state.c72().sceneInfo.
|
|
36506
|
+
if (get_isEarnPointScene(state.c72().sceneInfo.i8i_1)) {
|
|
36504
36507
|
var tmp0_putPlayerCard = action_0.ddj_1;
|
|
36505
36508
|
var tmp1_player = get_currentPlayer(state.c72());
|
|
36506
36509
|
var tmp2_table = state.c72();
|
|
36507
36510
|
var validationCode = this.kdq_1.rb4(tmp0_putPlayerCard, tmp2_table, tmp1_player);
|
|
36508
36511
|
if (!(validationCode == null)) {
|
|
36509
|
-
store.dispatch(new InfoMessageAction(this.ldq_1.
|
|
36512
|
+
store.dispatch(new InfoMessageAction(this.ldq_1.o99(validationCode)));
|
|
36510
36513
|
} else {
|
|
36511
36514
|
this.mdq_1.w(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
36512
36515
|
}
|
|
@@ -36545,7 +36548,7 @@
|
|
|
36545
36548
|
this.odq_1.w(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
36546
36549
|
}
|
|
36547
36550
|
if (!(validationCode == null)) {
|
|
36548
|
-
store.dispatch(new InfoMessageAction(this.pdq_1.
|
|
36551
|
+
store.dispatch(new InfoMessageAction(this.pdq_1.o99(validationCode)));
|
|
36549
36552
|
} else {
|
|
36550
36553
|
next(action_0);
|
|
36551
36554
|
}
|
|
@@ -36558,8 +36561,8 @@
|
|
|
36558
36561
|
function ClientCombinationsReducerImpl() {
|
|
36559
36562
|
}
|
|
36560
36563
|
protoOf(ClientCombinationsReducerImpl).qdq = function (currentPlayerId, actData) {
|
|
36561
|
-
if (!(actData == null) && currentPlayerId === actData.
|
|
36562
|
-
return new CombinationToAnnounceState(actData.
|
|
36564
|
+
if (!(actData == null) && currentPlayerId === actData.o7p()) {
|
|
36565
|
+
return new CombinationToAnnounceState(actData.h7p_1, null, null);
|
|
36563
36566
|
}
|
|
36564
36567
|
return null;
|
|
36565
36568
|
};
|
|
@@ -36638,7 +36641,7 @@
|
|
|
36638
36641
|
var _iterator__ex2g4s = messages.l();
|
|
36639
36642
|
while (_iterator__ex2g4s.m()) {
|
|
36640
36643
|
var element = _iterator__ex2g4s.n();
|
|
36641
|
-
if (element.
|
|
36644
|
+
if (element.m76().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
36642
36645
|
destination.j(element);
|
|
36643
36646
|
}
|
|
36644
36647
|
}
|
|
@@ -36651,7 +36654,7 @@
|
|
|
36651
36654
|
var _iterator__ex2g4s = messages.l();
|
|
36652
36655
|
while (_iterator__ex2g4s.m()) {
|
|
36653
36656
|
var element = _iterator__ex2g4s.n();
|
|
36654
|
-
if (element.
|
|
36657
|
+
if (element.m76().equals(MessageLifecycle_GAME_getInstance()) || element.m76().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
36655
36658
|
destination.j(element);
|
|
36656
36659
|
}
|
|
36657
36660
|
}
|
|
@@ -36666,37 +36669,37 @@
|
|
|
36666
36669
|
var item = _iterator__ex2g4s.n();
|
|
36667
36670
|
var tmp;
|
|
36668
36671
|
if (item instanceof WhoShuffleCardsMessage) {
|
|
36669
|
-
tmp = item.
|
|
36672
|
+
tmp = item.y77(VOID, VOID, VOID, false);
|
|
36670
36673
|
} else {
|
|
36671
36674
|
if (item instanceof TextMessage) {
|
|
36672
|
-
tmp = item.
|
|
36675
|
+
tmp = item.o79(VOID, VOID, VOID, false);
|
|
36673
36676
|
} else {
|
|
36674
36677
|
if (item instanceof PhraseMessage) {
|
|
36675
|
-
tmp = item.
|
|
36678
|
+
tmp = item.c79(VOID, VOID, VOID, false);
|
|
36676
36679
|
} else {
|
|
36677
36680
|
if (item instanceof AnnouncedCombinationMessage) {
|
|
36678
|
-
tmp = item.
|
|
36681
|
+
tmp = item.f78(VOID, VOID, VOID, false);
|
|
36679
36682
|
} else {
|
|
36680
36683
|
if (item instanceof WinnerCombinationsMessage) {
|
|
36681
|
-
tmp = item.
|
|
36684
|
+
tmp = item.n78(VOID, VOID, false);
|
|
36682
36685
|
} else {
|
|
36683
36686
|
if (item instanceof PreviousRoundPointsMessage) {
|
|
36684
|
-
tmp = item.
|
|
36687
|
+
tmp = item.y76(VOID, VOID, VOID, VOID, VOID, VOID, false);
|
|
36685
36688
|
} else {
|
|
36686
36689
|
if (item instanceof StickerMessage) {
|
|
36687
|
-
tmp = item.
|
|
36690
|
+
tmp = item.i79(VOID, VOID, VOID, false);
|
|
36688
36691
|
} else {
|
|
36689
36692
|
if (item instanceof RandomSignatureMessage) {
|
|
36690
|
-
tmp = item.
|
|
36693
|
+
tmp = item.g77(VOID, VOID, false);
|
|
36691
36694
|
} else {
|
|
36692
36695
|
if (item instanceof ValidationMessage) {
|
|
36693
|
-
tmp = item.
|
|
36696
|
+
tmp = item.v79(VOID, VOID, false);
|
|
36694
36697
|
} else {
|
|
36695
36698
|
if (item instanceof ServiceMessage) {
|
|
36696
|
-
tmp = item.
|
|
36699
|
+
tmp = item.o77(VOID, VOID, false);
|
|
36697
36700
|
} else {
|
|
36698
36701
|
if (item instanceof EventMessage) {
|
|
36699
|
-
tmp = item.
|
|
36702
|
+
tmp = item.o76(VOID, VOID, false);
|
|
36700
36703
|
} else {
|
|
36701
36704
|
gameLogger.w(VOID, "updateMessagesAsNotShown: Can't support this message " + toString(item));
|
|
36702
36705
|
tmp = item;
|
|
@@ -36732,7 +36735,7 @@
|
|
|
36732
36735
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
36733
36736
|
Companion_getInstance_8();
|
|
36734
36737
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
36735
|
-
var this_0 = $action.
|
|
36738
|
+
var this_0 = $action.z8e_1.timeoutTimeMillis;
|
|
36736
36739
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
36737
36740
|
tmp = tmp_0.g6h(tmp_1.w6f(tmp_2, tmp$ret$0));
|
|
36738
36741
|
} else {
|
|
@@ -36766,13 +36769,13 @@
|
|
|
36766
36769
|
this.edr_1.d('ClientMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
36767
36770
|
var clientState = get_clientPayloadOrNull_0(state.payload);
|
|
36768
36771
|
var tmp0_$this = this.wa0_1;
|
|
36769
|
-
var tmp1_tableId = action.
|
|
36770
|
-
var tmp2_gameId = action.
|
|
36771
|
-
var tmp3_version = action.
|
|
36772
|
-
var tmp4_config = action.
|
|
36773
|
-
var tmp5_users = action.
|
|
36772
|
+
var tmp1_tableId = action.a8f_1;
|
|
36773
|
+
var tmp2_gameId = action.a8f_1;
|
|
36774
|
+
var tmp3_version = action.b8f_1;
|
|
36775
|
+
var tmp4_config = action.z8e_1;
|
|
36776
|
+
var tmp5_users = action.d8f_1;
|
|
36774
36777
|
var tmp6_spectators = emptyList();
|
|
36775
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
36778
|
+
var tmp7_gameCreatorPlayerId = action.c8f_1;
|
|
36776
36779
|
var newTable = tmp0_$this.ca2(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this, action));
|
|
36777
36780
|
var tmp;
|
|
36778
36781
|
if (clientState == null) {
|
|
@@ -36795,12 +36798,12 @@
|
|
|
36795
36798
|
};
|
|
36796
36799
|
protoOf(ClientMechanicLifecycleReducer).ta0 = function (state, action) {
|
|
36797
36800
|
this.edr_1.d('ClientMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
36798
|
-
var clientState = get_clientPayloadOrNull_0(action.
|
|
36801
|
+
var clientState = get_clientPayloadOrNull_0(action.i8f_1);
|
|
36799
36802
|
var tmp;
|
|
36800
36803
|
if (clientState == null) {
|
|
36801
36804
|
var tmp_0 = Companion_instance_88;
|
|
36802
|
-
var tmp_1 = get_currentPlayer(action.
|
|
36803
|
-
var tmp0_safe_receiver = action.
|
|
36805
|
+
var tmp_1 = get_currentPlayer(action.g8f_1).playerId;
|
|
36806
|
+
var tmp0_safe_receiver = action.g8f_1.sceneInfo.m8i_1;
|
|
36804
36807
|
var tmp_2;
|
|
36805
36808
|
if (tmp0_safe_receiver == null) {
|
|
36806
36809
|
tmp_2 = null;
|
|
@@ -36822,7 +36825,7 @@
|
|
|
36822
36825
|
}
|
|
36823
36826
|
var newPayload = tmp;
|
|
36824
36827
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
36825
|
-
var tmp2_tableOrNull = action.
|
|
36828
|
+
var tmp2_tableOrNull = action.g8f_1;
|
|
36826
36829
|
return state.z9i(tmp2_tableOrNull, newPayload, tmp1_gameLifecycleState, null);
|
|
36827
36830
|
};
|
|
36828
36831
|
protoOf(ClientMechanicLifecycleReducer).sa0 = function (state, action) {
|
|
@@ -36836,14 +36839,14 @@
|
|
|
36836
36839
|
}
|
|
36837
36840
|
var newPayload = this.fdr_1.vdq(get_clientPayload(state));
|
|
36838
36841
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
36839
|
-
var tmp3_terminationState = new TerminationState(action.
|
|
36842
|
+
var tmp3_terminationState = new TerminationState(action.k8f_1, action.m8f_1);
|
|
36840
36843
|
return state.z9i(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
36841
36844
|
};
|
|
36842
36845
|
protoOf(ClientMechanicLifecycleReducer).ra0 = function (state, action) {
|
|
36843
36846
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
36844
36847
|
var tmp0_safe_receiver = state.c71_1;
|
|
36845
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a9j(action.
|
|
36846
|
-
return state.z9i(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.
|
|
36848
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a9j(action.o8f_1, action.r8f_1);
|
|
36849
|
+
return state.z9i(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.o8f_1, action.r8f_1) : tmp1_elvis_lhs);
|
|
36847
36850
|
};
|
|
36848
36851
|
protoOf(ClientMechanicLifecycleReducer).qa0 = function (state, action) {
|
|
36849
36852
|
var tmp = get_clientPayload(state);
|
|
@@ -36866,12 +36869,12 @@
|
|
|
36866
36869
|
tmp = null;
|
|
36867
36870
|
} else {
|
|
36868
36871
|
// Inline function 'kotlin.let' call
|
|
36869
|
-
tmp = this.fdr_1.vdq(tmp2_safe_receiver).vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.
|
|
36872
|
+
tmp = this.fdr_1.vdq(tmp2_safe_receiver).vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.h8h_1);
|
|
36870
36873
|
}
|
|
36871
36874
|
var newPayload = tmp;
|
|
36872
36875
|
var tmp3_safe_receiver = state.c71_1;
|
|
36873
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b9j(action.
|
|
36874
|
-
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.
|
|
36876
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b9j(action.h8h_1.w87_1);
|
|
36877
|
+
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.h8h_1.w87_1) : tmp4_elvis_lhs;
|
|
36875
36878
|
return state.z9i(VOID, newPayload, GameLifecycleState_FINISHED_getInstance(), newTerminationState);
|
|
36876
36879
|
};
|
|
36877
36880
|
function clientResetProcessingCardReducer() {
|
|
@@ -36911,7 +36914,7 @@
|
|
|
36911
36914
|
protoOf(clientSceneReducer$$inlined$reducerForActionType$1).j9z = function (state, action) {
|
|
36912
36915
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
36913
36916
|
var tmp;
|
|
36914
|
-
switch (action_0.
|
|
36917
|
+
switch (action_0.v8f_1) {
|
|
36915
36918
|
case 'WAITING':
|
|
36916
36919
|
tmp = state;
|
|
36917
36920
|
break;
|
|
@@ -36966,8 +36969,8 @@
|
|
|
36966
36969
|
var tmp_0 = get_clientPayload(state);
|
|
36967
36970
|
var tmp_1;
|
|
36968
36971
|
if (tmp2.odj_1) {
|
|
36969
|
-
var cards = last(state.c72().bribes).
|
|
36970
|
-
tmp_1 = new LastBribeState(first(cards).
|
|
36972
|
+
var cards = last(state.c72().bribes).k85_1;
|
|
36973
|
+
tmp_1 = new LastBribeState(first(cards).n7o_1, getWhoGotLastBribe(state.c72().players).playerId, cards);
|
|
36971
36974
|
} else {
|
|
36972
36975
|
tmp_1 = null;
|
|
36973
36976
|
}
|
|
@@ -37016,7 +37019,7 @@
|
|
|
37016
37019
|
while (_iterator__ex2g4s.m()) {
|
|
37017
37020
|
var item = _iterator__ex2g4s.n();
|
|
37018
37021
|
var updatedUser = firstOrNull(filterByPlayerId(tmp6_safe_receiver, item.playerId));
|
|
37019
|
-
var tmp$ret$0 = item.
|
|
37022
|
+
var tmp$ret$0 = item.u7a(updatedUser == null ? item.k75_1 : updatedUser);
|
|
37020
37023
|
destination.j(tmp$ret$0);
|
|
37021
37024
|
}
|
|
37022
37025
|
tmp_4 = destination;
|
|
@@ -37039,7 +37042,7 @@
|
|
|
37039
37042
|
if (tmp2 instanceof ClientMessageAction) {
|
|
37040
37043
|
var messages = get_clientPayload(state).za9_1;
|
|
37041
37044
|
var lastMessage = lastOrNull(messages);
|
|
37042
|
-
if ((lastMessage == null ? null : lastMessage.
|
|
37045
|
+
if ((lastMessage == null ? null : lastMessage.l76(tmp2.ydj_1)) === true) {
|
|
37043
37046
|
tmp$ret$5 = state;
|
|
37044
37047
|
break $l$block;
|
|
37045
37048
|
}
|
|
@@ -37120,22 +37123,22 @@
|
|
|
37120
37123
|
return new clientResetMessagesAfterBribeReducer$$inlined$reducerForActionType$1(gameLogger);
|
|
37121
37124
|
}
|
|
37122
37125
|
function updateVoiceCount(table, action) {
|
|
37123
|
-
var message = action.
|
|
37126
|
+
var message = action.e8h_1;
|
|
37124
37127
|
var tmp;
|
|
37125
37128
|
if (isInterface(message, UserMessage)) {
|
|
37126
|
-
tmp = message.
|
|
37129
|
+
tmp = message.q77();
|
|
37127
37130
|
} else {
|
|
37128
37131
|
tmp = false;
|
|
37129
37132
|
}
|
|
37130
37133
|
if (tmp) {
|
|
37131
|
-
var player = getPlayer(table.players, message.
|
|
37132
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
37134
|
+
var player = getPlayer(table.players, message.p77().v6e_1);
|
|
37135
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.u7a(VOID, VOID, VOID, player.n75_1.z7e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.n75_1.o7a_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
37133
37136
|
}
|
|
37134
37137
|
return table;
|
|
37135
37138
|
}
|
|
37136
37139
|
function updateVoiceCount_0(table, playerId) {
|
|
37137
37140
|
var player = getPlayer(table.players, playerId);
|
|
37138
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
37141
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.u7a(VOID, VOID, VOID, player.n75_1.z7e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.n75_1.o7a_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
37139
37142
|
}
|
|
37140
37143
|
function messageReducer$$inlined$reducerForActionType$1() {
|
|
37141
37144
|
}
|
|
@@ -37145,7 +37148,7 @@
|
|
|
37145
37148
|
protoOf(messageReducer$$inlined$reducerForActionType$1).j9z = function (state, action) {
|
|
37146
37149
|
var action_0 = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
37147
37150
|
var clientState = get_clientPayload(state);
|
|
37148
|
-
return state.z9i(updateVoiceCount(state.c72(), action_0), clientState.vdm(VOID, plus_0(clientState.za9_1, action_0.
|
|
37151
|
+
return state.z9i(updateVoiceCount(state.c72(), action_0), clientState.vdm(VOID, plus_0(clientState.za9_1, action_0.e8h_1)));
|
|
37149
37152
|
};
|
|
37150
37153
|
protoOf(messageReducer$$inlined$reducerForActionType$1).r6q = function (state, action) {
|
|
37151
37154
|
return this.j9z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -37223,7 +37226,7 @@
|
|
|
37223
37226
|
tmp = new ErrorState(VOID, VOID, ProcessingReason_getInstance());
|
|
37224
37227
|
} else {
|
|
37225
37228
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
37226
|
-
tmp = mapToErrorState(action_0.
|
|
37229
|
+
tmp = mapToErrorState(action_0.o8f_1, state.c72());
|
|
37227
37230
|
} else {
|
|
37228
37231
|
tmp = null;
|
|
37229
37232
|
}
|
|
@@ -37386,7 +37389,7 @@
|
|
|
37386
37389
|
return tmp1_$this.pdd(tmp2_playerId, tmp3_isCurrentPlayer, tmp5_cards, tmp4_players, tmp6_processingCardOnTable);
|
|
37387
37390
|
}
|
|
37388
37391
|
function getOpenOrHiddenCardsInHand$default($this, player, currentPlayerId, players, processingCard, cards, $super) {
|
|
37389
|
-
cards = cards === VOID ? player.
|
|
37392
|
+
cards = cards === VOID ? player.m75_1 : cards;
|
|
37390
37393
|
return getOpenOrHiddenCardsInHand($this, player, currentPlayerId, players, processingCard, cards);
|
|
37391
37394
|
}
|
|
37392
37395
|
function handleTradeScene($this, state, action, currentPlayerId) {
|
|
@@ -37401,7 +37404,7 @@
|
|
|
37401
37404
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0));
|
|
37402
37405
|
}
|
|
37403
37406
|
var sceneData = tmp$ret$0;
|
|
37404
|
-
var playersCardsToDistribute = sceneData.
|
|
37407
|
+
var playersCardsToDistribute = sceneData.t7q_1;
|
|
37405
37408
|
// Inline function 'kotlin.collections.sumOf' call
|
|
37406
37409
|
var sum = 0;
|
|
37407
37410
|
var _iterator__ex2g4s = playersCardsToDistribute.e2().l();
|
|
@@ -37411,9 +37414,9 @@
|
|
|
37411
37414
|
sum = tmp + element.o() | 0;
|
|
37412
37415
|
}
|
|
37413
37416
|
var cardsToDistributeCount = sum;
|
|
37414
|
-
var otherCardsCount = sceneData.
|
|
37417
|
+
var otherCardsCount = sceneData.w7q_1.o();
|
|
37415
37418
|
var cardDeckCards = createCardDeckCards($this, cardsToDistributeCount, otherCardsCount);
|
|
37416
|
-
var shuffleCardTransition = new ShuffleCardDeckTransition($this.xdr_1.z6m(), plus(listOf_0(sceneData.
|
|
37419
|
+
var shuffleCardTransition = new ShuffleCardDeckTransition($this.xdr_1.z6m(), plus(listOf_0(sceneData.v7q_1), cardDeckCards));
|
|
37417
37420
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, null, otherCardsCount);
|
|
37418
37421
|
var updatedTransitions = plus(get_clientPayload(state).laa_1, listOf([shuffleCardTransition, distributionTransition]));
|
|
37419
37422
|
return state.z9i(VOID, get_clientPayload(state).vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
@@ -37433,12 +37436,12 @@
|
|
|
37433
37436
|
var tmp0_$this = $this.wdr_1;
|
|
37434
37437
|
var tmp1_config = state.c72().config;
|
|
37435
37438
|
var tmp2_cardDeck = state.c72().requireCardDeck;
|
|
37436
|
-
var tmp3_newTopOpenedCard = sceneData.
|
|
37437
|
-
var tmp4_newPlayersCards = sceneData.
|
|
37439
|
+
var tmp3_newTopOpenedCard = sceneData.b7r_1;
|
|
37440
|
+
var tmp4_newPlayersCards = sceneData.z7q_1;
|
|
37438
37441
|
var updatedCardDeck = tmp0_$this.ra1(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
37439
|
-
var tmp5_distributeTrumpCard = updatedCardDeck.
|
|
37440
|
-
var tmp6_playersCardsToDistribute = sceneData.
|
|
37441
|
-
var tmp7_otherCardsCount = updatedCardDeck.
|
|
37442
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.n85_1;
|
|
37443
|
+
var tmp6_playersCardsToDistribute = sceneData.z7q_1;
|
|
37444
|
+
var tmp7_otherCardsCount = updatedCardDeck.s91();
|
|
37442
37445
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, tmp6_playersCardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
37443
37446
|
var updatedTransitions = plus_0(get_clientPayload(state).laa_1, distributionTransition);
|
|
37444
37447
|
return state.z9i(VOID, get_clientPayload(state).vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
@@ -37525,7 +37528,7 @@
|
|
|
37525
37528
|
while (_iterator__ex2g4s.m()) {
|
|
37526
37529
|
var item = _iterator__ex2g4s.n();
|
|
37527
37530
|
var newCards = getValue(playersCardsToDistribute, item.playerId);
|
|
37528
|
-
var tmp0_cards = plus(item.
|
|
37531
|
+
var tmp0_cards = plus(item.m75_1, newCards);
|
|
37529
37532
|
var tmp1_players = table.players;
|
|
37530
37533
|
var tmp2_processingCard = clientPayload.kaa_1;
|
|
37531
37534
|
var hiddenCardsIfNeeded = getOpenOrHiddenCardsInHand($this, item, currentPlayerId, tmp1_players, tmp2_processingCard, tmp0_cards);
|
|
@@ -37539,7 +37542,7 @@
|
|
|
37539
37542
|
function determineWhoGetsTheTrumpCard($this, table) {
|
|
37540
37543
|
var tmp;
|
|
37541
37544
|
if (!(firstOrNull(filterWhoChoseSuit(table.players)) == null)) {
|
|
37542
|
-
tmp = $this.ydr_1.
|
|
37545
|
+
tmp = $this.ydr_1.o98(table.players, table.config);
|
|
37543
37546
|
} else {
|
|
37544
37547
|
tmp = null;
|
|
37545
37548
|
}
|
|
@@ -37699,7 +37702,7 @@
|
|
|
37699
37702
|
};
|
|
37700
37703
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).j9z = function (state, action) {
|
|
37701
37704
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
37702
|
-
var updatedTransitions = addPutCardOnTableTransition(this.hds_1, action_0.playerId, this.ids_1, action_0.
|
|
37705
|
+
var updatedTransitions = addPutCardOnTableTransition(this.hds_1, action_0.playerId, this.ids_1, action_0.u8g_1, state.c72(), get_clientPayload(state));
|
|
37703
37706
|
return state.z9i(VOID, get_clientPayload(state).vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
37704
37707
|
};
|
|
37705
37708
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).r6q = function (state, action) {
|
|
@@ -37715,7 +37718,7 @@
|
|
|
37715
37718
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).j9z = function (state, action) {
|
|
37716
37719
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
37717
37720
|
var tmp;
|
|
37718
|
-
switch (action_0.
|
|
37721
|
+
switch (action_0.v8f_1) {
|
|
37719
37722
|
case 'TRADE':
|
|
37720
37723
|
tmp = handleTradeScene(this.jds_1, state, action_0, this.kds_1);
|
|
37721
37724
|
break;
|
|
@@ -37744,15 +37747,15 @@
|
|
|
37744
37747
|
var expectantAction = action_0.bdk_1.ean_1;
|
|
37745
37748
|
var tmp;
|
|
37746
37749
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
37747
|
-
var combination = first(expectantAction.
|
|
37750
|
+
var combination = first(expectantAction.r8g_1);
|
|
37748
37751
|
var tmp_0;
|
|
37749
|
-
if (expectantAction.
|
|
37750
|
-
var trumpCard = single(combination.
|
|
37752
|
+
if (expectantAction.q8g_1 && combination.l7p_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
37753
|
+
var trumpCard = single(combination.x91());
|
|
37751
37754
|
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.lds_1, trumpCard, getPlayer(state.c72().players, expectantAction.playerId), this.mds_1, state.c72().players);
|
|
37752
37755
|
var tmp0_id = this.lds_1.xdr_1.z6m();
|
|
37753
37756
|
var tmp1_playerIds = listOf_0(expectantAction.playerId);
|
|
37754
|
-
var tmp2_toCard2 = state.c72().requireCardDeck.
|
|
37755
|
-
var tmp3_fromCard2 = state.c72().requireCardDeck.
|
|
37757
|
+
var tmp2_toCard2 = state.c72().requireCardDeck.n85_1;
|
|
37758
|
+
var tmp3_fromCard2 = state.c72().requireCardDeck.n85_1;
|
|
37756
37759
|
var updatedTransitions = plus_0(clientPayload.laa_1, new SwapCardsTransition(tmp0_id, tmp1_playerIds, trumpCardOrOrigin, trumpCard, tmp3_fromCard2, tmp2_toCard2));
|
|
37757
37760
|
tmp_0 = state.z9i(VOID, clientPayload.vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
37758
37761
|
} else {
|
|
@@ -37763,23 +37766,23 @@
|
|
|
37763
37766
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
37764
37767
|
var tmp_1 = this.lds_1.xdr_1.z6m();
|
|
37765
37768
|
// Inline function 'kotlin.collections.associate' call
|
|
37766
|
-
var this_0 = expectantAction.
|
|
37769
|
+
var this_0 = expectantAction.c8h_1;
|
|
37767
37770
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
37768
37771
|
// Inline function 'kotlin.collections.associateTo' call
|
|
37769
37772
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
37770
37773
|
var _iterator__ex2g4s = this_0.l();
|
|
37771
37774
|
while (_iterator__ex2g4s.m()) {
|
|
37772
37775
|
var element = _iterator__ex2g4s.n();
|
|
37773
|
-
var player = getPlayer(state.c72().players, element.
|
|
37774
|
-
var sortedPlayerCards = sortedWith(player.
|
|
37776
|
+
var player = getPlayer(state.c72().players, element.g86_1);
|
|
37777
|
+
var sortedPlayerCards = sortedWith(player.m75_1, new CardSuitSortingComparator(get_clientPayload(state).ya9_1.val_1));
|
|
37775
37778
|
// Inline function 'kotlin.collections.map' call
|
|
37776
|
-
var this_1 = element.
|
|
37779
|
+
var this_1 = element.h86_1;
|
|
37777
37780
|
// Inline function 'kotlin.collections.mapTo' call
|
|
37778
37781
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
37779
37782
|
var _iterator__ex2g4s_0 = this_1.l();
|
|
37780
37783
|
while (_iterator__ex2g4s_0.m()) {
|
|
37781
37784
|
var item = _iterator__ex2g4s_0.n();
|
|
37782
|
-
var tmp$ret$0 = item.
|
|
37785
|
+
var tmp$ret$0 = item.x91();
|
|
37783
37786
|
destination_0.j(tmp$ret$0);
|
|
37784
37787
|
}
|
|
37785
37788
|
var combinationCards = flatten(destination_0);
|
|
@@ -37812,7 +37815,7 @@
|
|
|
37812
37815
|
}
|
|
37813
37816
|
var handTransitions = destination_1;
|
|
37814
37817
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
37815
|
-
var pair = to(element.
|
|
37818
|
+
var pair = to(element.g86_1, handTransitions);
|
|
37816
37819
|
destination.m2(pair.me_1, pair.ne_1);
|
|
37817
37820
|
}
|
|
37818
37821
|
var updatedTransitions_0 = plus_0(clientPayload.laa_1, new ShowCombinationTransition(tmp_1, destination));
|
|
@@ -37827,10 +37830,10 @@
|
|
|
37827
37830
|
var _iterator__ex2g4s_2 = this_3.l();
|
|
37828
37831
|
while (_iterator__ex2g4s_2.m()) {
|
|
37829
37832
|
var item_1 = _iterator__ex2g4s_2.n();
|
|
37830
|
-
var tmp$ret$10 = item_1.
|
|
37833
|
+
var tmp$ret$10 = item_1.p7o_1;
|
|
37831
37834
|
destination_2.j(tmp$ret$10);
|
|
37832
37835
|
}
|
|
37833
|
-
var updatedTransitions_1 = plus_0(clientPayload.laa_1, new PickUpBribeTransition(tmp_3, expectantAction.
|
|
37836
|
+
var updatedTransitions_1 = plus_0(clientPayload.laa_1, new PickUpBribeTransition(tmp_3, expectantAction.z8g_1, destination_2));
|
|
37834
37837
|
tmp = state.z9i(VOID, clientPayload.vdm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_1));
|
|
37835
37838
|
} else {
|
|
37836
37839
|
tmp = state;
|
|
@@ -37920,7 +37923,7 @@
|
|
|
37920
37923
|
var _iterator__ex2g4s = tmp1_safe_receiver.l();
|
|
37921
37924
|
while (_iterator__ex2g4s.m()) {
|
|
37922
37925
|
var element = _iterator__ex2g4s.n();
|
|
37923
|
-
var list = element.
|
|
37926
|
+
var list = element.h86_1;
|
|
37924
37927
|
addAll(destination, list);
|
|
37925
37928
|
}
|
|
37926
37929
|
tmp = destination;
|
|
@@ -37936,7 +37939,7 @@
|
|
|
37936
37939
|
var _iterator__ex2g4s_0 = cardsOnTable.l();
|
|
37937
37940
|
while (_iterator__ex2g4s_0.m()) {
|
|
37938
37941
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
37939
|
-
if (element_0.
|
|
37942
|
+
if (element_0.n7o_1 === playerId) {
|
|
37940
37943
|
tmp$ret$4 = element_0;
|
|
37941
37944
|
break $l$block;
|
|
37942
37945
|
}
|
|
@@ -37944,7 +37947,7 @@
|
|
|
37944
37947
|
tmp$ret$4 = null;
|
|
37945
37948
|
}
|
|
37946
37949
|
var tmp5_safe_receiver = tmp$ret$4;
|
|
37947
|
-
var tableCard = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
37950
|
+
var tableCard = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.p7o_1;
|
|
37948
37951
|
// Inline function 'kotlin.collections.map' call
|
|
37949
37952
|
// Inline function 'kotlin.collections.mapTo' call
|
|
37950
37953
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -37952,7 +37955,7 @@
|
|
|
37952
37955
|
while (_iterator__ex2g4s_1.m()) {
|
|
37953
37956
|
var item = _iterator__ex2g4s_1.n();
|
|
37954
37957
|
// Inline function 'kotlin.collections.filterNot' call
|
|
37955
|
-
var tmp0 = item.
|
|
37958
|
+
var tmp0 = item.x91();
|
|
37956
37959
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
37957
37960
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
37958
37961
|
var _iterator__ex2g4s_2 = tmp0.l();
|
|
@@ -37996,7 +37999,7 @@
|
|
|
37996
37999
|
tmp = tmp0_elvis_lhs;
|
|
37997
38000
|
}
|
|
37998
38001
|
var mechanic = tmp;
|
|
37999
|
-
var filtered = filterByPlayerId(mechanic.ean_1.
|
|
38002
|
+
var filtered = filterByPlayerId(mechanic.ean_1.c8h_1, playerId);
|
|
38000
38003
|
if (filtered.q())
|
|
38001
38004
|
return null;
|
|
38002
38005
|
var updated = mechanic.ian(VOID, mechanic.ean_1.l9l(filtered));
|
|
@@ -38031,7 +38034,7 @@
|
|
|
38031
38034
|
tmp = tmp0_elvis_lhs;
|
|
38032
38035
|
}
|
|
38033
38036
|
var mechanic = tmp;
|
|
38034
|
-
if (!(mechanic.ean_1.
|
|
38037
|
+
if (!(mechanic.ean_1.s8g_1 === playerId))
|
|
38035
38038
|
return null;
|
|
38036
38039
|
return mapToExpectant(mechanic);
|
|
38037
38040
|
}
|
|
@@ -38074,7 +38077,7 @@
|
|
|
38074
38077
|
var player = getPlayer(table.players, playerId);
|
|
38075
38078
|
var tmp1_isCurrentPlayer = player.playerId === get_currentPlayer(table).playerId;
|
|
38076
38079
|
var tmp2_playerId = player.playerId;
|
|
38077
|
-
var tmp3_cards = player.
|
|
38080
|
+
var tmp3_cards = player.m75_1;
|
|
38078
38081
|
var tmp4_players = mapWithIndex(table.players);
|
|
38079
38082
|
var tmp0_safe_receiver = clientPayload.kaa_1;
|
|
38080
38083
|
var tmp5_processingCardOnTable = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s6i_1;
|
|
@@ -38089,13 +38092,13 @@
|
|
|
38089
38092
|
var _iterator__ex2g4s = combinations.l();
|
|
38090
38093
|
while (_iterator__ex2g4s.m()) {
|
|
38091
38094
|
var item = _iterator__ex2g4s.n();
|
|
38092
|
-
var tmp0_elvis_lhs = item.
|
|
38095
|
+
var tmp0_elvis_lhs = item.m7p_1;
|
|
38093
38096
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
38094
38097
|
destination.j(tmp$ret$0);
|
|
38095
38098
|
}
|
|
38096
38099
|
var combinationCards = flatten(destination);
|
|
38097
38100
|
var tmp7_safe_receiver = table.cardDeck;
|
|
38098
|
-
var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
38101
|
+
var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.s91();
|
|
38099
38102
|
var tmp = tmp8_elvis_lhs == null ? 0 : tmp8_elvis_lhs;
|
|
38100
38103
|
// Inline function 'kotlin.collections.map' call
|
|
38101
38104
|
var this_0 = sortedWith(swapWithCombinationCardsIfNeeded(this, playerCards, combinationCards), new CardSuitSortingComparator(clientPayload.ya9_1.val_1));
|
|
@@ -38107,7 +38110,7 @@
|
|
|
38107
38110
|
var tmp1_isDistribution = cardsToDistribute.u1(item_0);
|
|
38108
38111
|
var tmp2_enabled = cardsStateVM.naj(item_0);
|
|
38109
38112
|
var tmp0_safe_receiver_0 = table.cardDeck;
|
|
38110
|
-
var tmp3_isTrump = equals(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
38113
|
+
var tmp3_isTrump = equals(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.n85_1, item_0);
|
|
38111
38114
|
var tmp$ret$3 = new CardViewModel(item_0, tmp2_enabled, tmp3_isTrump, tmp1_isDistribution);
|
|
38112
38115
|
destination_0.j(tmp$ret$3);
|
|
38113
38116
|
}
|
|
@@ -38116,7 +38119,7 @@
|
|
|
38116
38119
|
protoOf(PlayerHandSelector).rdd = function (playerCards, isCardsDistribution, table) {
|
|
38117
38120
|
var tmp;
|
|
38118
38121
|
if (isCardsDistribution) {
|
|
38119
|
-
switch (table.sceneInfo.
|
|
38122
|
+
switch (table.sceneInfo.i8i_1) {
|
|
38120
38123
|
case 'TRADE':
|
|
38121
38124
|
tmp = playerCards;
|
|
38122
38125
|
break;
|
|
@@ -38159,7 +38162,7 @@
|
|
|
38159
38162
|
}
|
|
38160
38163
|
var playerTransitions = destination_0;
|
|
38161
38164
|
var tmp1_playerId = player.playerId;
|
|
38162
|
-
var tmp2_cards = player.
|
|
38165
|
+
var tmp2_cards = player.m75_1;
|
|
38163
38166
|
var tmp3_players = mapWithIndex(table.players);
|
|
38164
38167
|
var tmp0_safe_receiver = clientPayload.kaa_1;
|
|
38165
38168
|
var tmp4_processingCardOnTable = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s6i_1;
|
|
@@ -38180,12 +38183,12 @@
|
|
|
38180
38183
|
};
|
|
38181
38184
|
protoOf(PlayerHandSelector).kcq = function (isCurrentPlayer, cards, isGameActive, table, clientPayload) {
|
|
38182
38185
|
var currentPlayer = get_currentPlayer(table);
|
|
38183
|
-
var isEarnPointScene = get_isEarnPointScene(table.sceneInfo.
|
|
38184
|
-
var tmp0_safe_receiver = table.sceneInfo.
|
|
38186
|
+
var isEarnPointScene = get_isEarnPointScene(table.sceneInfo.i8i_1);
|
|
38187
|
+
var tmp0_safe_receiver = table.sceneInfo.k8i_1;
|
|
38185
38188
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_isPlayerTurnAct(tmp0_safe_receiver);
|
|
38186
38189
|
var isPlayerTurnAct = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
38187
38190
|
var tmp;
|
|
38188
|
-
if (isCurrentPlayer && isGameActive && clientPayload.eaa_1 && currentPlayer.
|
|
38191
|
+
if (isCurrentPlayer && isGameActive && clientPayload.eaa_1 && currentPlayer.l75_1.u6f() && isEarnPointScene && isPlayerTurnAct && clientPayload.kaa_1 == null) {
|
|
38189
38192
|
// Inline function 'kotlin.collections.filter' call
|
|
38190
38193
|
// Inline function 'kotlin.collections.filterTo' call
|
|
38191
38194
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -38245,7 +38248,7 @@
|
|
|
38245
38248
|
var _iterator__ex2g4s = tmp1_safe_receiver.l();
|
|
38246
38249
|
while (_iterator__ex2g4s.m()) {
|
|
38247
38250
|
var element = _iterator__ex2g4s.n();
|
|
38248
|
-
var tmp0_safe_receiver = element.
|
|
38251
|
+
var tmp0_safe_receiver = element.m7p_1;
|
|
38249
38252
|
if (tmp0_safe_receiver == null)
|
|
38250
38253
|
null;
|
|
38251
38254
|
else {
|
|
@@ -39101,12 +39104,15 @@
|
|
|
39101
39104
|
defineProp(protoOf(BaseGameMechanic), 'table', function () {
|
|
39102
39105
|
return this.c72();
|
|
39103
39106
|
});
|
|
39104
|
-
defineProp(protoOf(BaseGameMechanic), '
|
|
39107
|
+
defineProp(protoOf(BaseGameMechanic), 'tableOrNull', function () {
|
|
39105
39108
|
return this.d72();
|
|
39106
39109
|
});
|
|
39107
|
-
defineProp(protoOf(BaseGameMechanic), '
|
|
39110
|
+
defineProp(protoOf(BaseGameMechanic), 'isTableExists', function () {
|
|
39108
39111
|
return this.e72();
|
|
39109
39112
|
});
|
|
39113
|
+
defineProp(protoOf(BaseGameMechanic), 'gameLifecycleState', function () {
|
|
39114
|
+
return this.f72();
|
|
39115
|
+
});
|
|
39110
39116
|
defineProp(protoOf(OnlineGameMechanicImpl), 'currentPlayerId', function () {
|
|
39111
39117
|
return this.wbr();
|
|
39112
39118
|
});
|
|
@@ -39116,12 +39122,15 @@
|
|
|
39116
39122
|
defineProp(protoOf(OnlineGameMechanicImpl), 'table', function () {
|
|
39117
39123
|
return this.c72();
|
|
39118
39124
|
});
|
|
39119
|
-
defineProp(protoOf(OnlineGameMechanicImpl), '
|
|
39125
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'tableOrNull', function () {
|
|
39120
39126
|
return this.d72();
|
|
39121
39127
|
});
|
|
39122
|
-
defineProp(protoOf(OnlineGameMechanicImpl), '
|
|
39128
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'isTableExists', function () {
|
|
39123
39129
|
return this.e72();
|
|
39124
39130
|
});
|
|
39131
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'gameLifecycleState', function () {
|
|
39132
|
+
return this.f72();
|
|
39133
|
+
});
|
|
39125
39134
|
protoOf(PlayersSceneContractImpl).acj = waitUntilSceneActivated;
|
|
39126
39135
|
protoOf(TableSceneContractImpl).acj = waitUntilSceneActivated;
|
|
39127
39136
|
protoOf(BufferLifecycleAction).n6o = get_actionTag;
|
|
@@ -39215,7 +39224,7 @@
|
|
|
39215
39224
|
});
|
|
39216
39225
|
protoOf(ExpectantTimerTag).ignoreValidation = ignoreValidation;
|
|
39217
39226
|
protoOf(ResetMessageTimerTag).ignoreValidation = ignoreValidation;
|
|
39218
|
-
protoOf(ResetMessageTimerTag).
|
|
39227
|
+
protoOf(ResetMessageTimerTag).j9i = ignoreTimerResetValidation;
|
|
39219
39228
|
defineProp(protoOf(DistributeCardsModel), 'playerId', function () {
|
|
39220
39229
|
return this.h6e();
|
|
39221
39230
|
});
|