@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -3644,7 +3644,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3644
3644
|
if (!this.penaltyAttempts || !this.penaltyGoals) {
|
|
3645
3645
|
return 0;
|
|
3646
3646
|
}
|
|
3647
|
-
|
|
3647
|
+
var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
|
|
3648
|
+
return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
|
|
3648
3649
|
},
|
|
3649
3650
|
enumerable: true,
|
|
3650
3651
|
configurable: true
|
|
@@ -3661,7 +3662,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3661
3662
|
if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
|
|
3662
3663
|
return 0;
|
|
3663
3664
|
}
|
|
3664
|
-
|
|
3665
|
+
var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
|
|
3666
|
+
return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
|
|
3665
3667
|
},
|
|
3666
3668
|
enumerable: true,
|
|
3667
3669
|
configurable: true
|