@mtgame/core 0.1.26 → 0.1.27
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 +4 -2
- 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-statistic.js +5 -3
- package/esm5/models/football-game-statistic.js +5 -3
- package/fesm2015/mtgame-core.js +4 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +4 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -3857,7 +3857,8 @@
|
|
|
3857
3857
|
if (!this.penaltyAttempts || !this.penaltyGoals) {
|
|
3858
3858
|
return 0;
|
|
3859
3859
|
}
|
|
3860
|
-
|
|
3860
|
+
var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
|
|
3861
|
+
return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
|
|
3861
3862
|
},
|
|
3862
3863
|
enumerable: true,
|
|
3863
3864
|
configurable: true
|
|
@@ -3874,7 +3875,8 @@
|
|
|
3874
3875
|
if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
|
|
3875
3876
|
return 0;
|
|
3876
3877
|
}
|
|
3877
|
-
|
|
3878
|
+
var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
|
|
3879
|
+
return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
|
|
3878
3880
|
},
|
|
3879
3881
|
enumerable: true,
|
|
3880
3882
|
configurable: true
|