game_client_logic_deb 1.8.432 → 1.8.433
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 +47 -4
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +16 -1
- package/Logic_Debertz-game_client.js +2135 -2135
- package/package.json +1 -1
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.433';
|
|
391
391
|
}
|
|
392
392
|
protoOf(GameEngineConfig).x3u = function () {
|
|
393
393
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1370,6 +1370,7 @@
|
|
|
1370
1370
|
initMetadataForInterface(RatingHelper, 'RatingHelper');
|
|
1371
1371
|
initMetadataForClass(RatingHelperImpl, 'RatingHelperImpl', VOID, VOID, [RatingHelper]);
|
|
1372
1372
|
initMetadataForClass(EngineHelpersFactory, 'EngineHelpersFactory', EngineHelpersFactory);
|
|
1373
|
+
initMetadataForClass(BotRatingRange, 'BotRatingRange');
|
|
1373
1374
|
//endregion
|
|
1374
1375
|
function Companion() {
|
|
1375
1376
|
Companion_instance_4 = this;
|
|
@@ -57770,10 +57771,7 @@
|
|
|
57770
57771
|
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
57771
57772
|
var factor = 0.3;
|
|
57772
57773
|
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
57773
|
-
|
|
57774
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
57775
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
57776
|
-
return [minRating, botMaxRating];
|
|
57774
|
+
return new BotRatingRange(minRating, botMaxRating);
|
|
57777
57775
|
};
|
|
57778
57776
|
protoOf(GameHelperImpl).t9i = function (store, playerIds, includeBots) {
|
|
57779
57777
|
var state = store.state;
|
|
@@ -59026,6 +59024,49 @@
|
|
|
59026
59024
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
59027
59025
|
return tmp0.x();
|
|
59028
59026
|
};
|
|
59027
|
+
function BotRatingRange(min, max) {
|
|
59028
|
+
this.min = min;
|
|
59029
|
+
this.max = max;
|
|
59030
|
+
}
|
|
59031
|
+
protoOf(BotRatingRange).z9j = function () {
|
|
59032
|
+
return this.min;
|
|
59033
|
+
};
|
|
59034
|
+
protoOf(BotRatingRange).a9k = function () {
|
|
59035
|
+
return this.max;
|
|
59036
|
+
};
|
|
59037
|
+
protoOf(BotRatingRange).oe = function () {
|
|
59038
|
+
return this.min;
|
|
59039
|
+
};
|
|
59040
|
+
protoOf(BotRatingRange).pe = function () {
|
|
59041
|
+
return this.max;
|
|
59042
|
+
};
|
|
59043
|
+
protoOf(BotRatingRange).b9k = function (min, max) {
|
|
59044
|
+
return new BotRatingRange(min, max);
|
|
59045
|
+
};
|
|
59046
|
+
protoOf(BotRatingRange).copy = function (min, max, $super) {
|
|
59047
|
+
min = min === VOID ? this.min : min;
|
|
59048
|
+
max = max === VOID ? this.max : max;
|
|
59049
|
+
return $super === VOID ? this.b9k(min, max) : $super.b9k.call(this, min, max);
|
|
59050
|
+
};
|
|
59051
|
+
protoOf(BotRatingRange).toString = function () {
|
|
59052
|
+
return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
|
|
59053
|
+
};
|
|
59054
|
+
protoOf(BotRatingRange).hashCode = function () {
|
|
59055
|
+
var result = this.min;
|
|
59056
|
+
result = imul(result, 31) + this.max | 0;
|
|
59057
|
+
return result;
|
|
59058
|
+
};
|
|
59059
|
+
protoOf(BotRatingRange).equals = function (other) {
|
|
59060
|
+
if (this === other)
|
|
59061
|
+
return true;
|
|
59062
|
+
if (!(other instanceof BotRatingRange))
|
|
59063
|
+
return false;
|
|
59064
|
+
if (!(this.min === other.min))
|
|
59065
|
+
return false;
|
|
59066
|
+
if (!(this.max === other.max))
|
|
59067
|
+
return false;
|
|
59068
|
+
return true;
|
|
59069
|
+
};
|
|
59029
59070
|
//region block: post-declaration
|
|
59030
59071
|
defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).f1p);
|
|
59031
59072
|
defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).p6o);
|
|
@@ -60693,6 +60734,8 @@
|
|
|
60693
60734
|
defineProp(_, 'WARN', get_WARN, VOID, true);
|
|
60694
60735
|
var $di = _.di || (_.di = {});
|
|
60695
60736
|
$di.EngineHelpersFactory = EngineHelpersFactory;
|
|
60737
|
+
var $models = _.models || (_.models = {});
|
|
60738
|
+
$models.BotRatingRange = BotRatingRange;
|
|
60696
60739
|
}
|
|
60697
60740
|
$jsExportAll$(_);
|
|
60698
60741
|
_.$jsExportAll$ = $jsExportAll$;
|