@mtgame/core 0.2.106 → 0.2.108

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.
@@ -7643,16 +7643,23 @@
7643
7643
  two_points_made: 'twoPointsMade',
7644
7644
  three_points_made: 'threePointsMade',
7645
7645
  free_throws_made: 'freeThrowsMade',
7646
+ two_points_free_throw_made: 'twoPointsFreeThrowMade',
7647
+ three_points_free_throw_made: 'threePointsFreeThrowMade',
7648
+ total_free_throw_made: 'totalFreeThrowMade',
7646
7649
  one_points_made: 'onePointsMade',
7647
7650
  dunks_made: 'dunksMade',
7648
7651
  two_point_attempts: 'twoPointAttempts',
7649
7652
  three_point_attempts: 'threePointAttempts',
7650
7653
  free_throw_attempts: 'freeThrowAttempts',
7654
+ two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
7655
+ three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
7656
+ total_free_throw_attempts: 'totalFreeThrowAttempts',
7651
7657
  one_point_attempts: 'onePointAttempts',
7652
7658
  dunk_attempts: 'dunkAttempts',
7653
7659
  two_point_percent: 'twoPointPercent',
7654
7660
  three_point_percent: 'threePointPercent',
7655
7661
  free_throw_percent: 'freeThrowPercent',
7662
+ total_free_throw_percent: 'totalFreeThrowPercent',
7656
7663
  one_point_percent: 'onePointPercent',
7657
7664
  dunks_made_percent: 'dunksMadePercent',
7658
7665
  assists: 'assists',
@@ -13512,7 +13519,12 @@
13512
13519
  WrestballGameStatistic.toBack = function (data) { };
13513
13520
  Object.defineProperty(WrestballGameStatistic.prototype, "totalFouls", {
13514
13521
  get: function () {
13515
- return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
13522
+ return (this.personalFouls || 0)
13523
+ + (this.technicalFouls || 0)
13524
+ + (this.unsportsmanlikeFouls || 0)
13525
+ + (this.disqualificationFouls || 0)
13526
+ + (this.yellowCards || 0)
13527
+ + (this.redCards || 0);
13516
13528
  },
13517
13529
  enumerable: false,
13518
13530
  configurable: true
@@ -13561,6 +13573,17 @@
13561
13573
  enumerable: false,
13562
13574
  configurable: true
13563
13575
  });
