@mtgame/core 0.1.26 → 0.1.28

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.
@@ -3755,7 +3755,12 @@
3755
3755
  configurable: true
3756
3756
  });
3757
3757
  FootballGameLog.prototype.isScoreType = function () {
3758
- return [exports.FootballGameLogTypes.goal, exports.FootballGameLogTypes.penalty_goal, exports.FootballGameLogTypes.small_penalty_goal].indexOf(this.logType) > -1;
3758
+ return [
3759
+ exports.FootballGameLogTypes.goal,
3760
+ exports.FootballGameLogTypes.penalty_goal,
3761
+ exports.FootballGameLogTypes.small_penalty_goal,
3762
+ exports.FootballGameLogTypes.auto_goal,
3763
+ ].indexOf(this.logType) > -1;
3759
3764
  };
3760
3765
  FootballGameLog.prototype.isAfter = function (log) {
3761
3766
  if (this.time === log.time && this.period === log.period) {
@@ -3857,7 +3862,8 @@
3857
3862
  if (!this.penaltyAttempts || !this.penaltyGoals) {
3858
3863
  return 0;
3859
3864
  }
3860
- return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
3865
+ var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
3866
+ return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
3861
3867
  },
3862
3868
  enumerable: true,
3863
3869
  configurable: true
@@ -3874,7 +3880,8 @@
3874
3880
  if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
3875
3881
  return 0;
3876
3882
  }
3877
- return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
3883
+ var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
3884
+ return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
3878
3885
  },
3879
3886
  enumerable: true,
3880
3887
  configurable: true