@mtgame/core 0.2.101 → 0.2.103

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.
@@ -4222,12 +4222,12 @@
4222
4222
  BasketballGameLog.prototype.getScore = function () {
4223
4223
  var _a;
4224
4224
  var scoreMapping = (_a = {},
4225
- _a[exports.BasketballGameLogTypes.one_point_made] = 1,
4226
- _a[exports.BasketballGameLogTypes.free_throw_made] = 1,
4227
- _a[exports.BasketballGameLogTypes.two_point_made] = 2,
4228
- _a[exports.BasketballGameLogTypes.three_point_made] = 3,
4229
- _a[exports.BasketballGameLogTypes.four_point_made] = 4,
4230
- _a[exports.BasketballGameLogTypes.dunk_made] = 3,
4225
+ _a[exports.BasketballGameLogTypes.one_point_made] = this.isAdditionalPoint ? 2 : 1,
4226
+ _a[exports.BasketballGameLogTypes.free_throw_made] = this.isAdditionalPoint ? 2 : 1,
4227
+ _a[exports.BasketballGameLogTypes.two_point_made] = this.isAdditionalPoint ? 3 : 2,
4228
+ _a[exports.BasketballGameLogTypes.three_point_made] = this.isAdditionalPoint ? 4 : 3,
4229
+ _a[exports.BasketballGameLogTypes.four_point_made] = this.isAdditionalPoint ? 5 : 4,
4230
+ _a[exports.BasketballGameLogTypes.dunk_made] = this.isAdditionalPoint ? 4 : 3,
4231
4231
  _a[exports.BasketballGameLogTypes.moneyball_free_throw_made] = 2,
4232
4232
  _a);
4233
4233
  if (this.logType === exports.BasketballGameLogTypes.shootout_won) {
@@ -4290,6 +4290,7 @@
4290
4290
  is_bench: 'isBench',
4291
4291
  group: 'group',
4292
4292
  marked: 'marked',
4293
+ is_additional_point: 'isAdditionalPoint',
4293
4294
  coords: 'coords',
4294
4295
  shootout_points: 'shootoutPoints',
4295
4296
  },