@mtgame/core 0.1.138 → 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',
@@ -11455,16 +11460,47 @@
11455
11460
  enumerable: false,
11456
11461
  configurable: true
11457
11462
  });
11458
- Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoals", {
11463
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackGoals", {
11459
11464
  get: function () {
11460
11465
  return (this.shGoals || 0) + (this.evGoals || 0) + (this.ppGoals || 0);
11461
11466
  },
11462
11467
  enumerable: false,
11463
11468
  configurable: true
11464
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
+ });
11465
11501
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalInGameGoals", {
11466
11502
  get: function () {
11467
- return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.inGameGoals;
11503
+ return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals;
11468
11504
  },
11469
11505
  enumerable: false,
11470
11506
  configurable: true