client_plugin_logic_deb 1.8.395 → 1.8.397
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.js +1986 -1986
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +8 -9
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5254 -5254
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +731 -731
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
426
426
|
//endregion
|
|
427
427
|
function GameEngineConfig() {
|
|
428
|
-
this.version = '1.8.
|
|
428
|
+
this.version = '1.8.397';
|
|
429
429
|
}
|
|
430
430
|
protoOf(GameEngineConfig).g3z = function () {
|
|
431
431
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -3022,14 +3022,10 @@
|
|
|
3022
3022
|
var tmp;
|
|
3023
3023
|
switch (this.p2_1) {
|
|
3024
3024
|
case 0:
|
|
3025
|
-
tmp = true;
|
|
3026
|
-
break;
|
|
3027
3025
|
case 1:
|
|
3028
3026
|
tmp = true;
|
|
3029
3027
|
break;
|
|
3030
3028
|
case 2:
|
|
3031
|
-
tmp = false;
|
|
3032
|
-
break;
|
|
3033
3029
|
case 3:
|
|
3034
3030
|
tmp = false;
|
|
3035
3031
|
break;
|
|
@@ -40430,6 +40426,8 @@
|
|
|
40430
40426
|
var tmp;
|
|
40431
40427
|
switch (this.p2_1) {
|
|
40432
40428
|
case 0:
|
|
40429
|
+
tmp = false;
|
|
40430
|
+
break;
|
|
40433
40431
|
case 2:
|
|
40434
40432
|
case 1:
|
|
40435
40433
|
case 3:
|
|
@@ -43310,7 +43308,7 @@
|
|
|
43310
43308
|
function getFirstTeam($this, players) {
|
|
43311
43309
|
// Inline function 'kotlin.check' call
|
|
43312
43310
|
if (!(players.o() === 4)) {
|
|
43313
|
-
var message = 'Players count should be 4';
|
|
43311
|
+
var message = 'Players count should be 4, actual ' + toString($this);
|
|
43314
43312
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
43315
43313
|
}
|
|
43316
43314
|
return listOf_0([players.p(0), players.p(2)]);
|
|
@@ -43318,7 +43316,7 @@
|
|
|
43318
43316
|
function getSecondTeam($this, players) {
|
|
43319
43317
|
// Inline function 'kotlin.check' call
|
|
43320
43318
|
if (!(players.o() === 4)) {
|
|
43321
|
-
var message = 'Players count should be 4';
|
|
43319
|
+
var message = 'Players count should be 4, actual ' + toString($this);
|
|
43322
43320
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
43323
43321
|
}
|
|
43324
43322
|
return listOf_0([players.p(1), players.p(3)]);
|
|
@@ -55941,8 +55939,9 @@
|
|
|
55941
55939
|
while (_iterator__ex2g4s.m()) {
|
|
55942
55940
|
var element = _iterator__ex2g4s.n();
|
|
55943
55941
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
55944
|
-
var this_0 = element.
|
|
55945
|
-
|
|
55942
|
+
var this_0 = element.newRating - element.oldRating;
|
|
55943
|
+
var ratingMultiplier = Math.abs(this_0) / element.oldRating;
|
|
55944
|
+
if (ratingMultiplier > 0.15) {
|
|
55946
55945
|
destination.j(element);
|
|
55947
55946
|
}
|
|
55948
55947
|
}
|
|
@@ -55974,7 +55973,7 @@
|
|
|
55974
55973
|
var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
55975
55974
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55976
55975
|
if (!ratingChangeAboveLimit.q()) {
|
|
55977
|
-
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(
|
|
55976
|
+
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(ratingChangeAboveLimit));
|
|
55978
55977
|
}
|
|
55979
55978
|
}
|
|
55980
55979
|
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|