client_plugin_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-client_plugin.d.ts +17 -1
- package/Logic_Debertz-client_plugin.js +1998 -1998
- 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.js +6022 -6022
- package/Logic_Debertz-game_server.js +829 -829
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- 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.434';
|
|
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;
|
|
@@ -64691,24 +64692,6 @@
|
|
|
64691
64692
|
function GameHelperImpl(logger) {
|
|
64692
64693
|
this.ia7_1 = logger;
|
|
64693
64694
|
}
|
|
64694
|
-
protoOf(GameHelperImpl).getBotRatingRange = function (league) {
|
|
64695
|
-
var tmp;
|
|
64696
|
-
if (league == null) {
|
|
64697
|
-
tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
|
|
64698
|
-
} else {
|
|
64699
|
-
tmp = this.mapToLeague(league);
|
|
64700
|
-
}
|
|
64701
|
-
var targetLeague = tmp;
|
|
64702
|
-
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
64703
|
-
var minRating = targetLeague.getMinRating();
|
|
64704
|
-
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
64705
|
-
var factor = 0.3;
|
|
64706
|
-
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
64707
|
-
// Inline function 'kotlin.arrayOf' call
|
|
64708
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
64709
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
64710
|
-
return [minRating, botMaxRating];
|
|
64711
|
-
};
|
|
64712
64695
|
protoOf(GameHelperImpl).fa7 = function (store, playerIds, includeBots) {
|
|
64713
64696
|
var state = store.state;
|
|
64714
64697
|
var tmp;
|
|
@@ -65651,6 +65634,27 @@
|
|
|
65651
65634
|
this.ya7_1 = json;
|
|
65652
65635
|
this.za7_1 = userRatingInteractor;
|
|
65653
65636
|
}
|
|
65637
|
+
protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
|
|
65638
|
+
var tmp;
|
|
65639
|
+
if (league == null) {
|
|
65640
|
+
tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
|
|
65641
|
+
} else {
|
|
65642
|
+
tmp = this.mapToLeague(league);
|
|
65643
|
+
}
|
|
65644
|
+
var targetLeague = tmp;
|
|
65645
|
+
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
65646
|
+
var minRating = targetLeague.getMinRating();
|
|
65647
|
+
var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
|
|
65648
|
+
var factor = 0.3;
|
|
65649
|
+
var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
|
|
65650
|
+
return new BotRatingRange(minRating, botMaxRating);
|
|
65651
|
+
};
|
|
65652
|
+
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
65653
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
65654
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
65655
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
65656
|
+
return valueOf_0(tmp$ret$1);
|
|
65657
|
+
};
|
|
65654
65658
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
65655
65659
|
return this.za7_1.v9j(league, rating);
|
|
65656
65660
|
};
|
|
@@ -65960,6 +65964,49 @@
|
|
|
65960
65964
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
65961
65965
|
return tmp0.x();
|
|
65962
65966
|
};
|
|
65967
|
+
function BotRatingRange(min, max) {
|
|
65968
|
+
this.min = min;
|
|
65969
|
+
this.max = max;
|
|
65970
|
+
}
|
|
65971
|
+
protoOf(BotRatingRange).la8 = function () {
|
|
65972
|
+
return this.min;
|
|
65973
|
+
};
|
|
65974
|
+
protoOf(BotRatingRange).ma8 = function () {
|
|
65975
|
+
return this.max;
|
|
65976
|
+
};
|
|
65977
|
+
protoOf(BotRatingRange).oe = function () {
|
|
65978
|
+
return this.min;
|
|
65979
|
+
};
|
|
65980
|
+
protoOf(BotRatingRange).pe = function () {
|
|
65981
|
+
return this.max;
|
|
65982
|
+
};
|
|
65983
|
+
protoOf(BotRatingRange).na8 = function (min, max) {
|
|
65984
|
+
return new BotRatingRange(min, max);
|
|
65985
|
+
};
|
|
65986
|
+
protoOf(BotRatingRange).copy = function (min, max, $super) {
|
|
65987
|
+
min = min === VOID ? this.min : min;
|
|
65988
|
+
max = max === VOID ? this.max : max;
|
|
65989
|
+
return $super === VOID ? this.na8(min, max) : $super.na8.call(this, min, max);
|
|
65990
|
+
};
|
|
65991
|
+
protoOf(BotRatingRange).toString = function () {
|
|
65992
|
+
return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
|
|
65993
|
+
};
|
|
65994
|
+
protoOf(BotRatingRange).hashCode = function () {
|
|
65995
|
+
var result = this.min;
|
|
65996
|
+
result = imul(result, 31) + this.max | 0;
|
|
65997
|
+
return result;
|
|
65998
|
+
};
|
|
65999
|
+
protoOf(BotRatingRange).equals = function (other) {
|
|
66000
|
+
if (this === other)
|
|
66001
|
+
return true;
|
|
66002
|
+
if (!(other instanceof BotRatingRange))
|
|
66003
|
+
return false;
|
|
66004
|
+
if (!(this.min === other.min))
|
|
66005
|
+
return false;
|
|
66006
|
+
if (!(this.max === other.max))
|
|
66007
|
+
return false;
|
|
66008
|
+
return true;
|
|
66009
|
+
};
|
|
65963
66010
|
//region block: post-declaration
|
|
65964
66011
|
defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).c1k);
|
|
65965
66012
|
defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).u73);
|
|
@@ -67723,6 +67770,8 @@
|
|
|
67723
67770
|
defineProp(_, 'WARN', get_WARN, VOID, true);
|
|
67724
67771
|
var $di = _.di || (_.di = {});
|
|
67725
67772
|
$di.EngineHelpersFactory = EngineHelpersFactory;
|
|
67773
|
+
var $models = _.models || (_.models = {});
|
|
67774
|
+
$models.BotRatingRange = BotRatingRange;
|
|
67726
67775
|
}
|
|
67727
67776
|
$jsExportAll$(_);
|
|
67728
67777
|
_.$jsExportAll$ = $jsExportAll$;
|