client_plugin_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-client_plugin.d.ts +16 -1
- package/Logic_Debertz-client_plugin.js +1998 -1998
- 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.js +6023 -6023
- package/Logic_Debertz-game_server.js +829 -829
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
428
428
|
//endregion
|
|
429
429
|
function GameEngineConfig() {
|
|
430
|
-
this.version = '1.8.
|
|
430
|
+
this.version = '1.8.433';
|
|
431
431
|
}
|
|
432
432
|
protoOf(GameEngineConfig).h3z = function () {
|
|
433
433
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1487,6 +1487,7 @@
|
|
|
1487
1487
|
initMetadataForInterface(RatingHelper, 'RatingHelper');
|
|
1488
1488
|
initMetadataForClass(RatingHelperImpl, 'RatingHelperImpl', VOID, VOID, [RatingHelper]);
|
|
1489
1489
|
initMetadataForClass(EngineHelpersFactory, 'EngineHelpersFactory', EngineHelpersFactory);
|
|
1490
|
+
initMetadataForClass(BotRatingRange, 'BotRatingRange');
|
|
1490
1491
|
//endregion
|
|
1491
1492
|
function Companion() {
|
|
1492
1493
|
Companion_instance_4 = this;
|
|
@@ -64704,10 +64705,7 @@
|
|
|
64704
64705
|
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
64705
64706
|
var factor = 0.3;
|
|
64706
64707
|
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
64707
|
-
|
|
64708
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
64709
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
64710
|
-
return [minRating, botMaxRating];
|
|
64708
|
+
return new BotRatingRange(minRating, botMaxRating);
|
|
64711
64709
|
};
|
|
64712
64710
|
protoOf(GameHelperImpl).fa7 = function (store, playerIds, includeBots) {
|
|
64713
64711
|
var state = store.state;
|
|
@@ -65960,6 +65958,49 @@
|
|
|
65960
65958
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
65961
65959
|
return tmp0.x();
|
|
65962
65960
|
};
|
|
65961
|
+
function BotRatingRange(min, max) {
|
|
65962
|
+
this.min = min;
|
|
65963
|
+
this.max = max;
|
|
65964
|
+
}
|
|
65965
|
+
protoOf(BotRatingRange).la8 = function () {
|
|
65966
|
+
return this.min;
|
|
65967
|
+
};
|
|
65968
|
+
protoOf(BotRatingRange).ma8 = function () {
|
|
65969
|
+
return this.max;
|
|
65970
|
+
};
|
|
65971
|
+
protoOf(BotRatingRange).oe = function () {
|
|
65972
|
+
return this.min;
|
|
65973
|
+
};
|
|
65974
|
+
protoOf(BotRatingRange).pe = function () {
|
|
65975
|
+
return this.max;
|
|
65976
|
+
};
|
|
65977
|
+
protoOf(BotRatingRange).na8 = function (min, max) {
|
|
65978
|
+
return new BotRatingRange(min, max);
|
|
65979
|
+
};
|
|
65980
|
+
protoOf(BotRatingRange).copy = function (min, max, $super) {
|
|
65981
|
+
min = min === VOID ? this.min : min;
|
|
65982
|
+
max = max === VOID ? this.max : max;
|
|
65983
|
+
return $super === VOID ? this.na8(min, max) : $super.na8.call(this, min, max);
|
|
65984
|
+
};
|
|
65985
|
+
protoOf(BotRatingRange).toString = function () {
|
|
65986
|
+
return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
|
|
65987
|
+
};
|
|
65988
|
+
protoOf(BotRatingRange).hashCode = function () {
|
|
65989
|
+
var result = this.min;
|
|
65990
|
+
result = imul(result, 31) + this.max | 0;
|
|
65991
|
+
return result;
|
|
65992
|
+
};
|
|
65993
|
+
protoOf(BotRatingRange).equals = function (other) {
|
|
65994
|
+
if (this === other)
|
|
65995
|
+
return true;
|
|
65996
|
+
if (!(other instanceof BotRatingRange))
|
|
65997
|
+
return false;
|
|
65998
|
+
if (!(this.min === other.min))
|
|
65999
|
+
return false;
|
|
66000
|
+
if (!(this.max === other.max))
|
|
66001
|
+
return false;
|
|
66002
|
+
return true;
|
|
66003
|
+
};
|
|
65963
66004
|
//region block: post-declaration
|
|
65964
66005
|
defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).c1k);
|
|
65965
66006
|
defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).u73);
|
|
@@ -67723,6 +67764,8 @@
|
|
|
67723
67764
|
defineProp(_, 'WARN', get_WARN, VOID, true);
|
|
67724
67765
|
var $di = _.di || (_.di = {});
|
|
67725
67766
|
$di.EngineHelpersFactory = EngineHelpersFactory;
|
|
67767
|
+
var $models = _.models || (_.models = {});
|
|
67768
|
+
$models.BotRatingRange = BotRatingRange;
|
|
67726
67769
|
}
|
|
67727
67770
|
$jsExportAll$(_);
|
|
67728
67771
|
_.$jsExportAll$ = $jsExportAll$;
|