@mtgame/core 0.1.89 → 0.1.90
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 +6 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-game-log.js +3 -2
- package/esm2015/models/basketball-game-statistic.js +3 -2
- package/esm2015/models/basketball-statistic.js +3 -2
- package/fesm2015/mtgame-core.js +6 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +1 -0
- package/models/basketball-statistic.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2978,7 +2978,7 @@
|
|
|
2978
2978
|
}
|
|
2979
2979
|
Object.defineProperty(BasketballStatistic.prototype, "totalFouls", {
|
|
2980
2980
|
get: function () {
|
|
2981
|
-
return this.personalFouls + this.technicalFouls + this.unsportsmanlikeFouls;
|
|
2981
|
+
return this.personalFouls + this.technicalFouls + this.unsportsmanlikeFouls + this.disqualificationFouls;
|
|
2982
2982
|
},
|
|
2983
2983
|
enumerable: false,
|
|
2984
2984
|
configurable: true
|
|
@@ -3090,6 +3090,7 @@
|
|
|
3090
3090
|
personal_fouls: 'personalFouls',
|
|
3091
3091
|
technical_fouls: 'technicalFouls',
|
|
3092
3092
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3093
|
+
disqualification_fouls: 'disqualificationFouls',
|
|
3093
3094
|
game_time: 'gameTime',
|
|
3094
3095
|
newbie: 'newbie',
|
|
3095
3096
|
rank: 'rank',
|
|
@@ -3150,7 +3151,7 @@
|
|
|
3150
3151
|
BasketballGameStatistic.toBack = function (data) { };
|
|
3151
3152
|
Object.defineProperty(BasketballGameStatistic.prototype, "totalFouls", {
|
|
3152
3153
|
get: function () {
|
|
3153
|
-
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0);
|
|
3154
|
+
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
3154
3155
|
},
|
|
3155
3156
|
enumerable: false,
|
|
3156
3157
|
configurable: true
|
|
@@ -3233,6 +3234,7 @@
|
|
|
3233
3234
|
personal_fouls: 'personalFouls',
|
|
3234
3235
|
technical_fouls: 'technicalFouls',
|
|
3235
3236
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3237
|
+
disqualification_fouls: 'disqualificationFouls',
|
|
3236
3238
|
updated_at: 'updatedAt',
|
|
3237
3239
|
},
|
|
3238
3240
|
relation: {
|
|
@@ -3353,7 +3355,8 @@
|
|
|
3353
3355
|
return [
|
|
3354
3356
|
exports.BasketballGameLogTypes.personal_foul,
|
|
3355
3357
|
exports.BasketballGameLogTypes.technical_foul,
|
|
3356
|
-
exports.BasketballGameLogTypes.unsportsmanlike_foul
|
|
3358
|
+
exports.BasketballGameLogTypes.unsportsmanlike_foul,
|
|
3359
|
+
exports.BasketballGameLogTypes.disqualification_foul,
|
|
3357
3360
|
].indexOf(this.logType) > -1;
|
|
3358
3361
|
};
|
|
3359
3362
|
BasketballGameLog.prototype.getScore = function () {
|