game_client_logic_deb 1.8.345 → 1.8.346
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-game_client.js +18 -13
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
function addFormatStructureForTime(structure) {
|
|
365
365
|
this.v5c(structure);
|
|
366
366
|
}
|
|
367
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
367
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
|
|
368
368
|
initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
|
|
369
369
|
initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
|
|
370
370
|
function set_fractionOfSecond(value) {
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
381
381
|
//endregion
|
|
382
382
|
function GameEngineConfig() {
|
|
383
|
-
this.version = '1.8.
|
|
383
|
+
this.version = '1.8.346';
|
|
384
384
|
}
|
|
385
385
|
protoOf(GameEngineConfig).x30 = function () {
|
|
386
386
|
return this.version;
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
598
598
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
599
599
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
600
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
600
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
601
601
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
602
602
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
603
603
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -15457,7 +15457,9 @@
|
|
|
15457
15457
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).wa() + ', current scene is ' + toString_0(tmp0));
|
|
15458
15458
|
}
|
|
15459
15459
|
var sceneData = tmp$ret$0;
|
|
15460
|
-
|
|
15460
|
+
var tmp0_cardsToDistribute = sceneData.z7f_1;
|
|
15461
|
+
var tmp1_otherCardsCount = sceneData.c7g_1.m();
|
|
15462
|
+
return addCardDistributionTransition($this, state, currentPlayerId, tmp0_cardsToDistribute, null, tmp1_otherCardsCount);
|
|
15461
15463
|
}
|
|
15462
15464
|
function handleEarnPointsScene($this, state, action, currentPlayerId) {
|
|
15463
15465
|
var tmp0 = action.sceneData;
|
|
@@ -15477,15 +15479,18 @@
|
|
|
15477
15479
|
var tmp3_newTopOpenedCard = sceneData.g7g_1;
|
|
15478
15480
|
var tmp4_newPlayersCards = sceneData.e7g_1;
|
|
15479
15481
|
var updatedCardDeck = tmp0_$this.p9e(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
15480
|
-
|
|
15482
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.n7o_1;
|
|
15483
|
+
var tmp6_cardsToDistribute = sceneData.e7g_1;
|
|
15484
|
+
var tmp7_otherCardsCount = updatedCardDeck.e8h();
|
|
15485
|
+
return addCardDistributionTransition($this, state, currentPlayerId, tmp6_cardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
15481
15486
|
}
|
|
15482
|
-
function addCardDistributionTransition($this, state, currentPlayerId,
|
|
15487
|
+
function addCardDistributionTransition($this, state, currentPlayerId, cardsToDistribute, distributeTrumpCard, otherCardsCount) {
|
|
15483
15488
|
var table = state.k6s();
|
|
15484
15489
|
var distributeToCards = prepareCardsForDistribution($this, state, table, currentPlayerId, cardsToDistribute);
|
|
15485
15490
|
var whoGetsTheTrumpCardPlayer = determineWhoGetsTheTrumpCard($this, table);
|
|
15486
15491
|
var cardDeckCards = createCardDeckCards($this, cardsToDistribute, otherCardsCount);
|
|
15487
15492
|
var tmp1_whoChoseSuitPlayerId = whoGetsTheTrumpCardPlayer == null ? null : whoGetsTheTrumpCardPlayer.playerId;
|
|
15488
|
-
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards,
|
|
15493
|
+
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards, distributeTrumpCard, cardDeckCards, tmp1_whoChoseSuitPlayerId);
|
|
15489
15494
|
var updatedTransitions = plus_0(get_clientPayload_0(state).m9x_1, new CardDistributionTransition($this.kbc_1.f6l(), cardPairsMap));
|
|
15490
15495
|
return state.i8z(VOID, get_clientPayload_0(state).xb6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15491
15496
|
}
|
|
@@ -15577,10 +15582,10 @@
|
|
|
15577
15582
|
while (inductionVariable < size);
|
|
15578
15583
|
return takeLast(list, cardsToDistributeCount);
|
|
15579
15584
|
}
|
|
15580
|
-
function dealCardsByWaves($this, distributeCardsModels,
|
|
15585
|
+
function dealCardsByWaves($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave) {
|
|
15581
15586
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
15582
15587
|
var playersCardsFromCardDeck = LinkedHashMap_init_$Create$();
|
|
15583
|
-
var updatedDistributeToCards = handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId,
|
|
15588
|
+
var updatedDistributeToCards = handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId, distributeTrumpCard, playersCardsFromCardDeck);
|
|
15584
15589
|
// Inline function 'kotlin.collections.sumOf' call
|
|
15585
15590
|
var sum = 0;
|
|
15586
15591
|
var _iterator__ex2g4s = updatedDistributeToCards.j();
|
|
@@ -15594,9 +15599,9 @@
|
|
|
15594
15599
|
distributeRemainingCards($this, updatedDistributeToCards, cardDeckCardsIterator, playersCardsFromCardDeck, cardsInWave);
|
|
15595
15600
|
return playersCardsFromCardDeck;
|
|
15596
15601
|
}
|
|
15597
|
-
function dealCardsByWaves$default($this, distributeCardsModels,
|
|
15602
|
+
function dealCardsByWaves$default($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave, $super) {
|
|
15598
15603
|
cardsInWave = cardsInWave === VOID ? 2 : cardsInWave;
|
|
15599
|
-
return dealCardsByWaves($this, distributeCardsModels,
|
|
15604
|
+
return dealCardsByWaves($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave);
|
|
15600
15605
|
}
|
|
15601
15606
|
function addCards($this, _this__u8e3s4, playerId, cards) {
|
|
15602
15607
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -15607,9 +15612,9 @@
|
|
|
15607
15612
|
_this__u8e3s4.k2(playerId, value);
|
|
15608
15613
|
return _this__u8e3s4;
|
|
15609
15614
|
}
|
|
15610
|
-
function handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId,
|
|
15615
|
+
function handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId, distributeTrumpCard, playersCardsFromCardDeck) {
|
|
15611
15616
|
var updatedDistributeCardsModels = toMutableList(distributeCardsModels);
|
|
15612
|
-
if (!(whoChoseSuitPlayerId == null)) {
|
|
15617
|
+
if (!(whoChoseSuitPlayerId == null) && !(distributeTrumpCard == null)) {
|
|
15613
15618
|
var model = getPlayer(distributeCardsModels, whoChoseSuitPlayerId);
|
|
15614
15619
|
var tmp0 = model.qbc_1;
|
|
15615
15620
|
var tmp$ret$1;
|
|
@@ -15618,7 +15623,7 @@
|
|
|
15618
15623
|
var _iterator__ex2g4s = tmp0.j();
|
|
15619
15624
|
while (_iterator__ex2g4s.k()) {
|
|
15620
15625
|
var element = _iterator__ex2g4s.l();
|
|
15621
|
-
if (element.equals(
|
|
15626
|
+
if (element.equals(distributeTrumpCard)) {
|
|
15622
15627
|
tmp$ret$1 = element;
|
|
15623
15628
|
break $l$block;
|
|
15624
15629
|
}
|
|
@@ -15629,7 +15634,7 @@
|
|
|
15629
15634
|
var toCard = tmp0_elvis_lhs == null ? first(model.qbc_1) : tmp0_elvis_lhs;
|
|
15630
15635
|
var tmp1_index = model.rbc_1.u1(toCard);
|
|
15631
15636
|
var tmp2_mode = CardTransitionMode_DISTRIBUTION_getInstance();
|
|
15632
|
-
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf_0(new CardInHandTransition(tmp2_mode, tmp1_index,
|
|
15637
|
+
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf_0(new CardInHandTransition(tmp2_mode, tmp1_index, distributeTrumpCard, toCard)));
|
|
15633
15638
|
// Inline function 'kotlin.collections.filter' call
|
|
15634
15639
|
var tmp0_0 = model.qbc_1;
|
|
15635
15640
|
// Inline function 'kotlin.collections.filterTo' call
|