@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.
- package/bundles/mtgame-core.umd.js +10 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/football-game-log.js +7 -2
- package/esm2015/models/football-game-statistic.js +5 -3
- package/esm5/models/football-game-log.js +7 -2
- package/esm5/models/football-game-statistic.js +5 -3
- package/fesm2015/mtgame-core.js +10 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +10 -3
- package/fesm5/mtgame-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -3755,7 +3755,12 @@
|
|
|
3755
3755
|
configurable: true
|
|
3756
3756
|
});
|
|
3757
3757
|
FootballGameLog.prototype.isScoreType = function () {
|
|
3758
|
-
return [
|
|
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
|
-
|
|
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
|
-
|
|
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
|