game_client_logic_deb 1.8.432 → 1.8.434
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +67 -18
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +17 -1
- package/Logic_Debertz-game_client.js +2134 -2134
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/package.json +1 -1
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
function addFormatStructureForTime(structure) {
|
|
381
381
|
this.b5j(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.434';
|
|
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;
|
|
@@ -57757,24 +57758,6 @@
|
|
|
57757
57758
|
function GameHelperImpl(logger) {
|
|
57758
57759
|
this.w9i_1 = logger;
|
|
57759
57760
|
}
|
|
57760
|
-
protoOf(GameHelperImpl).getBotRatingRange = function (league) {
|
|
57761
|
-
var tmp;
|
|
57762
|
-
if (league == null) {
|
|
57763
|
-
tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
|
|
57764
|
-
} else {
|
|
57765
|
-
tmp = this.mapToLeague(league);
|
|
57766
|
-
}
|
|
57767
|
-
var targetLeague = tmp;
|
|
57768
|
-
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
57769
|
-
var minRating = targetLeague.getMinRating();
|
|
57770
|
-
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
57771
|
-
var factor = 0.3;
|
|
57772
|
-
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
57773
|
-
// Inline function 'kotlin.arrayOf' call
|
|
57774
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
57775
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
57776
|
-
return [minRating, botMaxRating];
|
|
57777
|
-
};
|
|
57778
57761
|
protoOf(GameHelperImpl).t9i = function (store, playerIds, includeBots) {
|
|
57779
57762
|
var state = store.state;
|
|
57780
57763
|
var tmp;
|
|
@@ -58717,6 +58700,27 @@
|
|
|
58717
58700
|
this.m9j_1 = json;
|
|
58718
58701
|
this.n9j_1 = userRatingInteractor;
|
|
58719
58702
|
}
|
|
58703
|
+
protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
|
|
58704
|
+
var tmp;
|
|
58705
|
+
if (league == null) {
|
|
58706
|
+
tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
|
|
58707
|
+
} else {
|
|
58708
|
+
tmp = this.mapToLeague(league);
|
|
58709
|
+
}
|
|
58710
|
+
var targetLeague = tmp;
|
|
58711
|
+
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
58712
|
+
var minRating = targetLeague.getMinRating();
|
|
58713
|
+
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
58714
|
+
var factor = 0.3;
|
|
58715
|
+
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
58716
|
+
return new BotRatingRange(minRating, botMaxRating);
|
|
58717
|
+
};
|
|
58718
|
+
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
58719
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
58720
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
58721
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
58722
|
+
return valueOf_0(tmp$ret$1);
|
|
58723
|
+
};
|
|
58720
58724
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
58721
58725
|
return this.n9j_1.n8u(league, rating);
|
|
58722
58726
|
};
|
|
@@ -59026,6 +59030,49 @@
|
|
|
59026
59030
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
59027
59031
|
return tmp0.x();
|
|
59028
59032
|
};
|
|
59033
|
+
function BotRatingRange(min, max) {
|
|
59034
|
+
this.min = min;
|
|
59035
|
+
this.max = max;
|
|
59036
|
+
}
|
|
59037
|
+
protoOf(BotRatingRange).z9j = function () {
|
|
59038
|
+
return this.min;
|
|
59039
|
+
};
|
|
59040
|
+
protoOf(BotRatingRange).a9k = function () {
|
|
59041
|
+
return this.max;
|
|
59042
|
+
};
|
|
59043
|
+
protoOf(BotRatingRange).oe = function () {
|
|
59044
|
+
return this.min;
|
|
59045
|
+
};
|
|
59046
|
+
protoOf(BotRatingRange).pe = function () {
|
|
59047
|
+
return this.max;
|
|
59048
|
+
};
|
|
59049
|
+
protoOf(BotRatingRange).b9k = function (min, max) {
|
|
59050
|
+
return new BotRatingRange(min, max);
|
|
59051
|
+
};
|
|
59052
|
+
protoOf(BotRatingRange).copy = function (min, max, $super) {
|
|
59053
|
+
min = min === VOID ? this.min : min;
|
|
59054
|
+
max = max === VOID ? this.max : max;
|
|
59055
|
+
return $super === VOID ? this.b9k(min, max) : $super.b9k.call(this, min, max);
|
|
59056
|
+
};
|
|
59057
|
+
protoOf(BotRatingRange).toString = function () {
|
|
59058
|
+
return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
|
|
59059
|
+
};
|
|
59060
|
+
protoOf(BotRatingRange).hashCode = function () {
|
|
59061
|
+
var result = this.min;
|
|
59062
|
+
result = imul(result, 31) + this.max | 0;
|
|
59063
|
+
return result;
|
|
59064
|
+
};
|
|
59065
|
+
protoOf(BotRatingRange).equals = function (other) {
|
|
59066
|
+
if (this === other)
|
|
59067
|
+
return true;
|
|
59068
|
+
if (!(other instanceof BotRatingRange))
|
|
59069
|
+
return false;
|
|
59070
|
+
if (!(this.min === other.min))
|
|
59071
|
+
return false;
|
|
59072
|
+
if (!(this.max === other.max))
|
|
59073
|
+
return false;
|
|
59074
|
+
return true;
|
|
59075
|
+
};
|
|
59029
59076
|
//region block: post-declaration
|
|
59030
59077
|
defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).f1p);
|
|
59031
59078
|
defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).p6o);
|
|
@@ -60693,6 +60740,8 @@
|
|
|
60693
60740
|
defineProp(_, 'WARN', get_WARN, VOID, true);
|
|
60694
60741
|
var $di = _.di || (_.di = {});
|
|
60695
60742
|
$di.EngineHelpersFactory = EngineHelpersFactory;
|
|
60743
|
+
var $models = _.models || (_.models = {});
|
|
60744
|
+
$models.BotRatingRange = BotRatingRange;
|
|
60696
60745
|
}
|
|
60697
60746
|
$jsExportAll$(_);
|
|
60698
60747
|
_.$jsExportAll$ = $jsExportAll$;
|