@mtgame/core 0.2.89 → 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);