raspberry_games_server_game_logic 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.
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
function addFormatStructureForTime(structure) {
|
|
381
381
|
this.v5k(structure);
|
|
382
382
|
}
|
|
383
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
383
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
|
|
384
384
|
initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
|
|
385
385
|
initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
|
|
386
386
|
function set_fractionOfSecond(value) {
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
388
388
|
//endregion
|
|
389
389
|
function GameEngineConfig() {
|
|
390
|
-
this.version = '1.8.
|
|
390
|
+
this.version = '1.8.397';
|
|
391
391
|
}
|
|
392
392
|
protoOf(GameEngineConfig).a3w = function () {
|
|
393
393
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -2908,14 +2908,10 @@
|
|
|
2908
2908
|
var tmp;
|
|
2909
2909
|
switch (this.p2_1) {
|
|
2910
2910
|
case 0:
|
|
2911
|
-
tmp = true;
|
|
2912
|
-
break;
|
|
2913
2911
|
case 1:
|
|
2914
2912
|
tmp = true;
|
|
2915
2913
|
break;
|
|
2916
2914
|
case 2:
|
|
2917
|
-
tmp = false;
|
|
2918
|
-
break;
|
|
2919
2915
|
case 3:
|
|
2920
2916
|
tmp = false;
|
|
2921
2917
|
break;
|
|
@@ -34902,6 +34898,8 @@
|
|
|
34902
34898
|
var tmp;
|
|
34903
34899
|
switch (this.p2_1) {
|
|
34904
34900
|
case 0:
|
|
34901
|
+
tmp = false;
|
|
34902
|
+
break;
|
|
34905
34903
|
case 2:
|
|
34906
34904
|
case 1:
|
|
34907
34905
|
case 3:
|
|
@@ -37776,7 +37774,7 @@
|
|
|
37776
37774
|
function getFirstTeam($this, players) {
|
|
37777
37775
|
// Inline function 'kotlin.check' call
|
|
37778
37776
|
if (!(players.o() === 4)) {
|
|
37779
|
-
var message = 'Players count should be 4';
|
|
37777
|
+
var message = 'Players count should be 4, actual ' + toString($this);
|
|
37780
37778
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
37781
37779
|
}
|
|
37782
37780
|
return listOf_0([players.p(0), players.p(2)]);
|
|
@@ -37784,7 +37782,7 @@
|
|
|
37784
37782
|
function getSecondTeam($this, players) {
|
|
37785
37783
|
// Inline function 'kotlin.check' call
|
|
37786
37784
|
if (!(players.o() === 4)) {
|
|
37787
|
-
var message = 'Players count should be 4';
|
|
37785
|
+
var message = 'Players count should be 4, actual ' + toString($this);
|
|
37788
37786
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
37789
37787
|
}
|
|
37790
37788
|
return listOf_0([players.p(1), players.p(3)]);
|
|
@@ -50278,8 +50276,9 @@
|
|
|
50278
50276
|
while (_iterator__ex2g4s.m()) {
|
|
50279
50277
|
var element = _iterator__ex2g4s.n();
|
|
50280
50278
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
50281
|
-
var this_0 = element.
|
|
50282
|
-
|
|
50279
|
+
var this_0 = element.newRating - element.oldRating;
|
|
50280
|
+
var ratingMultiplier = Math.abs(this_0) / element.oldRating;
|
|
50281
|
+
if (ratingMultiplier > 0.15) {
|
|
50283
50282
|
destination.j(element);
|
|
50284
50283
|
}
|
|
50285
50284
|
}
|
|
@@ -50311,7 +50310,7 @@
|
|
|
50311
50310
|
var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
50312
50311
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50313
50312
|
if (!ratingChangeAboveLimit.r()) {
|
|
50314
|
-
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(
|
|
50313
|
+
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(ratingChangeAboveLimit));
|
|
50315
50314
|
}
|
|
50316
50315
|
}
|
|
50317
50316
|
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|