game_client_logic_deb 1.8.424 → 1.8.425
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +5756 -5744
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -1
- package/Logic_Debertz-game_client.js +61 -61
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -1408,7 +1408,10 @@ export declare namespace games.jass.logic.data.models.player.points {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
export declare namespace games.jass.logic.data.models.player.state {
|
|
1410
1410
|
class PlayerLeftResult {
|
|
1411
|
-
constructor(playerAchievements: Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>, playerGameAnalytics: Nullable<games.jass.logic.data.models.player.analytics.PlayerAnalytics>);
|
|
1411
|
+
constructor(gameId: string, gameCreatedAt: any/* kotlin.time.Instant */, config: games.jass.logic.data.models.table.config.Config, playerAchievements: Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>, playerGameAnalytics: Nullable<games.jass.logic.data.models.player.analytics.PlayerAnalytics>);
|
|
1412
|
+
get gameId(): string;
|
|
1413
|
+
get gameCreatedAt(): any/* kotlin.time.Instant */;
|
|
1414
|
+
get config(): games.jass.logic.data.models.table.config.Config;
|
|
1412
1415
|
get playerAchievements(): Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>;
|
|
1413
1416
|
get playerGameAnalytics(): Nullable<games.jass.logic.data.models.player.analytics.PlayerAnalytics>;
|
|
1414
1417
|
}
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
599
599
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
600
600
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
601
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
601
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ControlsContract, ExpectantContract, SceneActionsContract]);
|
|
602
602
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
603
603
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
604
604
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -2542,7 +2542,7 @@
|
|
|
2542
2542
|
var _iterator__ex2g4s = this_0.l();
|
|
2543
2543
|
while (_iterator__ex2g4s.m()) {
|
|
2544
2544
|
var item = _iterator__ex2g4s.n();
|
|
2545
|
-
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.
|
|
2545
|
+
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.r79_1));
|
|
2546
2546
|
destination.j(tmp$ret$0);
|
|
2547
2547
|
}
|
|
2548
2548
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, destination);
|
|
@@ -2577,9 +2577,9 @@
|
|
|
2577
2577
|
var _iterator__ex2g4s = points.l();
|
|
2578
2578
|
while (_iterator__ex2g4s.m()) {
|
|
2579
2579
|
var item = _iterator__ex2g4s.n();
|
|
2580
|
-
var tmp0_points = item.
|
|
2580
|
+
var tmp0_points = item.t7r_1;
|
|
2581
2581
|
// Inline function 'kotlin.collections.map' call
|
|
2582
|
-
var this_0 = item.
|
|
2582
|
+
var this_0 = item.s7r_1;
|
|
2583
2583
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2584
2584
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2585
2585
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
@@ -2599,9 +2599,9 @@
|
|
|
2599
2599
|
return new GameInfoViewModel(tmp3_trump, tmp7_pointsMode, tmp6_playersMode, tmp8_points, tmp5_whoChoseSuitUserInfo, tmp4_whoShuffleCardsUserInfo, tmp9_rulesSetType, tmp10_rules);
|
|
2600
2600
|
}
|
|
2601
2601
|
function toVM_1(_this__u8e3s4, playerIndex) {
|
|
2602
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
2603
|
-
var tmp1_card = _this__u8e3s4.
|
|
2604
|
-
var tmp2_position = _this__u8e3s4.
|
|
2602
|
+
var tmp0_playerId = _this__u8e3s4.r79_1;
|
|
2603
|
+
var tmp1_card = _this__u8e3s4.t79_1;
|
|
2604
|
+
var tmp2_position = _this__u8e3s4.s79_1;
|
|
2605
2605
|
return new CardOnTableViewModel(playerIndex, tmp0_playerId, tmp2_position, tmp1_card);
|
|
2606
2606
|
}
|
|
2607
2607
|
function SceneViewModel(roundNumber, sceneId, previousSceneId) {
|
|
@@ -5163,7 +5163,7 @@
|
|
|
5163
5163
|
var table = state.w6m();
|
|
5164
5164
|
if (isInterface(action, InSceneAction)) {
|
|
5165
5165
|
var tmp;
|
|
5166
|
-
if (action.f91(table.sceneInfo.
|
|
5166
|
+
if (action.f91(table.sceneInfo.m7w_1)) {
|
|
5167
5167
|
tmp = new AvoidBuffer('CheckSceneBufferUseCase.inScene');
|
|
5168
5168
|
} else {
|
|
5169
5169
|
tmp = new PutInBuffer('CheckSceneBufferUseCase.inScene');
|
|
@@ -5200,7 +5200,7 @@
|
|
|
5200
5200
|
}
|
|
5201
5201
|
protoOf(PassErrorActionBufferUseCase).q9w = function (state, action) {
|
|
5202
5202
|
if (action instanceof ErrorAction) {
|
|
5203
|
-
var reason = action.f92_1.
|
|
5203
|
+
var reason = action.f92_1.q7n_1;
|
|
5204
5204
|
return checkTerminatedReason(state.tableOrNull, false, reason, 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
5205
5205
|
}
|
|
5206
5206
|
return new AvoidBuffer('PassErrorActionBufferUseCase');
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
if (!mustConsider)
|
|
5397
5397
|
return null;
|
|
5398
5398
|
var isPartnerLeads = config.playersMode.isTeamGame && isPartnerOf($this, winCard, player, players, $this.d9y_1);
|
|
5399
|
-
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.
|
|
5399
|
+
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.t79_1, trump, firstSuit);
|
|
5400
5400
|
if (isPartnerLeads) {
|
|
5401
5401
|
var partnerRule = config.rules.trumpCardStepPartnerMode;
|
|
5402
5402
|
switch (partnerRule.q2_1) {
|
|
@@ -5405,7 +5405,7 @@
|
|
|
5405
5405
|
return null;
|
|
5406
5406
|
case 1:
|
|
5407
5407
|
if (isPlayerCardLowerWinCard) {
|
|
5408
|
-
var playerHasHigher = hasHigherTrump($this, player.f6v_1, winCard.
|
|
5408
|
+
var playerHasHigher = hasHigherTrump($this, player.f6v_1, winCard.t79_1, trump, putPlayerCard, firstSuit);
|
|
5409
5409
|
return playerHasHigher ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
5410
5410
|
}
|
|
5411
5411
|
|
|
@@ -5416,7 +5416,7 @@
|
|
|
5416
5416
|
}
|
|
5417
5417
|
} else {
|
|
5418
5418
|
if (isPlayerCardLowerWinCard) {
|
|
5419
|
-
var playerHasHigher_0 = hasHigherTrump($this, player.f6v_1, winCard.
|
|
5419
|
+
var playerHasHigher_0 = hasHigherTrump($this, player.f6v_1, winCard.t79_1, trump, putPlayerCard, firstSuit);
|
|
5420
5420
|
return playerHasHigher_0 ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
5421
5421
|
}
|
|
5422
5422
|
}
|
|
@@ -5449,7 +5449,7 @@
|
|
|
5449
5449
|
return tmp$ret$0;
|
|
5450
5450
|
}
|
|
5451
5451
|
function isPartnerOf($this, _this__u8e3s4, player, all, teams) {
|
|
5452
|
-
return _this__u8e3s4.
|
|
5452
|
+
return _this__u8e3s4.r79_1 === teams.z8k(player.playerId, all).playerId;
|
|
5453
5453
|
}
|
|
5454
5454
|
function hasHigherTrump($this, _this__u8e3s4, winningCard, trump, playedCard, firstSuit) {
|
|
5455
5455
|
var tmp$ret$0;
|
|
@@ -5491,7 +5491,7 @@
|
|
|
5491
5491
|
tmp = tmp0_elvis_lhs;
|
|
5492
5492
|
}
|
|
5493
5493
|
var firstOnTable = tmp;
|
|
5494
|
-
var firstSuit = firstOnTable.
|
|
5494
|
+
var firstSuit = firstOnTable.t79_1.a5c();
|
|
5495
5495
|
var playerHasSuit = hasSuit(this, player.f6v_1, firstSuit);
|
|
5496
5496
|
var playerHasTrump = hasSuit(this, player.f6v_1, trump);
|
|
5497
5497
|
var tmp$ret$0;
|
|
@@ -5510,7 +5510,7 @@
|
|
|
5510
5510
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
5511
5511
|
while (_iterator__ex2g4s.m()) {
|
|
5512
5512
|
var element = _iterator__ex2g4s.n();
|
|
5513
|
-
if (element.
|
|
5513
|
+
if (element.t79_1.a5c().equals(trump)) {
|
|
5514
5514
|
tmp$ret$0 = true;
|
|
5515
5515
|
break $l$block_0;
|
|
5516
5516
|
}
|
|
@@ -6113,9 +6113,9 @@
|
|
|
6113
6113
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.round;
|
|
6114
6114
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.roundNumber;
|
|
6115
6115
|
var tmp_0 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
6116
|
-
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.
|
|
6116
|
+
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.m7w_1;
|
|
6117
6117
|
var tmp_1 = tmp6_elvis_lhs == null ? 'WAITING' : tmp6_elvis_lhs;
|
|
6118
|
-
suspendResult = tmp0.z27(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.
|
|
6118
|
+
suspendResult = tmp0.z27(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.n7w_1), this);
|
|
6119
6119
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6120
6120
|
return suspendResult;
|
|
6121
6121
|
}
|
|
@@ -6715,7 +6715,7 @@
|
|
|
6715
6715
|
var value = this.ua7_1;
|
|
6716
6716
|
this.s8_1 = 1;
|
|
6717
6717
|
var tmp_0;
|
|
6718
|
-
if (get_isChoosePartnerScene(value.w6m().sceneInfo.
|
|
6718
|
+
if (get_isChoosePartnerScene(value.w6m().sceneInfo.m7w_1)) {
|
|
6719
6719
|
tmp_0 = null;
|
|
6720
6720
|
} else {
|
|
6721
6721
|
tmp_0 = this.ta7_1.ka0_1.c8u(value.w6m().players, value.w6m().config);
|
|
@@ -12967,14 +12967,14 @@
|
|
|
12967
12967
|
throw new MechanicException('Required ' + getKClass(WaitingActData).ea() + ', current act is ' + toString_0(tmp0));
|
|
12968
12968
|
}
|
|
12969
12969
|
var waitingActData = tmp$ret$0;
|
|
12970
|
-
var requestPayload = waitingActData.
|
|
12970
|
+
var requestPayload = waitingActData.o7a_1;
|
|
12971
12971
|
if (!(requestPayload == null)) {
|
|
12972
12972
|
if (requestPayload instanceof CardDeckRequest) {
|
|
12973
|
-
if (this.wb0_1 === waitingActData.
|
|
12973
|
+
if (this.wb0_1 === waitingActData.l7a()) {
|
|
12974
12974
|
var tmp = store.dispatch;
|
|
12975
12975
|
// Inline function 'kotlin.collections.List' call
|
|
12976
12976
|
// Inline function 'kotlin.collections.MutableList' call
|
|
12977
|
-
var size = requestPayload.
|
|
12977
|
+
var size = requestPayload.m7a_1;
|
|
12978
12978
|
var list = ArrayList_init_$Create$(size);
|
|
12979
12979
|
// Inline function 'kotlin.repeat' call
|
|
12980
12980
|
var inductionVariable = 0;
|
|
@@ -13000,7 +13000,7 @@
|
|
|
13000
13000
|
var _iterator__ex2g4s_0 = destination.l();
|
|
13001
13001
|
while (_iterator__ex2g4s_0.m()) {
|
|
13002
13002
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
13003
|
-
var tmp$ret$9 = Companion_instance_1.
|
|
13003
|
+
var tmp$ret$9 = Companion_instance_1.d7p(item_0);
|
|
13004
13004
|
destination_0.j(tmp$ret$9);
|
|
13005
13005
|
}
|
|
13006
13006
|
var tmp3_tag = this.yb0_1.j8p(action_0.t8u_1, store.state.w6m().gameInfo.round);
|
|
@@ -13159,7 +13159,7 @@
|
|
|
13159
13159
|
var _iterator__ex2g4s = combinations.l();
|
|
13160
13160
|
while (_iterator__ex2g4s.m()) {
|
|
13161
13161
|
var item = _iterator__ex2g4s.n();
|
|
13162
|
-
var tmp$ret$0 = item.
|
|
13162
|
+
var tmp$ret$0 = item.t7a_1;
|
|
13163
13163
|
destination.j(tmp$ret$0);
|
|
13164
13164
|
}
|
|
13165
13165
|
tmp_0(new MessageMechanicAction($this.raz_1.x8m(destination, player.d6v_1)));
|
|
@@ -13169,7 +13169,7 @@
|
|
|
13169
13169
|
function onCombinationChoiceMessages($this, store, playerId, isAnnounced) {
|
|
13170
13170
|
var state = store.state;
|
|
13171
13171
|
if (isAnnounced) {
|
|
13172
|
-
var tmp0 = state.w6m().sceneInfo.
|
|
13172
|
+
var tmp0 = state.w6m().sceneInfo.q7w_1;
|
|
13173
13173
|
var tmp$ret$0;
|
|
13174
13174
|
$l$block: {
|
|
13175
13175
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -13183,13 +13183,13 @@
|
|
|
13183
13183
|
var player = getPlayer(state.w6m().players, playerId);
|
|
13184
13184
|
var tmp = store.dispatch;
|
|
13185
13185
|
// Inline function 'kotlin.collections.map' call
|
|
13186
|
-
var this_0 = combinationActData.
|
|
13186
|
+
var this_0 = combinationActData.q7a_1;
|
|
13187
13187
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13188
13188
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
13189
13189
|
var _iterator__ex2g4s = this_0.l();
|
|
13190
13190
|
while (_iterator__ex2g4s.m()) {
|
|
13191
13191
|
var item = _iterator__ex2g4s.n();
|
|
13192
|
-
var tmp$ret$1 = item.
|
|
13192
|
+
var tmp$ret$1 = item.t7a_1;
|
|
13193
13193
|
destination.j(tmp$ret$1);
|
|
13194
13194
|
}
|
|
13195
13195
|
tmp(new MessageMechanicAction($this.raz_1.x8m(destination, player.d6v_1)));
|
|
@@ -13283,8 +13283,8 @@
|
|
|
13283
13283
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0_1));
|
|
13284
13284
|
}
|
|
13285
13285
|
var scene = tmp$ret$6;
|
|
13286
|
-
store.dispatch(new MessageMechanicAction($this.raz_1.w8m(getPlayer(table.players, scene.
|
|
13287
|
-
var randomData = scene.
|
|
13286
|
+
store.dispatch(new MessageMechanicAction($this.raz_1.w8m(getPlayer(table.players, scene.c7c_1).d6v_1, scene.a7c_1)));
|
|
13287
|
+
var randomData = scene.z7b_1;
|
|
13288
13288
|
if (!(randomData == null)) {
|
|
13289
13289
|
store.dispatch(new MessageMechanicAction($this.raz_1.g8n(randomData)));
|
|
13290
13290
|
}
|
|
@@ -13304,15 +13304,15 @@
|
|
|
13304
13304
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
13305
13305
|
var tmp_3 = store.dispatch;
|
|
13306
13306
|
// Inline function 'kotlin.collections.map' call
|
|
13307
|
-
var this_0 = $this.saz_1.b8u(scene_0.
|
|
13307
|
+
var this_0 = $this.saz_1.b8u(scene_0.s7b_1);
|
|
13308
13308
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13309
13309
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
13310
13310
|
var _iterator__ex2g4s_2 = this_0.l();
|
|
13311
13311
|
while (_iterator__ex2g4s_2.m()) {
|
|
13312
13312
|
var item = _iterator__ex2g4s_2.n();
|
|
13313
|
-
var tmp0_points = item.
|
|
13313
|
+
var tmp0_points = item.t7r_1;
|
|
13314
13314
|
// Inline function 'kotlin.collections.map' call
|
|
13315
|
-
var this_1 = item.
|
|
13315
|
+
var this_1 = item.s7r_1;
|
|
13316
13316
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13317
13317
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
13318
13318
|
var _iterator__ex2g4s_3 = this_1.l();
|
|
@@ -13324,7 +13324,7 @@
|
|
|
13324
13324
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
13325
13325
|
destination.j(tmp$ret$11);
|
|
13326
13326
|
}
|
|
13327
|
-
tmp_3(new MessageMechanicAction($this.raz_1.a8n(table_0.gameInfo.round, destination, scene_0.
|
|
13327
|
+
tmp_3(new MessageMechanicAction($this.raz_1.a8n(table_0.gameInfo.round, destination, scene_0.w7b(whoChoseSuitPlayerId), scene_0.v7b(whoChoseSuitPlayerId), scene_0.p7b_1)));
|
|
13328
13328
|
}
|
|
13329
13329
|
}
|
|
13330
13330
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
@@ -13419,24 +13419,24 @@
|
|
|
13419
13419
|
} else {
|
|
13420
13420
|
if (action instanceof SuitChoiceFromClientAction) {
|
|
13421
13421
|
var tmp_2;
|
|
13422
|
-
if (action.
|
|
13423
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13422
|
+
if (action.b7o_1 === $currentPlayerId) {
|
|
13423
|
+
onSuitSelectMessages(this$0, store, action.b7o_1, action.e7o_1);
|
|
13424
13424
|
tmp_2 = Unit_instance;
|
|
13425
13425
|
}
|
|
13426
13426
|
tmp = tmp_2;
|
|
13427
13427
|
} else {
|
|
13428
13428
|
if (action instanceof CardFromClientAction) {
|
|
13429
13429
|
var tmp_3;
|
|
13430
|
-
if (action.
|
|
13431
|
-
onCardMessages(this$0, store, action.
|
|
13430
|
+
if (action.j7o_1 === $currentPlayerId) {
|
|
13431
|
+
onCardMessages(this$0, store, action.j7o_1, action.n7o_1);
|
|
13432
13432
|
tmp_3 = Unit_instance;
|
|
13433
13433
|
}
|
|
13434
13434
|
tmp = tmp_3;
|
|
13435
13435
|
} else {
|
|
13436
13436
|
if (action instanceof CombinationChoiceFromClientAction) {
|
|
13437
13437
|
var tmp_4;
|
|
13438
|
-
if (action.
|
|
13439
|
-
onCombinationChoiceMessages(this$0, store, action.
|
|
13438
|
+
if (action.f7o_1 === $currentPlayerId) {
|
|
13439
|
+
onCombinationChoiceMessages(this$0, store, action.f7o_1, action.i7o_1);
|
|
13440
13440
|
tmp_4 = Unit_instance;
|
|
13441
13441
|
}
|
|
13442
13442
|
tmp = tmp_4;
|
|
@@ -13567,7 +13567,7 @@
|
|
|
13567
13567
|
tmp = this.db1_1.f8t(tmp4, table);
|
|
13568
13568
|
} else {
|
|
13569
13569
|
if (tmp4 instanceof CardFromClientAction) {
|
|
13570
|
-
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.
|
|
13570
|
+
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.j7o_1, table.cardsOnTable.o(), tmp4.m7o_1));
|
|
13571
13571
|
var cardMechanicAction = this.db1_1.g8t(tmp4, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
13572
13572
|
tmp = cardMechanicAction;
|
|
13573
13573
|
} else {
|
|
@@ -14518,7 +14518,7 @@
|
|
|
14518
14518
|
protoOf(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1).l6f = function (store, next, action) {
|
|
14519
14519
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
14520
14520
|
var state = store.state;
|
|
14521
|
-
if (get_isEarnPointScene(state.w6m().sceneInfo.
|
|
14521
|
+
if (get_isEarnPointScene(state.w6m().sceneInfo.m7w_1)) {
|
|
14522
14522
|
var tmp0_putPlayerCard = action_0.xb4_1;
|
|
14523
14523
|
var tmp1_player = get_currentPlayer(state.w6m());
|
|
14524
14524
|
var tmp2_table = state.w6m();
|
|
@@ -14580,8 +14580,8 @@
|
|
|
14580
14580
|
function ClientCombinationsReducerImpl() {
|
|
14581
14581
|
}
|
|
14582
14582
|
protoOf(ClientCombinationsReducerImpl).bb5 = function (currentPlayerId, actData) {
|
|
14583
|
-
if (!(actData == null) && currentPlayerId === actData.
|
|
14584
|
-
return new CombinationToAnnounceState(actData.
|
|
14583
|
+
if (!(actData == null) && currentPlayerId === actData.l7a()) {
|
|
14584
|
+
return new CombinationToAnnounceState(actData.q7a_1, null, null);
|
|
14585
14585
|
}
|
|
14586
14586
|
return null;
|
|
14587
14587
|
};
|
|
@@ -14818,7 +14818,7 @@
|
|
|
14818
14818
|
if (clientState == null) {
|
|
14819
14819
|
var tmp_0 = Companion_instance_14;
|
|
14820
14820
|
var tmp_1 = get_currentPlayer(action.table).playerId;
|
|
14821
|
-
var tmp0_safe_receiver = action.table.sceneInfo.
|
|
14821
|
+
var tmp0_safe_receiver = action.table.sceneInfo.q7w_1;
|
|
14822
14822
|
var tmp_2;
|
|
14823
14823
|
if (tmp0_safe_receiver == null) {
|
|
14824
14824
|
tmp_2 = null;
|
|
@@ -14888,8 +14888,8 @@
|
|
|
14888
14888
|
}
|
|
14889
14889
|
var newPayload = tmp;
|
|
14890
14890
|
var tmp3_safe_receiver = state.i6m_1;
|
|
14891
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.l8y(action.f92_1.
|
|
14892
|
-
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.f92_1.
|
|
14891
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.l8y(action.f92_1.q7n_1);
|
|
14892
|
+
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.f92_1.q7n_1) : tmp4_elvis_lhs;
|
|
14893
14893
|
return state.h8y(VOID, newPayload, GameLifecycleState_FINISHED_getInstance(), newTerminationState);
|
|
14894
14894
|
};
|
|
14895
14895
|
function clientResetProcessingCardReducer() {
|
|
@@ -14984,8 +14984,8 @@
|
|
|
14984
14984
|
var tmp_0 = get_clientPayload_0(state);
|
|
14985
14985
|
var tmp_1;
|
|
14986
14986
|
if (tmp2.nax_1) {
|
|
14987
|
-
var cards = last(state.w6m().bribes).
|
|
14988
|
-
tmp_1 = new LastBribeState(first(cards).
|
|
14987
|
+
var cards = last(state.w6m().bribes).e7l_1;
|
|
14988
|
+
tmp_1 = new LastBribeState(first(cards).r79_1, getWhoGotPreviousBribe(state.w6m().players).playerId, cards);
|
|
14989
14989
|
} else {
|
|
14990
14990
|
tmp_1 = null;
|
|
14991
14991
|
}
|
|
@@ -15419,7 +15419,7 @@
|
|
|
15419
15419
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0));
|
|
15420
15420
|
}
|
|
15421
15421
|
var sceneData = tmp$ret$0;
|
|
15422
|
-
var playersCardsToDistribute = sceneData.
|
|
15422
|
+
var playersCardsToDistribute = sceneData.y7b_1;
|
|
15423
15423
|
// Inline function 'kotlin.collections.sumOf' call
|
|
15424
15424
|
var sum = 0;
|
|
15425
15425
|
var _iterator__ex2g4s = playersCardsToDistribute.e2().l();
|
|
@@ -15429,9 +15429,9 @@
|
|
|
15429
15429
|
sum = tmp + element.o() | 0;
|
|
15430
15430
|
}
|
|
15431
15431
|
var cardsToDistributeCount = sum;
|
|
15432
|
-
var otherCardsCount = sceneData.
|
|
15432
|
+
var otherCardsCount = sceneData.b7c_1.o();
|
|
15433
15433
|
var cardDeckCards = createCardDeckCards($this, cardsToDistributeCount, otherCardsCount);
|
|
15434
|
-
var shuffleCardTransition = new ShuffleCardDeckTransition($this.kb6_1.u6b(), plus(listOf_0(sceneData.
|
|
15434
|
+
var shuffleCardTransition = new ShuffleCardDeckTransition($this.kb6_1.u6b(), plus(listOf_0(sceneData.a7c_1), cardDeckCards));
|
|
15435
15435
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, null, otherCardsCount);
|
|
15436
15436
|
var updatedTransitions = plus(get_clientPayload_0(state).m9x_1, listOf([shuffleCardTransition, distributionTransition]));
|
|
15437
15437
|
return state.h8y(VOID, get_clientPayload_0(state).eb1(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
@@ -15451,11 +15451,11 @@
|
|
|
15451
15451
|
var tmp0_$this = $this.jb6_1;
|
|
15452
15452
|
var tmp1_config = state.w6m().config;
|
|
15453
15453
|
var tmp2_cardDeck = state.w6m().requireCardDeck;
|
|
15454
|
-
var tmp3_newTopOpenedCard = sceneData.
|
|
15455
|
-
var tmp4_newPlayersCards = sceneData.
|
|
15454
|
+
var tmp3_newTopOpenedCard = sceneData.f7c_1;
|
|
15455
|
+
var tmp4_newPlayersCards = sceneData.d7c_1;
|
|
15456
15456
|
var updatedCardDeck = tmp0_$this.a9g(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
15457
|
-
var tmp5_distributeTrumpCard = updatedCardDeck.
|
|
15458
|
-
var tmp6_playersCardsToDistribute = sceneData.
|
|
15457
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.n7l_1;
|
|
15458
|
+
var tmp6_playersCardsToDistribute = sceneData.d7c_1;
|
|
15459
15459
|
var tmp7_otherCardsCount = updatedCardDeck.z8e();
|
|
15460
15460
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, tmp6_playersCardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
15461
15461
|
var updatedTransitions = plus_0(get_clientPayload_0(state).m9x_1, distributionTransition);
|
|
@@ -15759,13 +15759,13 @@
|
|
|
15759
15759
|
if (interceptedAction instanceof CombinationChoiceMechanicAction) {
|
|
15760
15760
|
var combination = first(interceptedAction.x91_1);
|
|
15761
15761
|
var tmp_0;
|
|
15762
|
-
if (interceptedAction.w91_1 && combination.
|
|
15762
|
+
if (interceptedAction.w91_1 && combination.t7a_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
15763
15763
|
var trumpCard = single(combination.e8f());
|
|
15764
15764
|
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.bb7_1, trumpCard, getPlayer(state.w6m().players, interceptedAction.playerId), this.cb7_1, state.w6m().players);
|
|
15765
15765
|
var tmp0_id = this.bb7_1.kb6_1.u6b();
|
|
15766
15766
|
var tmp1_playerIds = listOf_0(interceptedAction.playerId);
|
|
15767
|
-
var tmp2_toCard2 = state.w6m().requireCardDeck.
|
|
15768
|
-
var tmp3_fromCard2 = state.w6m().requireCardDeck.
|
|
15767
|
+
var tmp2_toCard2 = state.w6m().requireCardDeck.n7l_1;
|
|
15768
|
+
var tmp3_fromCard2 = state.w6m().requireCardDeck.n7l_1;
|
|
15769
15769
|
var updatedTransitions = plus_0(clientPayload.m9x_1, new SwapCardsTransition(tmp0_id, tmp1_playerIds, trumpCardOrOrigin, trumpCard, tmp3_fromCard2, tmp2_toCard2));
|
|
15770
15770
|
tmp_0 = state.h8y(VOID, clientPayload.eb1(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15771
15771
|
} else {
|
|
@@ -15783,10 +15783,10 @@
|
|
|
15783
15783
|
var _iterator__ex2g4s = this_0.l();
|
|
15784
15784
|
while (_iterator__ex2g4s.m()) {
|
|
15785
15785
|
var element = _iterator__ex2g4s.n();
|
|
15786
|
-
var player = getPlayer(state.w6m().players, element.
|
|
15786
|
+
var player = getPlayer(state.w6m().players, element.x7l_1);
|
|
15787
15787
|
var sortedPlayerCards = sortedWith(player.f6v_1, new CardSuitSortingComparator(get_clientPayload_0(state).z9w_1.v9u_1));
|
|
15788
15788
|
// Inline function 'kotlin.collections.map' call
|
|
15789
|
-
var this_1 = element.
|
|
15789
|
+
var this_1 = element.y7l_1;
|
|
15790
15790
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15791
15791
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
15792
15792
|
var _iterator__ex2g4s_0 = this_1.l();
|
|
@@ -15824,7 +15824,7 @@
|
|
|
15824
15824
|
}
|
|
15825
15825
|
var handTransitions = destination_1;
|
|
15826
15826
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
15827
|
-
var pair = to(element.
|
|
15827
|
+
var pair = to(element.x7l_1, handTransitions);
|
|
15828
15828
|
destination.f2(pair.me_1, pair.ne_1);
|
|
15829
15829
|
}
|
|
15830
15830
|
var updatedTransitions_0 = plus_0(clientPayload.m9x_1, new ShowCombinationTransition(tmp_1, destination));
|
|
@@ -15839,7 +15839,7 @@
|
|
|
15839
15839
|
var _iterator__ex2g4s_2 = this_3.l();
|
|
15840
15840
|
while (_iterator__ex2g4s_2.m()) {
|
|
15841
15841
|
var item_1 = _iterator__ex2g4s_2.n();
|
|
15842
|
-
var tmp$ret$10 = item_1.
|
|
15842
|
+
var tmp$ret$10 = item_1.t79_1;
|
|
15843
15843
|
destination_2.j(tmp$ret$10);
|
|
15844
15844
|
}
|
|
15845
15845
|
var updatedTransitions_1 = plus_0(clientPayload.m9x_1, new PickUpBribeTransition(tmp_3, interceptedAction.q8v_1, destination_2));
|
|
@@ -230,11 +230,6 @@
|
|
|
230
230
|
initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
|
|
231
231
|
initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
|
|
232
232
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
233
|
-
function close$default(cause, $super) {
|
|
234
|
-
cause = cause === VOID ? null : cause;
|
|
235
|
-
return $super === VOID ? this.a26(cause) : $super.a26.call(this, cause);
|
|
236
|
-
}
|
|
237
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
238
233
|
function cancel$default_0(cause, $super) {
|
|
239
234
|
cause = cause === VOID ? null : cause;
|
|
240
235
|
var tmp;
|
|
@@ -247,7 +242,12 @@
|
|
|
247
242
|
return tmp;
|
|
248
243
|
}
|
|
249
244
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
250
|
-
|
|
245
|
+
function close$default(cause, $super) {
|
|
246
|
+
cause = cause === VOID ? null : cause;
|
|
247
|
+
return $super === VOID ? this.a26(cause) : $super.a26.call(this, cause);
|
|
248
|
+
}
|
|
249
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
250
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
251
251
|
initMetadataForClass(WaiterEB, 'WaiterEB');
|
|
252
252
|
initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
|
|
253
253
|
initMetadataForObject(Factory, 'Factory');
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
initMetadataForClass(ChannelResult, 'ChannelResult');
|
|
258
258
|
initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
|
|
259
259
|
initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
|
|
260
|
-
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine,
|
|
260
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, ReceiveChannel, SendChannel], [1, 0]);
|
|
261
261
|
initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
|
|
262
262
|
initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
|
|
263
263
|
initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);
|