@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -3542,7 +3542,12 @@ var FootballGameLog = /** @class */ (function (_super) {
|
|
|
3542
3542
|
configurable: true
|
|
3543
3543
|
});
|
|
3544
3544
|
FootballGameLog.prototype.isScoreType = function () {
|
|
3545
|
-
return [
|
|
3545
|
+
return [
|
|
3546
|
+
FootballGameLogTypes.goal,
|
|
3547
|
+
FootballGameLogTypes.penalty_goal,
|
|
3548
|
+
FootballGameLogTypes.small_penalty_goal,
|
|
3549
|
+
FootballGameLogTypes.auto_goal,
|
|
3550
|
+
].indexOf(this.logType) > -1;
|
|
3546
3551
|
};
|
|
3547
3552
|
FootballGameLog.prototype.isAfter = function (log) {
|
|
3548
3553
|
if (this.time === log.time && this.period === log.period) {
|
|
@@ -3644,7 +3649,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3644
3649
|
if (!this.penaltyAttempts || !this.penaltyGoals) {
|
|
3645
3650
|
return 0;
|
|
3646
3651
|
}
|
|
3647
|
-
|
|
3652
|
+
var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
|
|
3653
|
+
return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
|
|
3648
3654
|
},
|
|
3649
3655
|
enumerable: true,
|
|
3650
3656
|
configurable: true
|
|
@@ -3661,7 +3667,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3661
3667
|
if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
|
|
3662
3668
|
return 0;
|
|
3663
3669
|
}
|
|
3664
|
-
|
|
3670
|
+
var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
|
|
3671
|
+
return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
|
|
3665
3672
|
},
|
|
3666
3673
|
enumerable: true,
|
|
3667
3674
|
configurable: true
|