@mtgame/core 0.1.137 → 0.1.139

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.
@@ -6596,6 +6596,11 @@
6596
6596
  total_ev_goals: 'totalEvGoals',
6597
6597
  goals: 'goals',
6598
6598
  total_goals: 'totalGoals',
6599
+ position_attack_goals: 'positionAttackGoals',
6600
+ position_attack_shots_on_goal: 'positionAttackShotsOnGoal',
6601
+ position_attack_shots_miss: 'positionAttackShotsMiss',
6602
+ position_attack_shots: 'positionAttackShots',
6603
+ position_attack_goals_percent: 'positionAttackGoalsPercent',
6599
6604
  total_counterattack_goals: 'totalCounterAttackGoals',
6600
6605
  total_maneuver_goals: 'totalManeuverGoals',
6601
6606
  total_center_forward_goals: 'totalCenterForwardGoals',
@@ -6625,6 +6630,7 @@
6625
6630
  total_corner_goals: 'totalCornerGoals',
6626
6631
  total_corners: 'totalCorners',
6627
6632
  total_fouls: 'totalFouls',
6633
+ total_penalties: 'totalPenalties',
6628
6634
  shootout_shots: 'shootoutShots',
6629
6635
  shootout_goals_percent: 'shootoutGoalsPercent',
6630
6636
  /*goalie stat*/
@@ -11441,21 +11447,60 @@
11441
11447
  });
11442
11448
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFouls", {
11443
11449
  get: function () {
11444
- return (this.fouls || 0) + (this.penaltyFouls || 0) + (this.attackFouls || 0) + (this.personalFouls || 0);
11450
+ return (this.fouls || 0) + (this.penaltyFouls || 0) + (this.attackFouls || 0) + (this.personalFouls || 0) +
11451
+ (this.minorPenalties || 0) + (this.majorPenalties || 0) + (this.matchPenalties || 0);
11445
11452
  },
11446
11453
  enumerable: false,
11447
11454
  configurable: true
11448
11455
  });
11449
- Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoals", {
11456
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPenalties", {
11457
+ get: function () {
11458
+ return (this.minorPenalties || 0) + (this.majorPenalties || 0) + (this.matchPenalties || 0);
11459
+ },
11460
+ enumerable: false,
11461
+ configurable: true
11462
+ });
11463
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackGoals", {
11450
11464
  get: function () {
11451
11465
  return (this.shGoals || 0) + (this.evGoals || 0) + (this.ppGoals || 0);
11452
11466
  },
11453
11467
  enumerable: false,
11454
11468
  configurable: true
11455
11469
  });
11470
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsOnGoal", {
11471
+ get: function () {
11472
+ return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
11473
+ },
11474
+ enumerable: false,
11475
+ configurable: true
11476
+ });
11477
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsMiss", {
11478
+ get: function () {
11479
+ return (this.ppShotMisses || 0) + (this.evShotMisses || 0) + (this.shShotMisses || 0);
11480
+ },
11481
+ enumerable: false,
11482
+ configurable: true
11483
+ });
11484
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShots", {
11485
+ get: function () {
11486
+ return this.positionAttackShotsOnGoal + this.positionAttackShotsMiss;
11487
+ },
11488
+ enumerable: false,
11489
+ configurable: true
11490
+ });
11491
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackGoalsPercent", {
11492
+ get: function () {
11493
+ if (!this.positionAttackGoals || !this.positionAttackShots) {
11494
+ return 0;
11495
+ }
11496
+ return Math.round(1000 * this.positionAttackGoals / this.positionAttackShots) / 10;
11497
+ },
11498
+ enumerable: false,
11499
+ configurable: true
11500
+ });
11456
11501
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalInGameGoals", {
11457
11502
  get: function () {
11458
- return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.inGameGoals;
11503
+ return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals;
11459
11504
  },
11460
11505
  enumerable: false,
11461
11506
  configurable: true