@mtgame/core 0.2.43 → 0.2.44

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.
@@ -3644,6 +3644,8 @@
3644
3644
  dunks_made: 'dunksMade',
3645
3645
  shootouts_won: 'shootoutsWon',
3646
3646
  shootouts_lost: 'shootoutsLost',
3647
+ shootouts_total: 'shootoutsTotal',
3648
+ shootout_won_percent: 'shootoutWonPercent',
3647
3649
  game_time: 'gameTime',
3648
3650
  newbie: 'newbie',
3649
3651
  rank: 'rank',
@@ -3823,6 +3825,25 @@
3823
3825
  enumerable: false,
3824
3826
  configurable: true
3825
3827
  });
3828
+ Object.defineProperty(BasketballGameStatistic.prototype, "shootoutsTotal", {
3829
+ get: function () {
3830
+ return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
3831
+ },
3832
+ set: function (v) { },
3833
+ enumerable: false,
3834
+ configurable: true
3835
+ });
3836
+ Object.defineProperty(BasketballGameStatistic.prototype, "shootoutWonPercent", {
3837
+ get: function () {
3838
+ if (!this.shootoutsTotal || !this.shootoutsWon) {
3839
+ return 0;
3840
+ }
3841
+ return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
3842
+ },
3843
+ set: function (v) { },
3844
+ enumerable: false,
3845
+ configurable: true
3846
+ });
3826
3847
  return BasketballGameStatistic;
3827
3848
  }(BaseModel));
3828
3849
  __decorate([
@@ -3869,6 +3890,8 @@
3869
3890
  dunks_made: 'dunksMade',
3870
3891
  shootouts_won: 'shootoutsWon',
3871
3892
  shootouts_lost: 'shootoutsLost',
3893
+ shootouts_total: 'shootoutsTotal',
3894
+ shootout_won_percent: 'shootoutWonPercent',
3872
3895
  updated_at: 'updatedAt',
3873
3896
  },
3874
3897
  relation: {