client_plugin_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 +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
function addFormatStructureForTime(structure) {
|
|
365
365
|
this.y5h(structure);
|
|
366
366
|
}
|
|
367
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
367
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
|
|
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
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
413
413
|
//endregion
|
|
414
414
|
function GameEngineConfig() {
|
|
415
|
-
this.version = '1.8.
|
|
415
|
+
this.version = '1.8.346';
|
|
416
416
|
}
|
|
417
417
|
protoOf(GameEngineConfig).a36 = function () {
|
|
418
418
|
return this.version;
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
initMetadataForClass(ObserverStrategy, 'ObserverStrategy', VOID, Enum);
|
|
1025
1025
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
1026
1026
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
1027
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
1027
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
1028
1028
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
1029
1029
|
initMetadataForLambda(TableSceneImpl$observeControlsMode$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1030
1030
|
initMetadataForCoroutine($collectCOROUTINE$_43, CoroutineImpl);
|
|
@@ -36295,7 +36295,9 @@
|
|
|
36295
36295
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).wa() + ', current scene is ' + toString_0(tmp0));
|
|
36296
36296
|
}
|
|
36297
36297
|
var sceneData = tmp$ret$0;
|
|
36298
|
-
|
|
36298
|
+
var tmp0_cardsToDistribute = sceneData.n7q_1;
|
|
36299
|
+
var tmp1_otherCardsCount = sceneData.q7q_1.m();
|
|
36300
|
+
return addCardDistributionTransition($this, state, currentPlayerId, tmp0_cardsToDistribute, null, tmp1_otherCardsCount);
|
|
36299
36301
|
}
|
|
36300
36302
|
function handleEarnPointsScene($this, state, action, currentPlayerId) {
|
|
36301
36303
|
var tmp0 = action.sceneData;
|
|
@@ -36315,15 +36317,18 @@
|
|
|
36315
36317
|
var tmp3_newTopOpenedCard = sceneData.v7q_1;
|
|
36316
36318
|
var tmp4_newPlayersCards = sceneData.t7q_1;
|
|
36317
36319
|
var updatedCardDeck = tmp0_$this.p9y(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
36318
|
-
|
|
36320
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.a85_1;
|
|
36321
|
+
var tmp6_cardsToDistribute = sceneData.t7q_1;
|
|
36322
|
+
var tmp7_otherCardsCount = updatedCardDeck.u90();
|
|
36323
|
+
return addCardDistributionTransition($this, state, currentPlayerId, tmp6_cardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
36319
36324
|
}
|
|
36320
|
-
function addCardDistributionTransition($this, state, currentPlayerId,
|
|
36325
|
+
function addCardDistributionTransition($this, state, currentPlayerId, cardsToDistribute, distributeTrumpCard, otherCardsCount) {
|
|
36321
36326
|
var table = state.r72();
|
|
36322
36327
|
var distributeToCards = prepareCardsForDistribution($this, state, table, currentPlayerId, cardsToDistribute);
|
|
36323
36328
|
var whoGetsTheTrumpCardPlayer = determineWhoGetsTheTrumpCard($this, table);
|
|
36324
36329
|
var cardDeckCards = createCardDeckCards($this, cardsToDistribute, otherCardsCount);
|
|
36325
36330
|
var tmp1_whoChoseSuitPlayerId = whoGetsTheTrumpCardPlayer == null ? null : whoGetsTheTrumpCardPlayer.playerId;
|
|
36326
|
-
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards,
|
|
36331
|
+
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards, distributeTrumpCard, cardDeckCards, tmp1_whoChoseSuitPlayerId);
|
|
36327
36332
|
var updatedTransitions = plus_0(get_clientPayload(state).ea8_1, new CardDistributionTransition($this.se1_1.q6r(), cardPairsMap));
|
|
36328
36333
|
return state.n9i(VOID, get_clientPayload(state).hdw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
36329
36334
|
}
|
|
@@ -36415,10 +36420,10 @@
|
|
|
36415
36420
|
while (inductionVariable < size);
|
|
36416
36421
|
return takeLast(list, cardsToDistributeCount);
|
|
36417
36422
|
}
|
|
36418
|
-
function dealCardsByWaves($this, distributeCardsModels,
|
|
36423
|
+
function dealCardsByWaves($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave) {
|
|
36419
36424
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
36420
36425
|
var playersCardsFromCardDeck = LinkedHashMap_init_$Create$_0();
|
|
36421
|
-
var updatedDistributeToCards = handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId,
|
|
36426
|
+
var updatedDistributeToCards = handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId, distributeTrumpCard, playersCardsFromCardDeck);
|
|
36422
36427
|
// Inline function 'kotlin.collections.sumOf' call
|
|
36423
36428
|
var sum = 0;
|
|
36424
36429
|
var _iterator__ex2g4s = updatedDistributeToCards.j();
|
|
@@ -36432,9 +36437,9 @@
|
|
|
36432
36437
|
distributeRemainingCards($this, updatedDistributeToCards, cardDeckCardsIterator, playersCardsFromCardDeck, cardsInWave);
|
|
36433
36438
|
return playersCardsFromCardDeck;
|
|
36434
36439
|
}
|
|
36435
|
-
function dealCardsByWaves$default($this, distributeCardsModels,
|
|
36440
|
+
function dealCardsByWaves$default($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave, $super) {
|
|
36436
36441
|
cardsInWave = cardsInWave === VOID ? 2 : cardsInWave;
|
|
36437
|
-
return dealCardsByWaves($this, distributeCardsModels,
|
|
36442
|
+
return dealCardsByWaves($this, distributeCardsModels, distributeTrumpCard, cardDeckCards, whoChoseSuitPlayerId, cardsInWave);
|
|
36438
36443
|
}
|
|
36439
36444
|
function addCards($this, _this__u8e3s4, playerId, cards) {
|
|
36440
36445
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -36445,9 +36450,9 @@
|
|
|
36445
36450
|
_this__u8e3s4.k2(playerId, value);
|
|
36446
36451
|
return _this__u8e3s4;
|
|
36447
36452
|
}
|
|
36448
|
-
function handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId,
|
|
36453
|
+
function handleTrumpCardDistribution($this, distributeCardsModels, whoChoseSuitPlayerId, distributeTrumpCard, playersCardsFromCardDeck) {
|
|
36449
36454
|
var updatedDistributeCardsModels = toMutableList(distributeCardsModels);
|
|
36450
|
-
if (!(whoChoseSuitPlayerId == null)) {
|
|
36455
|
+
if (!(whoChoseSuitPlayerId == null) && !(distributeTrumpCard == null)) {
|
|
36451
36456
|
var model = getPlayer(distributeCardsModels, whoChoseSuitPlayerId);
|
|
36452
36457
|
var tmp0 = model.we1_1;
|
|
36453
36458
|
var tmp$ret$1;
|
|
@@ -36456,7 +36461,7 @@
|
|
|
36456
36461
|
var _iterator__ex2g4s = tmp0.j();
|
|
36457
36462
|
while (_iterator__ex2g4s.k()) {
|
|
36458
36463
|
var element = _iterator__ex2g4s.l();
|
|
36459
|
-
if (element.equals(
|
|
36464
|
+
if (element.equals(distributeTrumpCard)) {
|
|
36460
36465
|
tmp$ret$1 = element;
|
|
36461
36466
|
break $l$block;
|
|
36462
36467
|
}
|
|
@@ -36467,7 +36472,7 @@
|
|
|
36467
36472
|
var toCard = tmp0_elvis_lhs == null ? first(model.we1_1) : tmp0_elvis_lhs;
|
|
36468
36473
|
var tmp1_index = model.xe1_1.u1(toCard);
|
|
36469
36474
|
var tmp2_mode = CardTransitionMode_DISTRIBUTION_getInstance();
|
|
36470
|
-
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf(new CardInHandTransition(tmp2_mode, tmp1_index,
|
|
36475
|
+
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf(new CardInHandTransition(tmp2_mode, tmp1_index, distributeTrumpCard, toCard)));
|
|
36471
36476
|
// Inline function 'kotlin.collections.filter' call
|
|
36472
36477
|
var tmp0_0 = model.we1_1;
|
|
36473
36478
|
// Inline function 'kotlin.collections.filterTo' call
|