client_plugin_logic_deb 1.8.381 → 1.8.382
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.
|
@@ -875,16 +875,16 @@ export declare namespace games.jass.logic.data.models {
|
|
|
875
875
|
}
|
|
876
876
|
export declare namespace games.jass.logic.data.models.config {
|
|
877
877
|
class RatingConfig {
|
|
878
|
-
constructor(defaultFactor?: number, eloScaleH2H?: number, eloScaleFfa?: number, h2hCloseLossThresholdRatio?: number, ffaMovEnabled?: boolean,
|
|
878
|
+
constructor(defaultFactor?: number, eloScaleH2H?: number, eloScaleFfa?: number, h2hCloseLossThresholdRatio?: number, ffaMovEnabled?: boolean, ffaMaxRatingDecreaseFraction?: number, botNativeUpdatesRating?: boolean, replacementForcedDecrease?: boolean);
|
|
879
879
|
get defaultFactor(): number;
|
|
880
880
|
get eloScaleH2H(): number;
|
|
881
881
|
get eloScaleFfa(): number;
|
|
882
882
|
get h2hCloseLossThresholdRatio(): number;
|
|
883
883
|
get ffaMovEnabled(): boolean;
|
|
884
|
+
get ffaMaxRatingDecreaseFraction(): number;
|
|
884
885
|
get botNativeUpdatesRating(): boolean;
|
|
885
886
|
get replacementForcedDecrease(): boolean;
|
|
886
|
-
|
|
887
|
-
copy(defaultFactor?: number, eloScaleH2H?: number, eloScaleFfa?: number, h2hCloseLossThresholdRatio?: number, ffaMovEnabled?: boolean, botNativeUpdatesRating?: boolean, replacementForcedDecrease?: boolean, ffaMaxRatingDecreaseFraction?: number): games.jass.logic.data.models.config.RatingConfig;
|
|
887
|
+
copy(defaultFactor?: number, eloScaleH2H?: number, eloScaleFfa?: number, h2hCloseLossThresholdRatio?: number, ffaMovEnabled?: boolean, ffaMaxRatingDecreaseFraction?: number, botNativeUpdatesRating?: boolean, replacementForcedDecrease?: boolean): games.jass.logic.data.models.config.RatingConfig;
|
|
888
888
|
toString(): string;
|
|
889
889
|
hashCode(): number;
|
|
890
890
|
equals(other: Nullable<any>): boolean;
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
425
425
|
//endregion
|
|
426
426
|
function GameEngineConfig() {
|
|
427
|
-
this.version = '1.8.
|
|
427
|
+
this.version = '1.8.382';
|
|
428
428
|
}
|
|
429
429
|
protoOf(GameEngineConfig).e3y = function () {
|
|
430
430
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -2387,23 +2387,23 @@
|
|
|
2387
2387
|
return false;
|
|
2388
2388
|
return true;
|
|
2389
2389
|
};
|
|
2390
|
-
function RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease
|
|
2390
|
+
function RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) {
|
|
2391
2391
|
defaultFactor = defaultFactor === VOID ? 30 : defaultFactor;
|
|
2392
2392
|
eloScaleH2H = eloScaleH2H === VOID ? 400.0 : eloScaleH2H;
|
|
2393
2393
|
eloScaleFfa = eloScaleFfa === VOID ? 700.0 : eloScaleFfa;
|
|
2394
2394
|
h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio === VOID ? 0.9 : h2hCloseLossThresholdRatio;
|
|
2395
2395
|
ffaMovEnabled = ffaMovEnabled === VOID ? true : ffaMovEnabled;
|
|
2396
|
+
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
|
|
2396
2397
|
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2397
2398
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2398
|
-
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
|
|
2399
2399
|
this.defaultFactor = defaultFactor;
|
|
2400
2400
|
this.eloScaleH2H = eloScaleH2H;
|
|
2401
2401
|
this.eloScaleFfa = eloScaleFfa;
|
|
2402
2402
|
this.h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio;
|
|
2403
2403
|
this.ffaMovEnabled = ffaMovEnabled;
|
|
2404
|
+
this.ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction;
|
|
2404
2405
|
this.botNativeUpdatesRating = botNativeUpdatesRating;
|
|
2405
2406
|
this.replacementForcedDecrease = replacementForcedDecrease;
|
|
2406
|
-
this.ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction;
|
|
2407
2407
|
}
|
|
2408
2408
|
protoOf(RatingConfig).w6y = function () {
|
|
2409
2409
|
return this.defaultFactor;
|
|
@@ -2421,13 +2421,13 @@
|
|
|
2421
2421
|
return this.ffaMovEnabled;
|
|
2422
2422
|
};
|
|
2423
2423
|
protoOf(RatingConfig).b6z = function () {
|
|
2424
|
-
return this.
|
|
2424
|
+
return this.ffaMaxRatingDecreaseFraction;
|
|
2425
2425
|
};
|
|
2426
2426
|
protoOf(RatingConfig).c6z = function () {
|
|
2427
|
-
return this.
|
|
2427
|
+
return this.botNativeUpdatesRating;
|
|
2428
2428
|
};
|
|
2429
2429
|
protoOf(RatingConfig).d6z = function () {
|
|
2430
|
-
return this.
|
|
2430
|
+
return this.replacementForcedDecrease;
|
|
2431
2431
|
};
|
|
2432
2432
|
protoOf(RatingConfig).ne = function () {
|
|
2433
2433
|
return this.defaultFactor;
|
|
@@ -2445,30 +2445,30 @@
|
|
|
2445
2445
|
return this.ffaMovEnabled;
|
|
2446
2446
|
};
|
|
2447
2447
|
protoOf(RatingConfig).b6e = function () {
|
|
2448
|
-
return this.
|
|
2448
|
+
return this.ffaMaxRatingDecreaseFraction;
|
|
2449
2449
|
};
|
|
2450
2450
|
protoOf(RatingConfig).c6e = function () {
|
|
2451
|
-
return this.
|
|
2451
|
+
return this.botNativeUpdatesRating;
|
|
2452
2452
|
};
|
|
2453
2453
|
protoOf(RatingConfig).a6y = function () {
|
|
2454
|
-
return this.
|
|
2454
|
+
return this.replacementForcedDecrease;
|
|
2455
2455
|
};
|
|
2456
|
-
protoOf(RatingConfig).e6z = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease
|
|
2457
|
-
return new RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease
|
|
2456
|
+
protoOf(RatingConfig).e6z = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) {
|
|
2457
|
+
return new RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease);
|
|
2458
2458
|
};
|
|
2459
|
-
protoOf(RatingConfig).copy = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease,
|
|
2459
|
+
protoOf(RatingConfig).copy = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease, $super) {
|
|
2460
2460
|
defaultFactor = defaultFactor === VOID ? this.defaultFactor : defaultFactor;
|
|
2461
2461
|
eloScaleH2H = eloScaleH2H === VOID ? this.eloScaleH2H : eloScaleH2H;
|
|
2462
2462
|
eloScaleFfa = eloScaleFfa === VOID ? this.eloScaleFfa : eloScaleFfa;
|
|
2463
2463
|
h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio === VOID ? this.h2hCloseLossThresholdRatio : h2hCloseLossThresholdRatio;
|
|
2464
2464
|
ffaMovEnabled = ffaMovEnabled === VOID ? this.ffaMovEnabled : ffaMovEnabled;
|
|
2465
|
+
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? this.ffaMaxRatingDecreaseFraction : ffaMaxRatingDecreaseFraction;
|
|
2465
2466
|
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? this.botNativeUpdatesRating : botNativeUpdatesRating;
|
|
2466
2467
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? this.replacementForcedDecrease : replacementForcedDecrease;
|
|
2467
|
-
|
|
2468
|
-
return $super === VOID ? this.e6z(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction) : $super.e6z.call(this, defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction);
|
|
2468
|
+
return $super === VOID ? this.e6z(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) : $super.e6z.call(this, defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease);
|
|
2469
2469
|
};
|
|
2470
2470
|
protoOf(RatingConfig).toString = function () {
|
|
2471
|
-
return 'RatingConfig(defaultFactor=' + this.defaultFactor + ', eloScaleH2H=' + this.eloScaleH2H + ', eloScaleFfa=' + this.eloScaleFfa + ', h2hCloseLossThresholdRatio=' + this.h2hCloseLossThresholdRatio + ', ffaMovEnabled=' + this.ffaMovEnabled + ',
|
|
2471
|
+
return 'RatingConfig(defaultFactor=' + this.defaultFactor + ', eloScaleH2H=' + this.eloScaleH2H + ', eloScaleFfa=' + this.eloScaleFfa + ', h2hCloseLossThresholdRatio=' + this.h2hCloseLossThresholdRatio + ', ffaMovEnabled=' + this.ffaMovEnabled + ', ffaMaxRatingDecreaseFraction=' + this.ffaMaxRatingDecreaseFraction + ', botNativeUpdatesRating=' + this.botNativeUpdatesRating + ', replacementForcedDecrease=' + this.replacementForcedDecrease + ')';
|
|
2472
2472
|
};
|
|
2473
2473
|
protoOf(RatingConfig).hashCode = function () {
|
|
2474
2474
|
var result = getNumberHashCode(this.defaultFactor);
|
|
@@ -2476,9 +2476,9 @@
|
|
|
2476
2476
|
result = imul(result, 31) + getNumberHashCode(this.eloScaleFfa) | 0;
|
|
2477
2477
|
result = imul(result, 31) + getNumberHashCode(this.h2hCloseLossThresholdRatio) | 0;
|
|
2478
2478
|
result = imul(result, 31) + getBooleanHashCode(this.ffaMovEnabled) | 0;
|
|
2479
|
+
result = imul(result, 31) + getNumberHashCode(this.ffaMaxRatingDecreaseFraction) | 0;
|
|
2479
2480
|
result = imul(result, 31) + getBooleanHashCode(this.botNativeUpdatesRating) | 0;
|
|
2480
2481
|
result = imul(result, 31) + getBooleanHashCode(this.replacementForcedDecrease) | 0;
|
|
2481
|
-
result = imul(result, 31) + getNumberHashCode(this.ffaMaxRatingDecreaseFraction) | 0;
|
|
2482
2482
|
return result;
|
|
2483
2483
|
};
|
|
2484
2484
|
protoOf(RatingConfig).equals = function (other) {
|
|
@@ -2496,12 +2496,12 @@
|
|
|
2496
2496
|
return false;
|
|
2497
2497
|
if (!(this.ffaMovEnabled === other.ffaMovEnabled))
|
|
2498
2498
|
return false;
|
|
2499
|
+
if (!equals(this.ffaMaxRatingDecreaseFraction, other.ffaMaxRatingDecreaseFraction))
|
|
2500
|
+
return false;
|
|
2499
2501
|
if (!(this.botNativeUpdatesRating === other.botNativeUpdatesRating))
|
|
2500
2502
|
return false;
|
|
2501
2503
|
if (!(this.replacementForcedDecrease === other.replacementForcedDecrease))
|
|
2502
2504
|
return false;
|
|
2503
|
-
if (!equals(this.ffaMaxRatingDecreaseFraction, other.ffaMaxRatingDecreaseFraction))
|
|
2504
|
-
return false;
|
|
2505
2505
|
return true;
|
|
2506
2506
|
};
|
|
2507
2507
|
function Companion_4() {
|
|
@@ -19209,7 +19209,7 @@
|
|
|
19209
19209
|
var tmp5_elvis_lhs = _this__u8e3s4.s7y_1;
|
|
19210
19210
|
var tmp_4 = tmp5_elvis_lhs == null ? base.botNativeUpdatesRating : tmp5_elvis_lhs;
|
|
19211
19211
|
var tmp6_elvis_lhs = _this__u8e3s4.t7y_1;
|
|
19212
|
-
var merged = new RatingConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp6_elvis_lhs == null ? base.replacementForcedDecrease : tmp6_elvis_lhs);
|
|
19212
|
+
var merged = new RatingConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? base.replacementForcedDecrease : tmp6_elvis_lhs);
|
|
19213
19213
|
return !clampToSafeRanges ? merged : clamped(merged);
|
|
19214
19214
|
}
|
|
19215
19215
|
function clamped(_this__u8e3s4) {
|