@mtgame/core 0.2.44 → 0.2.45

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.
@@ -3518,7 +3518,10 @@
3518
3518
  }
3519
3519
  Object.defineProperty(BasketballStatistic.prototype, "totalFouls", {
3520
3520
  get: function () {
3521
- return this.personalFouls + this.technicalFouls + this.unsportsmanlikeFouls + this.disqualificationFouls;
3521
+ return Math.floor(10 * ((this.personalFouls || 0) +
3522
+ (this.technicalFouls || 0) +
3523
+ (this.unsportsmanlikeFouls || 0) +
3524
+ (this.disqualificationFouls || 0))) / 10;
3522
3525
  },
3523
3526
  enumerable: false,
3524
3527
  configurable: true
@@ -4886,14 +4889,14 @@
4886
4889
  }
4887
4890
  Object.defineProperty(HockeyStatistic.prototype, "assists", {
4888
4891
  get: function () {
4889
- return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
4892
+ return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
4890
4893
  },
4891
4894
  enumerable: false,
4892
4895
  configurable: true
4893
4896
  });
4894
4897
  Object.defineProperty(HockeyStatistic.prototype, "goalpass", {
4895
4898
  get: function () {
4896
- return (this.totalGoals || 0) + (this.assists || 0);
4899
+ return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
4897
4900
  },
4898
4901
  enumerable: false,
4899
4902
  configurable: true
@@ -5499,7 +5502,7 @@
5499
5502
  });
5500
5503
  Object.defineProperty(FootballStatistic.prototype, "goalpass", {
5501
5504
  get: function () {
5502
- return (this.totalGoals || 0) + (this.assists || 0);
5505
+ return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
5503
5506
  },
5504
5507
  enumerable: false,
5505
5508
  configurable: true
@@ -6662,7 +6665,7 @@
6662
6665
  });
6663
6666
  Object.defineProperty(RugbyStatistic.prototype, "totalFouls", {
6664
6667
  get: function () {
6665
- return (this.fouls || 0) + (this.teamFouls || 0);
6668
+ return Math.floor(10 * ((this.fouls || 0) + (this.teamFouls || 0))) / 10;
6666
6669
  },
6667
6670
  enumerable: false,
6668
6671
  configurable: true
@@ -6846,14 +6849,14 @@
6846
6849
  }
6847
6850
  Object.defineProperty(WaterpoloStatistic.prototype, "assists", {
6848
6851
  get: function () {
6849
- return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
6852
+ return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
6850
6853
  },
6851
6854
  enumerable: false,
6852
6855
  configurable: true
6853
6856
  });
6854
6857
  Object.defineProperty(WaterpoloStatistic.prototype, "goalpass", {
6855
6858
  get: function () {
6856
- return (this.totalGoals || 0) + (this.assists || 0);
6859
+ return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
6857
6860
  },
6858
6861
  enumerable: false,
6859
6862
  configurable: true