@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.
@@ -2513,6 +2513,23 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
2513
2513
  enumerable: true,
2514
2514
  configurable: true
2515
2515
  });
2516
+ Object.defineProperty(HockeyGameStatistic.prototype, "shotsAgainst", {
2517
+ get: function () {
2518
+ return (this.saves || 0) + (this.goalsAgainst || 0);
2519
+ },
2520
+ enumerable: true,
2521
+ configurable: true
2522
+ });
2523
+ Object.defineProperty(HockeyGameStatistic.prototype, "savesPercent", {
2524
+ get: function () {
2525
+ if (!this.shotsAgainst || !this.saves) {
2526
+ return 0;
2527
+ }
2528
+ return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
2529
+ },
2530
+ enumerable: true,
2531
+ configurable: true
2532
+ });
2516
2533
  HockeyGameStatistic.toFront = function (data) { };
2517
2534
  HockeyGameStatistic.toBack = function (data) { };
2518
2535
  __decorate([