client_plugin_logic_deb 1.8.369 → 1.8.371
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-core.js +1 -1
- package/Logic_Debertz-engine.js +87 -81
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +19 -27
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
416
416
|
//endregion
|
|
417
417
|
function GameEngineConfig() {
|
|
418
|
-
this.version = '1.8.
|
|
418
|
+
this.version = '1.8.371';
|
|
419
419
|
}
|
|
420
420
|
protoOf(GameEngineConfig).e3y = function () {
|
|
421
421
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -48276,6 +48276,9 @@
|
|
|
48276
48276
|
var kLoss = Math.max(tmp0, b_0);
|
|
48277
48277
|
var raw = item.t7a_1 + kBase * (kWin * diffPos + kLoss * diffNeg);
|
|
48278
48278
|
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
48279
|
+
if (item.v7a_1 && newRating < item.t7a_1) {
|
|
48280
|
+
newRating = item.t7a_1;
|
|
48281
|
+
}
|
|
48279
48282
|
tmp$ret$3 = new PlayerRatingOutput(item.s7a_1, item.t7a_1, newRating, item.v7a_1);
|
|
48280
48283
|
}
|
|
48281
48284
|
destination.j(tmp$ret$3);
|
|
@@ -48407,7 +48410,7 @@
|
|
|
48407
48410
|
}
|
|
48408
48411
|
}
|
|
48409
48412
|
function clampAndRound($this, value, minUserRating, maxUserRating) {
|
|
48410
|
-
var upper =
|
|
48413
|
+
var upper = maxUserRating;
|
|
48411
48414
|
var clamped = coerceIn(value, minUserRating, upper);
|
|
48412
48415
|
// Inline function 'kotlin.math.pow' call
|
|
48413
48416
|
var factor = Math.pow(10.0, 2);
|
|
@@ -55765,6 +55768,54 @@
|
|
|
55765
55768
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55766
55769
|
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider, logger);
|
|
55767
55770
|
}
|
|
55771
|
+
function validateRatingChange(logger, playerAchievements) {
|
|
55772
|
+
var tmp;
|
|
55773
|
+
if (playerAchievements == null) {
|
|
55774
|
+
tmp = null;
|
|
55775
|
+
} else {
|
|
55776
|
+
// Inline function 'kotlin.collections.filter' call
|
|
55777
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
55778
|
+
var destination = ArrayList_init_$Create$_0();
|
|
55779
|
+
var _iterator__ex2g4s = playerAchievements.l();
|
|
55780
|
+
while (_iterator__ex2g4s.m()) {
|
|
55781
|
+
var element = _iterator__ex2g4s.n();
|
|
55782
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
55783
|
+
var this_0 = element.oldRating - element.newRating;
|
|
55784
|
+
if (Math.abs(this_0) >= 80) {
|
|
55785
|
+
destination.j(element);
|
|
55786
|
+
}
|
|
55787
|
+
}
|
|
55788
|
+
tmp = destination;
|
|
55789
|
+
}
|
|
55790
|
+
var tmp1_elvis_lhs = tmp;
|
|
55791
|
+
var suspiciousRatingChange = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
55792
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55793
|
+
if (!suspiciousRatingChange.q()) {
|
|
55794
|
+
logger.w('roundLifecycleMiddleware', 'Suspicious rating change: ' + toString(suspiciousRatingChange));
|
|
55795
|
+
}
|
|
55796
|
+
var tmp_0;
|
|
55797
|
+
if (playerAchievements == null) {
|
|
55798
|
+
tmp_0 = null;
|
|
55799
|
+
} else {
|
|
55800
|
+
// Inline function 'kotlin.collections.filter' call
|
|
55801
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
55802
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
55803
|
+
var _iterator__ex2g4s_0 = playerAchievements.l();
|
|
55804
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
55805
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
55806
|
+
if (element_0.oldRating < 2000 && element_0.newRating > 2000) {
|
|
55807
|
+
destination_0.j(element_0);
|
|
55808
|
+
}
|
|
55809
|
+
}
|
|
55810
|
+
tmp_0 = destination_0;
|
|
55811
|
+
}
|
|
55812
|
+
var tmp3_elvis_lhs = tmp_0;
|
|
55813
|
+
var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
55814
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55815
|
+
if (!ratingChangeAboveLimit.q()) {
|
|
55816
|
+
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
|
|
55817
|
+
}
|
|
55818
|
+
}
|
|
55768
55819
|
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|
|
55769
55820
|
this.a9k_1 = $scenePositionProvider;
|
|
55770
55821
|
this.b9k_1 = $logger;
|
|
@@ -55884,105 +55935,60 @@
|
|
|
55884
55935
|
tmp_3 = destination_2;
|
|
55885
55936
|
}
|
|
55886
55937
|
var playerAchievements = tmp_3;
|
|
55887
|
-
|
|
55888
|
-
|
|
55889
|
-
|
|
55890
|
-
|
|
55891
|
-
|
|
55892
|
-
|
|
55893
|
-
var destination_3 = ArrayList_init_$Create$_0();
|
|
55894
|
-
var _iterator__ex2g4s_3 = playerAchievements.l();
|
|
55895
|
-
while (_iterator__ex2g4s_3.m()) {
|
|
55896
|
-
var element_0 = _iterator__ex2g4s_3.n();
|
|
55897
|
-
// Inline function 'kotlin.math.absoluteValue' call
|
|
55898
|
-
var this_2 = element_0.oldRating - element_0.newRating;
|
|
55899
|
-
if (Math.abs(this_2) >= 60) {
|
|
55900
|
-
destination_3.j(element_0);
|
|
55901
|
-
}
|
|
55902
|
-
}
|
|
55903
|
-
tmp_4 = destination_3;
|
|
55904
|
-
}
|
|
55905
|
-
var tmp14_elvis_lhs = tmp_4;
|
|
55906
|
-
var suspiciousRatingChange = tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs;
|
|
55907
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55908
|
-
if (!suspiciousRatingChange.q()) {
|
|
55909
|
-
this.b9k_1.w('roundLifecycleMiddleware', 'Suspicious rating change: ' + toString(suspiciousRatingChange));
|
|
55910
|
-
}
|
|
55938
|
+
validateRatingChange(this.b9k_1, playerAchievements);
|
|
55939
|
+
var tmp_4 = store.dispatch;
|
|
55940
|
+
var tmp15_id = table_0.id;
|
|
55941
|
+
var tmp16_gameId = table_0.gameId;
|
|
55942
|
+
var tmp17_roundNumber = table_0.gameInfo.round.roundNumber;
|
|
55943
|
+
var tmp18_earnedBiggestPointPlayerId = sceneData.r7j_1;
|
|
55911
55944
|
var tmp_5;
|
|
55912
|
-
if (playerAchievements == null) {
|
|
55913
|
-
tmp_5 = null;
|
|
55914
|
-
} else {
|
|
55915
|
-
// Inline function 'kotlin.collections.filter' call
|
|
55916
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
55917
|
-
var destination_4 = ArrayList_init_$Create$_0();
|
|
55918
|
-
var _iterator__ex2g4s_4 = playerAchievements.l();
|
|
55919
|
-
while (_iterator__ex2g4s_4.m()) {
|
|
55920
|
-
var element_1 = _iterator__ex2g4s_4.n();
|
|
55921
|
-
if (element_1.oldRating < 2000 && element_1.newRating > 2000) {
|
|
55922
|
-
destination_4.j(element_1);
|
|
55923
|
-
}
|
|
55924
|
-
}
|
|
55925
|
-
tmp_5 = destination_4;
|
|
55926
|
-
}
|
|
55927
|
-
var tmp16_elvis_lhs = tmp_5;
|
|
55928
|
-
var ratingChangeAboveLimit = tmp16_elvis_lhs == null ? emptyList() : tmp16_elvis_lhs;
|
|
55929
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55930
|
-
if (!ratingChangeAboveLimit.q()) {
|
|
55931
|
-
this.b9k_1.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
|
|
55932
|
-
}
|
|
55933
|
-
var tmp_6 = store.dispatch;
|
|
55934
|
-
var tmp19_id = table_0.id;
|
|
55935
|
-
var tmp20_gameId = table_0.gameId;
|
|
55936
|
-
var tmp21_roundNumber = table_0.gameInfo.round.roundNumber;
|
|
55937
|
-
var tmp22_earnedBiggestPointPlayerId = sceneData.r7j_1;
|
|
55938
|
-
var tmp_7;
|
|
55939
55945
|
if (gameWinners == null) {
|
|
55940
|
-
|
|
55946
|
+
tmp_5 = null;
|
|
55941
55947
|
} else {
|
|
55942
55948
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55943
|
-
|
|
55949
|
+
tmp_5 = copyToArray(gameWinners);
|
|
55944
55950
|
}
|
|
55945
|
-
var
|
|
55946
|
-
var
|
|
55951
|
+
var tmp19_gameWinners = tmp_5;
|
|
55952
|
+
var tmp_6;
|
|
55947
55953
|
if (isGameFinished) {
|
|
55948
55954
|
// Inline function 'kotlin.collections.map' call
|
|
55949
|
-
var
|
|
55955
|
+
var this_2 = table_0.players;
|
|
55950
55956
|
// Inline function 'kotlin.collections.mapTo' call
|
|
55951
|
-
var
|
|
55952
|
-
var
|
|
55953
|
-
while (
|
|
55954
|
-
var item_2 =
|
|
55955
|
-
var tmp$ret$
|
|
55956
|
-
|
|
55957
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
55958
|
+
var _iterator__ex2g4s_3 = this_2.l();
|
|
55959
|
+
while (_iterator__ex2g4s_3.m()) {
|
|
55960
|
+
var item_2 = _iterator__ex2g4s_3.n();
|
|
55961
|
+
var tmp$ret$23 = mapToGameAnalytics(item_2, table_0.gameDuration);
|
|
55962
|
+
destination_3.j(tmp$ret$23);
|
|
55957
55963
|
}
|
|
55958
55964
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55959
|
-
|
|
55965
|
+
tmp_6 = copyToArray(destination_3);
|
|
55960
55966
|
} else {
|
|
55961
|
-
|
|
55967
|
+
tmp_6 = null;
|
|
55962
55968
|
}
|
|
55963
|
-
var
|
|
55969
|
+
var tmp20_playersGameAnalytics = tmp_6;
|
|
55964
55970
|
// Inline function 'kotlin.collections.map' call
|
|
55965
|
-
var
|
|
55971
|
+
var this_3 = table_0.players;
|
|
55966
55972
|
// Inline function 'kotlin.collections.mapTo' call
|
|
55967
|
-
var
|
|
55968
|
-
var
|
|
55969
|
-
while (
|
|
55970
|
-
var item_3 =
|
|
55971
|
-
var tmp$ret$
|
|
55972
|
-
|
|
55973
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
55974
|
+
var _iterator__ex2g4s_4 = this_3.l();
|
|
55975
|
+
while (_iterator__ex2g4s_4.m()) {
|
|
55976
|
+
var item_3 = _iterator__ex2g4s_4.n();
|
|
55977
|
+
var tmp$ret$27 = mapToRoundAnalytics(item_3, table_0.gameDuration);
|
|
55978
|
+
destination_4.j(tmp$ret$27);
|
|
55973
55979
|
}
|
|
55974
55980
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55975
|
-
var
|
|
55976
|
-
var
|
|
55977
|
-
var
|
|
55981
|
+
var tmp21_playersRoundAnalytics = copyToArray(destination_4);
|
|
55982
|
+
var tmp22_gameHistory = table_0.gameHistory;
|
|
55983
|
+
var tmp_7;
|
|
55978
55984
|
if (playerAchievements == null) {
|
|
55979
|
-
|
|
55985
|
+
tmp_7 = null;
|
|
55980
55986
|
} else {
|
|
55981
55987
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55982
|
-
|
|
55988
|
+
tmp_7 = copyToArray(playerAchievements);
|
|
55983
55989
|
}
|
|
55984
|
-
var
|
|
55985
|
-
|
|
55990
|
+
var tmp23_achievements = tmp_7;
|
|
55991
|
+
tmp_4(new RoundEndedAction(tmp15_id, tmp16_gameId, tmp17_roundNumber, tmp18_earnedBiggestPointPlayerId, gameLosers, tmp19_gameWinners, tmp20_playersGameAnalytics, tmp21_playersRoundAnalytics, tmp23_achievements, tmp22_gameHistory));
|
|
55986
55992
|
}
|
|
55987
55993
|
}
|
|
55988
55994
|
}
|
|
@@ -60579,7 +60585,7 @@
|
|
|
60579
60585
|
var tmp3_bribes = emptyList();
|
|
60580
60586
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
60581
60587
|
var tmp5_gameHistory = this.r9s_1.m9s(table.gameHistory);
|
|
60582
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes,
|
|
60588
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
60583
60589
|
};
|
|
60584
60590
|
protoOf(TableLifecycleReducerImpl).g9s = function (table) {
|
|
60585
60591
|
// Inline function 'kotlin.collections.map' call
|