@mtgame/core 0.0.31 → 0.0.32

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.
@@ -2726,6 +2726,23 @@
2726
2726
  enumerable: true,
2727
2727
  configurable: true
2728
2728
  });
2729
+ Object.defineProperty(HockeyGameStatistic.prototype, "shotsAgainst", {
2730
+ get: function () {
2731
+ return (this.saves || 0) + (this.goalsAgainst || 0);
2732
+ },
2733
+ enumerable: true,
2734
+ configurable: true
2735
+ });
2736
+ Object.defineProperty(HockeyGameStatistic.prototype, "savesPercent", {
2737
+ get: function () {
2738
+ if (!this.shotsAgainst || !this.saves) {
2739
+ return 0;
2740
+ }
2741
+ return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
2742
+ },
2743
+ enumerable: true,
2744
+ configurable: true
2745
+ });
2729
2746
  HockeyGameStatistic.toFront = function (data) { };
2730
2747
  HockeyGameStatistic.toBack = function (data) { };
2731
2748
  __decorate([