@mtgame/core 0.2.42 → 0.2.43

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.
@@ -3709,7 +3709,21 @@
3709
3709
  enumerable: false,
3710
3710
  configurable: true
3711
3711
  });
3712
+ Object.defineProperty(BasketballGameStatistic.prototype, "onePointPercent", {
3713
+ get: function () {
3714
+ if (!this.onePointsMade || !this.onePointAttempts) {
3715
+ return 0;
3716
+ }
3717
+ return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
3718
+ },
3719
+ set: function (v) { },
3720
+ enumerable: false,
3721
+ configurable: true
3722
+ });
3712
3723
  Object.defineProperty(BasketballGameStatistic.prototype, "onePointsPercent", {
3724
+ /**
3725
+ * @deprecated Use onePointPercent instead
3726
+ */
3713
3727
  get: function () {
3714
3728
  if (!this.onePointsMade || !this.onePointAttempts) {
3715
3729
  return 0;
@@ -3719,7 +3733,21 @@
3719
3733
  enumerable: false,
3720
3734
  configurable: true
3721
3735
  });
3736
+ Object.defineProperty(BasketballGameStatistic.prototype, "twoPointPercent", {
3737
+ get: function () {
3738
+ if (!this.twoPointsMade || !this.twoPointAttempts) {
3739
+ return 0;
3740
+ }
3741
+ return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
3742
+ },
3743
+ set: function (v) { },
3744
+ enumerable: false,
3745
+ configurable: true
3746
+ });
3722
3747
  Object.defineProperty(BasketballGameStatistic.prototype, "twoPointsPercent", {
3748
+ /**
3749
+ * @deprecated Use twoPointPercent instead
3750
+ */
3723
3751
  get: function () {
3724
3752
  if (!this.twoPointsMade || !this.twoPointAttempts) {
3725
3753
  return 0;
@@ -3729,7 +3757,21 @@
3729
3757
  enumerable: false,
3730
3758
  configurable: true
3731
3759
  });
3760
+ Object.defineProperty(BasketballGameStatistic.prototype, "threePointPercent", {
3761
+ get: function () {
3762
+ if (!this.threePointsMade || !this.threePointAttempts) {
3763
+ return 0;
3764
+ }
3765
+ return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
3766
+ },
3767
+ set: function (v) { },
3768
+ enumerable: false,
3769
+ configurable: true
3770
+ });
3732
3771
  Object.defineProperty(BasketballGameStatistic.prototype, "threePointsPercent", {
3772
+ /**
3773
+ * @deprecated Use threePointPercent instead
3774
+ */
3733
3775
  get: function () {
3734
3776
  if (!this.threePointsMade || !this.threePointAttempts) {
3735
3777
  return 0;
@@ -3739,7 +3781,21 @@
3739
3781
  enumerable: false,
3740
3782
  configurable: true
3741
3783
  });
3784
+ Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowPercent", {
3785
+ get: function () {
3786
+ if (!this.freeThrowsMade || !this.freeThrowAttempts) {
3787
+ return 0;
3788
+ }
3789
+ return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
3790
+ },
3791
+ set: function (v) { },
3792
+ enumerable: false,
3793
+ configurable: true
3794
+ });
3742
3795
  Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowsPercent", {
3796
+ /**
3797
+ * @deprecated Use freeThrowPercent instead
3798
+ */
3743
3799
  get: function () {
3744
3800
  if (!this.freeThrowsMade || !this.freeThrowAttempts) {
3745
3801
  return 0;
@@ -3763,6 +3819,7 @@
3763
3819
  }
3764
3820
  return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
3765
3821
  },
3822
+ set: function (v) { },
3766
3823
  enumerable: false,
3767
3824
  configurable: true
3768
3825
  });
@@ -3787,6 +3844,11 @@
3787
3844
  three_point_attempts: 'threePointAttempts',
3788
3845
  free_throw_attempts: 'freeThrowAttempts',
3789
3846
  one_point_attempts: 'onePointAttempts',
3847
+ one_point_percent: 'onePointPercent',
3848
+ two_point_percent: 'twoPointPercent',
3849
+ three_point_percent: 'threePointPercent',
3850
+ free_throw_percent: 'freeThrowPercent',
3851
+ four_point_percent: 'fourPointPercent',
3790
3852
  assists: 'assists',
3791
3853
  blocks: 'blocks',
3792
3854
  rebounds: 'rebounds',