@mtgame/core 0.2.90 → 0.2.91
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/bundles/mtgame-core.umd.js +31 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/wrestball-game-log-types.js +3 -1
- package/esm2015/models/wrestball-game-log.js +5 -1
- package/esm2015/models/wrestball-game-statistic.js +12 -2
- package/esm2015/models/wrestball-statistic.js +7 -1
- package/fesm2015/mtgame-core.js +23 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/wrestball-game-log-types.d.ts +2 -0
- package/models/wrestball-game-log.d.ts +3 -1
- package/models/wrestball-game-statistic.d.ts +4 -0
- package/models/wrestball-statistic.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -7555,6 +7555,13 @@
|
|
|
7555
7555
|
enumerable: false,
|
|
7556
7556
|
configurable: true
|
|
7557
7557
|
});
|
|
7558
|
+
Object.defineProperty(WrestballStatistic.prototype, "dunkMadePercent", {
|
|
7559
|
+
get: function () {
|
|
7560
|
+
return !this.dunksMade || !this.dunkAttempts ? 0 : Math.round(1000 * this.dunksMade / this.dunkAttempts) / 10;
|
|
7561
|
+
},
|
|
7562
|
+
enumerable: false,
|
|
7563
|
+
configurable: true
|
|
7564
|
+
});
|
|
7558
7565
|
Object.defineProperty(WrestballStatistic.prototype, "freeThrowsPercent", {
|
|
7559
7566
|
get: function () {
|
|
7560
7567
|
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
@@ -7603,14 +7610,17 @@
|
|
|
7603
7610
|
three_points_made: 'threePointsMade',
|
|
7604
7611
|
free_throws_made: 'freeThrowsMade',
|
|
7605
7612
|
one_points_made: 'onePointsMade',
|
|
7613
|
+
dunks_made: 'dunksMade',
|
|
7606
7614
|
two_point_attempts: 'twoPointAttempts',
|
|
7607
7615
|
three_point_attempts: 'threePointAttempts',
|
|
7608
7616
|
free_throw_attempts: 'freeThrowAttempts',
|
|
7609
7617
|
one_point_attempts: 'onePointAttempts',
|
|
7618
|
+
dunk_attempts: 'dunkAttempts',
|
|
7610
7619
|
two_point_percent: 'twoPointPercent',
|
|
7611
7620
|
three_point_percent: 'threePointPercent',
|
|
7612
7621
|
free_throw_percent: 'freeThrowPercent',
|
|
7613
7622
|
one_point_percent: 'onePointPercent',
|
|
7623
|
+
dunks_made_percent: 'dunksMadePercent',
|
|
7614
7624
|
assists: 'assists',
|
|
7615
7625
|
blocks: 'blocks',
|
|
7616
7626
|
rebounds: 'rebounds',
|
|
@@ -13481,6 +13491,14 @@
|
|
|
13481
13491
|
enumerable: false,
|
|
13482
13492
|
configurable: true
|
|
13483
13493
|
});
|
|
13494
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "dunksMadePercent", {
|
|
13495
|
+
get: function () {
|
|
13496
|
+
return !this.dunksMade || !this.dunkAttempts ? 0 : Math.round(1000 * this.dunksMade / this.dunkAttempts) / 10;
|
|
13497
|
+
},
|
|
13498
|
+
set: function (v) { },
|
|
13499
|
+
enumerable: false,
|
|
13500
|
+
configurable: true
|
|
13501
|
+
});
|
|
13484
13502
|
Object.defineProperty(WrestballGameStatistic.prototype, "totalRebounds", {
|
|
13485
13503
|
get: function () {
|
|
13486
13504
|
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
@@ -13490,7 +13508,10 @@
|
|
|
13490
13508
|
});
|
|
13491
13509
|
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
|
|
13492
13510
|
get: function () {
|
|
13493
|
-
return (this.wrestlerScrumsWon || 0)
|
|
13511
|
+
return (this.wrestlerScrumsWon || 0)
|
|
13512
|
+
+ (this.wrestlerScrumsLost || 0)
|
|
13513
|
+
+ (this.wrestlerScrumsTie || 0)
|
|
13514
|
+
+ (this.wrestlerScrumsCounterattack || 0);
|
|
13494
13515
|
},
|
|
13495
13516
|
enumerable: false,
|
|
13496
13517
|
configurable: true
|
|
@@ -13563,14 +13584,17 @@
|
|
|
13563
13584
|
two_points_made: 'twoPointsMade',
|
|
13564
13585
|
three_points_made: 'threePointsMade',
|
|
13565
13586
|
one_points_made: 'onePointsMade',
|
|
13587
|
+
dunks_made: 'dunksMade',
|
|
13566
13588
|
two_point_attempts: 'twoPointAttempts',
|
|
13567
13589
|
three_point_attempts: 'threePointAttempts',
|
|
13568
13590
|
free_throw_attempts: 'freeThrowAttempts',
|
|
13569
13591
|
one_point_attempts: 'onePointAttempts',
|
|
13592
|
+
dunk_attempts: 'dunkAttempts',
|
|
13570
13593
|
one_point_percent: 'onePointPercent',
|
|
13571
13594
|
two_point_percent: 'twoPointPercent',
|
|
13572
13595
|
three_point_percent: 'threePointPercent',
|
|
13573
13596
|
free_throw_percent: 'freeThrowPercent',
|
|
13597
|
+
dunks_made_percent: 'dunksMadePercent',
|
|
13574
13598
|
assists: 'assists',
|
|
13575
13599
|
blocks: 'blocks',
|
|
13576
13600
|
rebounds: 'rebounds',
|
|
@@ -13645,6 +13669,8 @@
|
|
|
13645
13669
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_won"] = 33] = "scrum_ball_advantage_won";
|
|
13646
13670
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_lost"] = 34] = "scrum_ball_advantage_lost";
|
|
13647
13671
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
|
|
13672
|
+
WrestballGameLogTypes[WrestballGameLogTypes["dunk_made"] = 36] = "dunk_made";
|
|
13673
|
+
WrestballGameLogTypes[WrestballGameLogTypes["dunk_attempt"] = 37] = "dunk_attempt";
|
|
13648
13674
|
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
13649
13675
|
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
13650
13676
|
__extends(WrestballGameLog, _super);
|
|
@@ -13662,6 +13688,7 @@
|
|
|
13662
13688
|
exports.WrestballGameLogTypes.scrum_won,
|
|
13663
13689
|
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
13664
13690
|
exports.WrestballGameLogTypes.wrestler_scrum_counterattack,
|
|
13691
|
+
exports.WrestballGameLogTypes.dunk_made,
|
|
13665
13692
|
].indexOf(this.logType) > -1;
|
|
13666
13693
|
};
|
|
13667
13694
|
WrestballGameLog.prototype.isReboundType = function () {
|
|
@@ -13707,6 +13734,7 @@
|
|
|
13707
13734
|
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
13708
13735
|
_a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
|
|
13709
13736
|
_a[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 2,
|
|
13737
|
+
_a[exports.WrestballGameLogTypes.dunk_made] = 2,
|
|
13710
13738
|
_a);
|
|
13711
13739
|
return scoreMapping[this.logType] || 0;
|
|
13712
13740
|
};
|
|
@@ -14359,6 +14387,8 @@
|
|
|
14359
14387
|
_a$2[exports.WrestballGameLogTypes.three_point_made] = '3 очка',
|
|
14360
14388
|
_a$2[exports.WrestballGameLogTypes.free_throw_made] = '1 очко, штрафной',
|
|
14361
14389
|
_a$2[exports.WrestballGameLogTypes.one_point_made] = '1 очко',
|
|
14390
|
+
_a$2[exports.WrestballGameLogTypes.dunk_made] = '2 очка, данк',
|
|
14391
|
+
_a$2[exports.WrestballGameLogTypes.dunk_attempt] = 'Попытка данка',
|
|
14362
14392
|
_a$2[exports.WrestballGameLogTypes.assist] = 'Передача',
|
|
14363
14393
|
_a$2[exports.WrestballGameLogTypes.block] = 'Блокшот',
|
|
14364
14394
|
_a$2[exports.WrestballGameLogTypes.rebound] = 'Подбор',
|