@mtgame/core 0.2.89 → 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.
@@ -4870,6 +4870,16 @@
4870
4870
  enumerable: false,
4871
4871
  configurable: true
4872
4872
  });
4873
+ Object.defineProperty(HockeyGameStatistic.prototype, "totalGoalsPercent", {
4874
+ get: function () {
4875
+ if (!this.totalGoals || !this.totalShots) {
4876
+ return 0;
4877
+ }
4878
+ return Math.round(1000 * this.totalGoals / this.totalShots) / 10;
4879
+ },
4880
+ enumerable: false,
4881
+ configurable: true
4882
+ });
4873
4883
  Object.defineProperty(HockeyGameStatistic.prototype, "assists", {
4874
4884
  get: function () {
4875
4885
  return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
@@ -7545,6 +7555,13 @@
7545
7555
  enumerable: false,
7546
7556
  configurable: true
7547
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
+ });
7548
7565
  Object.defineProperty(WrestballStatistic.prototype, "freeThrowsPercent", {
7549
7566
  get: function () {
7550
7567
  if (!this.freeThrowsMade || !this.freeThrowAttempts) {
@@ -7593,14 +7610,17 @@
7593
7610
  three_points_made: 'threePointsMade',
7594
7611
  free_throws_made: 'freeThrowsMade',
7595
7612
  one_points_made: 'onePointsMade',
7613
+ dunks_made: 'dunksMade',
7596
7614
  two_point_attempts: 'twoPointAttempts',
7597
7615
  three_point_attempts: 'threePointAttempts',
7598
7616
  free_throw_attempts: 'freeThrowAttempts',
7599
7617
  one_point_attempts: 'onePointAttempts',
7618
+ dunk_attempts: 'dunkAttempts',
7600
7619
  two_point_percent: 'twoPointPercent',
7601
7620
  three_point_percent: 'threePointPercent',
7602
7621
  free_throw_percent: 'freeThrowPercent',
7603
7622
  one_point_percent: 'onePointPercent',
7623
+ dunks_made_percent: 'dunksMadePercent',
7604
7624
  assists: 'assists',
7605
7625
  blocks: 'blocks',
7606
7626
  rebounds: 'rebounds',
@@ -13471,6 +13491,14 @@
13471
13491
  enumerable: false,
13472
13492
  configurable: true
13473
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
+ });
13474
13502
  Object.defineProperty(WrestballGameStatistic.prototype, "totalRebounds", {
13475
13503
  get: function () {
13476
13504
  return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
@@ -13480,7 +13508,10 @@
13480
13508
  });
13481
13509
  Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
13482
13510
  get: function () {
13483
- return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0) + (this.wrestlerScrumsCounterattack || 0);
13511
+ return (this.wrestlerScrumsWon || 0)
13512
+ + (this.wrestlerScrumsLost || 0)
13513
+ + (this.wrestlerScrumsTie || 0)
13514
+ + (this.wrestlerScrumsCounterattack || 0);
13484
13515
  },
13485
13516
  enumerable: false,
13486
13517
  configurable: true
@@ -13553,14 +13584,17 @@
13553
13584
  two_points_made: 'twoPointsMade',
13554
13585
  three_points_made: 'threePointsMade',
13555
13586
  one_points_made: 'onePointsMade',
13587
+ dunks_made: 'dunksMade',
13556
13588
  two_point_attempts: 'twoPointAttempts',
13557
13589
  three_point_attempts: 'threePointAttempts',
13558
13590
  free_throw_attempts: 'freeThrowAttempts',
13559
13591
  one_point_attempts: 'onePointAttempts',
13592
+ dunk_attempts: 'dunkAttempts',
13560
13593
  one_point_percent: 'onePointPercent',
13561
13594
  two_point_percent: 'twoPointPercent',
13562
13595
  three_point_percent: 'threePointPercent',
13563
13596
  free_throw_percent: 'freeThrowPercent',
13597
+ dunks_made_percent: 'dunksMadePercent',
13564
13598
  assists: 'assists',
13565
13599
  blocks: 'blocks',
13566
13600
  rebounds: 'rebounds',
@@ -13635,6 +13669,8 @@
13635
13669
  WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_won"] = 33] = "scrum_ball_advantage_won";
13636
13670
  WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_lost"] = 34] = "scrum_ball_advantage_lost";
13637
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";
13638
13674
  })(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
13639
13675
  exports.WrestballGameLog = /** @class */ (function (_super) {
13640
13676
  __extends(WrestballGameLog, _super);
@@ -13652,6 +13688,7 @@
13652
13688
  exports.WrestballGameLogTypes.scrum_won,
13653
13689
  exports.WrestballGameLogTypes.wrestler_scrum_won,
13654
13690
  exports.WrestballGameLogTypes.wrestler_scrum_counterattack,
13691
+ exports.WrestballGameLogTypes.dunk_made,
13655
13692
  ].indexOf(this.logType) > -1;
13656
13693
  };
13657
13694
  WrestballGameLog.prototype.isReboundType = function () {
@@ -13697,6 +13734,7 @@
13697
13734
  _a[exports.WrestballGameLogTypes.scrum_won] = 2,
13698
13735
  _a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
13699
13736
  _a[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 2,
13737
+ _a[exports.WrestballGameLogTypes.dunk_made] = 2,
13700
13738
  _a);
13701
13739
  return scoreMapping[this.logType] || 0;
13702
13740
  };
@@ -14349,6 +14387,8 @@
14349
14387
  _a$2[exports.WrestballGameLogTypes.three_point_made] = '3 очка',
14350
14388
  _a$2[exports.WrestballGameLogTypes.free_throw_made] = '1 очко, штрафной',
14351
14389
  _a$2[exports.WrestballGameLogTypes.one_point_made] = '1 очко',
14390
+ _a$2[exports.WrestballGameLogTypes.dunk_made] = '2 очка, данк',
14391
+ _a$2[exports.WrestballGameLogTypes.dunk_attempt] = 'Попытка данка',
14352
14392
  _a$2[exports.WrestballGameLogTypes.assist] = 'Передача',
14353
14393
  _a$2[exports.WrestballGameLogTypes.block] = 'Блокшот',
14354
14394
  _a$2[exports.WrestballGameLogTypes.rebound] = 'Подбор',