13576
+ Object.defineProperty(WrestballGameStatistic.prototype, "totalFreeThrowPercent", {
13577
+ get: function () {
13578
+ if (!this.totalFreeThrowMade || !this.totalFreeThrowAttempts) {
13579
+ return 0;
13580
+ }
13581
+ return Math.round(1000 * this.totalFreeThrowMade / this.totalFreeThrowAttempts) / 10;
13582
+ },
13583
+ set: function (v) { },
13584
+ enumerable: false,
13585
+ configurable: true
13586
+ });
13564
13587
  Object.defineProperty(WrestballGameStatistic.prototype, "dunksMadePercent", {
13565
13588
  get: function () {
13566
13589
  return !this.dunksMade || !this.dunkAttempts ? 0 : Math.round(1000 * this.dunksMade / this.dunkAttempts) / 10;
@@ -13651,6 +13674,9 @@
13651
13674
  game_user_id: 'gameUserId',
13652
13675
  points: 'points',
13653
13676
  free_throws_made: 'freeThrowsMade',
13677
+ two_points_free_throw_made: 'twoPointsFreeThrowMade',
13678
+ three_points_free_throw_made: 'threePointsFreeThrowMade',
13679
+ total_free_throw_made: 'totalFreeThrowMade',
13654
13680
  two_points_made: 'twoPointsMade',
13655
13681
  three_points_made: 'threePointsMade',
13656
13682
  one_points_made: 'onePointsMade',
@@ -13658,12 +13684,16 @@
13658
13684
  two_point_attempts: 'twoPointAttempts',
13659
13685
  three_point_attempts: 'threePointAttempts',
13660
13686
  free_throw_attempts: 'freeThrowAttempts',
13687
+ two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
13688
+ three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
13689
+ total_free_throw_attempts: 'totalFreeThrowAttempts',
13661
13690
  one_point_attempts: 'onePointAttempts',
13662
13691
  dunk_attempts: 'dunkAttempts',
13663
13692
  one_point_percent: 'onePointPercent',
13664
13693
  two_point_percent: 'twoPointPercent',
13665
13694
  three_point_percent: 'threePointPercent',
13666
13695
  free_throw_percent: 'freeThrowPercent',
13696
+ total_free_throw_percent: 'totalFreeThrowPercent',
13667
13697
  dunks_made_percent: 'dunksMadePercent',
13668
13698
  assists: 'assists',
13669
13699
  blocks: 'blocks',
@@ -13741,6 +13771,10 @@
13741
13771
  WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
13742
13772
  WrestballGameLogTypes[WrestballGameLogTypes["dunk_made"] = 36] = "dunk_made";
13743
13773
  WrestballGameLogTypes[WrestballGameLogTypes["dunk_attempt"] = 37] = "dunk_attempt";
13774
+ WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_made"] = 38] = "two_point_free_throw_made";
13775
+ WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_attempt"] = 39] = "two_point_free_throw_attempt";
13776
+ WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_made"] = 40] = "three_point_free_throw_made";
13777
+ WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_attempt"] = 41] = "three_point_free_throw_attempt";
13744
13778
  })(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
13745
13779
  exports.WrestballGameLog = /** @class */ (function (_super) {
13746
13780
  __extends(WrestballGameLog, _super);
@@ -13754,6 +13788,8 @@
13754
13788
  exports.WrestballGameLogTypes.two_point_made,
13755
13789
  exports.WrestballGameLogTypes.three_point_made,
13756
13790
  exports.WrestballGameLogTypes.free_throw_made,
13791
+ exports.WrestballGameLogTypes.two_point_free_throw_made,
13792
+ exports.WrestballGameLogTypes.three_point_free_throw_made,
13757
13793
  exports.WrestballGameLogTypes.one_point_made,
13758
13794
  exports.WrestballGameLogTypes.scrum_won,
13759
13795
  exports.WrestballGameLogTypes.wrestler_scrum_won,
@@ -13772,6 +13808,8 @@
13772
13808
  WrestballGameLog.prototype.isFoulType = function () {
13773
13809
  return [
13774
13810
  exports.WrestballGameLogTypes.personal_foul,
13811
+ exports.WrestballGameLogTypes.yellow_card,
13812
+ exports.WrestballGameLogTypes.red_card,
13775
13813
  ].indexOf(this.logType) > -1;
13776
13814
  };
13777
13815
  WrestballGameLog.prototype.isScrumType = function () {
@@ -13799,6 +13837,8 @@
13799
13837
  var scoreMapping = (_a = {},
13800
13838
  _a[exports.WrestballGameLogTypes.one_point_made] = 1,
13801
13839
  _a[exports.WrestballGameLogTypes.free_throw_made] = 1,
13840
+ _a[exports.WrestballGameLogTypes.two_point_free_throw_made] = 2,
13841
+ _a[exports.WrestballGameLogTypes.three_point_free_throw_made] = 3,
13802
13842
  _a[exports.WrestballGameLogTypes.two_point_made] = 2,
13803
13843
  _a[exports.WrestballGameLogTypes.three_point_made] = 3,
13804
13844
  _a[exports.WrestballGameLogTypes.scrum_won] = 2,
@@ -14451,11 +14491,15 @@
14451
14491
  _a$2[exports.WrestballGameLogTypes.remove_game] = 'Удаление с площадки',
14452
14492
  _a$2[exports.WrestballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
14453
14493
  _a$2[exports.WrestballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
14454
- _a$2[exports.WrestballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
14494
+ _a$2[exports.WrestballGameLogTypes.free_throw_attempt] = 'Штрафной бросок 1 очко',
14495
+ _a$2[exports.WrestballGameLogTypes.two_point_free_throw_attempt] = 'Штрафной бросок 2 очка',
14496
+ _a$2[exports.WrestballGameLogTypes.three_point_free_throw_attempt] = 'Штрафной бросок 3 очка',
14455
14497
  _a$2[exports.WrestballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
14456
14498
  _a$2[exports.WrestballGameLogTypes.two_point_made] = '2 очка',
14457
14499
  _a$2[exports.WrestballGameLogTypes.three_point_made] = '3 очка',
14458
14500
  _a$2[exports.WrestballGameLogTypes.free_throw_made] = '1 очко, штрафной',
14501
+ _a$2[exports.WrestballGameLogTypes.two_point_free_throw_made] = '2 очка, штрафной',
14502
+ _a$2[exports.WrestballGameLogTypes.three_point_free_throw_made] = '3 очка, штрафной',
14459
14503
  _a$2[exports.WrestballGameLogTypes.one_point_made] = '1 очко',
14460
14504
  _a$2[exports.WrestballGameLogTypes.dunk_made] = '2 очка, данк',
14461
14505
  _a$2[exports.WrestballGameLogTypes.dunk_attempt] = 'Попытка данка',