@mtgame/core 2.0.13 → 2.0.14
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/esm2020/models/basketball-statistic.mjs +5 -2
- package/esm2020/models/football-statistic.mjs +2 -2
- package/esm2020/models/hockey-statistic.mjs +3 -3
- package/esm2020/models/rugby-statistic.mjs +2 -2
- package/esm2020/models/waterpolo-statistic.mjs +3 -3
- package/fesm2015/mtgame-core.mjs +10 -7
- package/fesm2015/mtgame-core.mjs.map +1 -1
- package/fesm2020/mtgame-core.mjs +10 -7
- package/fesm2020/mtgame-core.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/mtgame-core.mjs
CHANGED
|
@@ -1410,7 +1410,10 @@ class BaseStatistic extends BaseModel {
|
|
|
1410
1410
|
|
|
1411
1411
|
let BasketballStatistic = class BasketballStatistic extends BaseStatistic {
|
|
1412
1412
|
get totalFouls() {
|
|
1413
|
-
return
|
|
1413
|
+
return Math.floor(10 * ((this.personalFouls || 0) +
|
|
1414
|
+
(this.technicalFouls || 0) +
|
|
1415
|
+
(this.unsportsmanlikeFouls || 0) +
|
|
1416
|
+
(this.disqualificationFouls || 0))) / 10;
|
|
1414
1417
|
}
|
|
1415
1418
|
get gameMinutes() {
|
|
1416
1419
|
return Math.floor(this.gameTime / 60);
|
|
@@ -2461,10 +2464,10 @@ HockeyGameStatistic = __decorate([
|
|
|
2461
2464
|
|
|
2462
2465
|
let HockeyStatistic = class HockeyStatistic extends BaseStatistic {
|
|
2463
2466
|
get assists() {
|
|
2464
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
2467
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
2465
2468
|
}
|
|
2466
2469
|
get goalpass() {
|
|
2467
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
2470
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
2468
2471
|
}
|
|
2469
2472
|
get userMinutes() {
|
|
2470
2473
|
if (!this.gameTime) {
|
|
@@ -2734,7 +2737,7 @@ let FootballStatistic = class FootballStatistic extends BaseStatistic {
|
|
|
2734
2737
|
return Math.floor(10 * ((this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0))) / 10;
|
|
2735
2738
|
}
|
|
2736
2739
|
get goalpass() {
|
|
2737
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
2740
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
2738
2741
|
}
|
|
2739
2742
|
get tournamentTeamPoints() {
|
|
2740
2743
|
return this.tournamentTeam && this.tournamentTeam.points;
|
|
@@ -3216,7 +3219,7 @@ let RugbyStatistic = class RugbyStatistic extends BaseStatistic {
|
|
|
3216
3219
|
return `${minutes < 10 ? 0 : ''}${minutes}:${seconds < 10 ? 0 : ''}${seconds}`;
|
|
3217
3220
|
}
|
|
3218
3221
|
get totalFouls() {
|
|
3219
|
-
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
3222
|
+
return Math.floor(10 * ((this.fouls || 0) + (this.teamFouls || 0))) / 10;
|
|
3220
3223
|
}
|
|
3221
3224
|
};
|
|
3222
3225
|
RugbyStatistic = __decorate([
|
|
@@ -3262,10 +3265,10 @@ TeamAchievement = __decorate([
|
|
|
3262
3265
|
|
|
3263
3266
|
let WaterpoloStatistic = class WaterpoloStatistic extends BaseStatistic {
|
|
3264
3267
|
get assists() {
|
|
3265
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
3268
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
3266
3269
|
}
|
|
3267
3270
|
get goalpass() {
|
|
3268
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
3271
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
3269
3272
|
}
|
|
3270
3273
|
get userMinutes() {
|
|
3271
3274
|
if (!this.gameTime) {
|