@mtgame/core 0.2.88 → 0.2.89
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 +11 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/hockey-game-statistic.js +7 -1
- package/esm2015/models/hockey-statistic.js +2 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +1 -0
- package/models/hockey-statistic.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -4939,6 +4939,16 @@
|
|
|
4939
4939
|
enumerable: false,
|
|
4940
4940
|
configurable: true
|
|
4941
4941
|
});
|
|
4942
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shootoutSavesPercent", {
|
|
4943
|
+
get: function () {
|
|
4944
|
+
if (!this.shootoutShotsAgainst || !this.shootoutSaves) {
|
|
4945
|
+
return 0;
|
|
4946
|
+
}
|
|
4947
|
+
return Math.round(1000 * this.shootoutSaves / this.shootoutShotsAgainst) / 10;
|
|
4948
|
+
},
|
|
4949
|
+
enumerable: false,
|
|
4950
|
+
configurable: true
|
|
4951
|
+
});
|
|
4942
4952
|
Object.defineProperty(HockeyGameStatistic.prototype, "totalGoalsAgainst", {
|
|
4943
4953
|
get: function () {
|
|
4944
4954
|
return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
|
|
@@ -5182,6 +5192,7 @@
|
|
|
5182
5192
|
shootout_shots_against: 'shootoutShotsAgainst',
|
|
5183
5193
|
total_shots_against: 'totalShotsAgainst',
|
|
5184
5194
|
saves_percent: 'savesPercent',
|
|
5195
|
+
shootout_saves_percent: 'shootoutSavesPercent',
|
|
5185
5196
|
total_saves_percent: 'totalSavesPercent',
|
|
5186
5197
|
pp_goals_against: 'ppGoalsAgainst',
|
|
5187
5198
|
sh_goals_against: 'shGoalsAgainst',
|