client_plugin_logic_deb 1.8.433 → 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.
@@ -380,7 +380,7 @@
380
380
  function addFormatStructureForTime(structure) {
381
381
  this.s60(structure);
382
382
  }
383
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
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) {
@@ -2907,7 +2907,6 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
2907
2907
  }
2908
2908
  }
2909
2909
  export declare interface GameHelper {
2910
- getBotRatingRange(league: Nullable<string>): models.BotRatingRange;
2911
2910
  filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2912
2911
  filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2913
2912
  filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
@@ -2963,6 +2962,8 @@ export declare interface ParserHelper {
2963
2962
  };
2964
2963
  }
2965
2964
  export declare interface RatingHelper {
2965
+ getBotRatingRange(league: Nullable<string>): models.BotRatingRange;
2966
+ mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
2966
2967
  isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
2967
2968
  mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
2968
2969
  getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
@@ -427,7 +427,7 @@
427
427
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
428
428
  //endregion
429
429
  function GameEngineConfig() {
430
- this.version = '1.8.433';
430
+ this.version = '1.8.434';
431
431
  }
432
432
  protoOf(GameEngineConfig).h3z = function () {
433
433
  return this.version;
@@ -64692,21 +64692,6 @@
64692
64692
  function GameHelperImpl(logger) {
64693
64693
  this.ia7_1 = logger;
64694
64694
  }
64695
- protoOf(GameHelperImpl).getBotRatingRange = function (league) {
64696
- var tmp;
64697
- if (league == null) {
64698
- tmp = Default_getInstance().qg() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
64699
- } else {
64700
- tmp = this.mapToLeague(league);
64701
- }
64702
- var targetLeague = tmp;
64703
- var defaultConfig = Companion_instance_12.defaultConfig();
64704
- var minRating = targetLeague.getMinRating();
64705
- var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
64706
- var factor = 0.3;
64707
- var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
64708
- return new BotRatingRange(minRating, botMaxRating);
64709
- };
64710
64695
  protoOf(GameHelperImpl).fa7 = function (store, playerIds, includeBots) {
64711
64696
  var state = store.state;
64712
64697
  var tmp;
@@ -65649,6 +65634,27 @@
65649
65634
  this.ya7_1 = json;
65650
65635
  this.za7_1 = userRatingInteractor;
65651
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
+ };
65652
65658
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
65653
65659
  return this.za7_1.v9j(league, rating);
65654
65660
  };