@mtgame/core 0.2.88 → 0.2.90

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);
@@ -4939,6 +4949,16 @@
4939
4949
  enumerable: false,
4940
4950
  configurable: true
4941
4951
  });
4952
+ Object.defineProperty(HockeyGameStatistic.prototype, "shootoutSavesPercent", {
4953
+ get: function () {
4954
+ if (!this.shootoutShotsAgainst || !this.shootoutSaves) {
4955
+ return 0;
4956
+ }
4957
+ return Math.round(1000 * this.shootoutSaves / this.shootoutShotsAgainst) / 10;
4958
+ },
4959
+ enumerable: false,
4960
+ configurable: true
4961
+ });
4942
4962
  Object.defineProperty(HockeyGameStatistic.prototype, "totalGoalsAgainst", {
4943
4963
  get: function () {
4944
4964
  return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
@@ -5182,6 +5202,7 @@
5182
5202
  shootout_shots_against: 'shootoutShotsAgainst',
5183
5203
  total_shots_against: 'totalShotsAgainst',
5184
5204
  saves_percent: 'savesPercent',
5205
+ shootout_saves_percent: 'shootoutSavesPercent',
5185
5206
  total_saves_percent: 'totalSavesPercent',
5186
5207
  pp_goals_against: 'ppGoalsAgainst',
5187
5208
  sh_goals_against: 'shGoalsAgainst',