@mtgame/core 0.0.30 → 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([
@@ -2577,7 +2594,7 @@ var HockeyStatistic = /** @class */ (function (_super) {
2577
2594
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
2578
2595
  get: function () {
2579
2596
  var minutes = Math.floor(this.gameTime / 60);
2580
- var seconds = this.gameTime - minutes * 60;
2597
+ var seconds = Math.floor(this.gameTime - minutes * 60);
2581
2598
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
2582
2599
  },
2583
2600
  enumerable: true,