@mtgame/core 0.1.138 → 0.1.140

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,20 +6596,38 @@
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',
6605
+ counterattack_shot_on_goals: 'counterAttackShotOnGoals',
6606
+ counterattack_shot_misses: 'counterAttackShotMisses',
6607
+ counterattack_shots: 'counterAttackShots',
6608
+ counterattack_goals_percent: 'counterAttackGoalsPercent',
6600
6609
  total_maneuver_goals: 'totalManeuverGoals',
6610
+ maneuver_shot_misses: 'maneuverShotMisses',
6611
+ maneuver_shot_on_goals: 'maneuverShotOnGoals',
6612
+ maneuver_shots: 'maneuverShots',
6613
+ maneuver_goals_percent: 'maneuverGoalsPercent',
6601
6614
  total_center_forward_goals: 'totalCenterForwardGoals',
6615
+ center_forward_shot_on_goals: 'centerForwardShotOnGoals',
6616
+ center_forward_shot_misses: 'centerForwardShotMisses',
6617
+ center_forward_shots: 'centerForwardShots',
6618
+ center_forward_goals_percent: 'centerForwardGoalsPercent',
6619
+ total_free_kick_goals: 'totalFreeKickGoals',
6620
+ free_kick_shot_misses: 'freeKickShotMisses',
6621
+ free_kick_on_goals: 'freeKickOnGoals',
6622
+ total_free_kicks: 'totalFreeKicks',
6623
+ free_kick_goals_percent: 'freeKickGoalsPercent',
6624
+ total_corner_goals: 'totalCornerGoals',
6625
+ total_corners: 'totalCorners',
6602
6626
  total_in_game_goals: 'totalInGameGoals',
6603
6627
  in_game_shot_misses: 'inGameShotMisses',
6604
- counterattack_shot_misses: 'counterAttackShotMisses',
6605
- center_forward_shot_misses: 'centerForwardShotMisses',
6606
6628
  total_pp_shot_misses: 'totalPpShotMisses',
6607
- free_kick_shot_misses: 'freeKickShotMisses',
6608
6629
  shot_misses: 'shotMisses',
6609
6630
  total_pp_shots_on_goal: 'totalPpShotsOnGoal',
6610
- counterattack_shot_on_goals: 'counterAttackShotOnGoals',
6611
- center_forward_shot_on_goals: 'centerForwardShotOnGoals',
6612
- free_kick_on_goals: 'freeKickOnGoals',
6613
6631
  in_game_shots_on_goals: 'inGameShotsOnGoals',
6614
6632
  shots_on_goal: 'shotsOnGoal',
6615
6633
  shots_blocked: 'shotsBlocked',
@@ -6620,10 +6638,6 @@
6620
6638
  total_goals_percent: 'totalGoalsPercent',
6621
6639
  face_offs: 'faceOffs',
6622
6640
  face_off_percent: 'faceOffPercent',
6623
- total_free_kick_goals: 'totalFreeKickGoals',
6624
- total_free_kicks: 'totalFreeKicks',
6625
- total_corner_goals: 'totalCornerGoals',
6626
- total_corners: 'totalCorners',
6627
6641
  total_fouls: 'totalFouls',
6628
6642
  total_penalties: 'totalPenalties',
6629
6643
  shootout_shots: 'shootoutShots',
@@ -11156,6 +11170,23 @@
11156
11170
  enumerable: false,
11157
11171
  configurable: true
11158
11172
  });
11173
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackShots", {
11174
+ get: function () {
11175
+ return this.counterAttackShotMisses + this.counterAttackShotOnGoals;
11176
+ },
11177
+ enumerable: false,
11178
+ configurable: true
11179
+ });
11180
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackGoalsPercent", {
11181
+ get: function () {
11182
+ if (!this.totalCounterAttackGoals || !this.counterAttackShots) {
11183
+ return 0;
11184
+ }
11185
+ return Math.round(1000 * this.totalCounterAttackGoals / this.counterAttackShots) / 10;
11186
+ },
11187
+ enumerable: false,
11188
+ configurable: true
11189
+ });
11159
11190
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalManeuverGoals", {
11160
11191
  get: function () {
11161
11192
  return (this.ppManeuverGoals || 0) + (this.shManeuverGoals || 0) + (this.evManeuverGoals || 0);
@@ -11198,6 +11229,23 @@
11198
11229
  enumerable: false,
11199
11230
  configurable: true
11200
11231
  });
11232
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverShots", {
11233
+ get: function () {
11234
+ return this.maneuverShotMisses + this.maneuverShotOnGoals;
11235
+ },
11236
+ enumerable: false,
11237
+ configurable: true
11238
+ });
11239
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverGoalsPercent", {
11240
+ get: function () {
11241
+ if (!this.totalManeuverGoals || !this.maneuverShots) {
11242
+ return 0;
11243
+ }
11244
+ return Math.round(1000 * this.totalManeuverGoals / this.maneuverShots) / 10;
11245
+ },
11246
+ enumerable: false,
11247
+ configurable: true
11248
+ });
11201
11249
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCenterForwardGoals", {
11202
11250
  get: function () {
11203
11251
  return (this.ppCenterForwardGoals || 0) + (this.shCenterForwardGoals || 0) + (this.evCenterForwardGoals || 0);
@@ -11240,6 +11288,23 @@
11240
11288
  enumerable: false,
11241
11289
  configurable: true
11242
11290
  });
11291
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardShots", {
11292
+ get: function () {
11293
+ return this.centerForwardShotMisses + this.centerForwardShotOnGoals;
11294
+ },
11295
+ enumerable: false,
11296
+ configurable: true
11297
+ });
11298
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardGoalsPercent", {
11299
+ get: function () {
11300
+ if (!this.totalCenterForwardGoals || !this.centerForwardShots) {
11301
+ return 0;
11302
+ }
11303
+ return Math.round(1000 * this.totalCenterForwardGoals / this.centerForwardShots) / 10;
11304
+ },
11305
+ enumerable: false,
11306
+ configurable: true
11307
+ });
11243
11308
  Object.defineProperty(WaterpoloGameStatistic.prototype, "ppShots", {
11244
11309
  get: function () {
11245
11310
  return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
@@ -11423,6 +11488,16 @@
11423
11488
  enumerable: false,
11424
11489
  configurable: true
11425
11490
  });
11491
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickGoalsPercent", {
11492
+ get: function () {
11493
+ if (!this.totalFreeKickGoals || !this.totalFreeKicks) {
11494
+ return 0;
11495
+ }
11496
+ return Math.round(1000 * this.totalFreeKickGoals / this.totalFreeKicks) / 10;
11497
+ },
11498
+ enumerable: false,
11499
+ configurable: true
11500
+ });
11426
11501
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCornerGoals", {
11427
11502
  get: function () {
11428
11503
  return (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
@@ -11455,16 +11530,47 @@
11455
11530
  enumerable: false,
11456
11531
  configurable: true
11457
11532
  });
11458
- Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoals", {
11533
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackGoals", {
11459
11534
  get: function () {
11460
11535
  return (this.shGoals || 0) + (this.evGoals || 0) + (this.ppGoals || 0);
11461
11536
  },
11462
11537
  enumerable: false,
11463
11538
  configurable: true
11464
11539
  });
11540
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsOnGoal", {
11541
+ get: function () {
11542
+ return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
11543
+ },
11544
+ enumerable: false,
11545
+ configurable: true
11546
+ });
11547
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsMiss", {
11548
+ get: function () {
11549
+ return (this.ppShotMisses || 0) + (this.evShotMisses || 0) + (this.shShotMisses || 0);
11550
+ },
11551
+ enumerable: false,
11552
+ configurable: true
11553
+ });
11554
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShots", {
11555
+ get: function () {
11556
+ return this.positionAttackShotsOnGoal + this.positionAttackShotsMiss;
11557
+ },
11558
+ enumerable: false,
11559
+ configurable: true
11560
+ });
11561
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackGoalsPercent", {
11562
+ get: function () {
11563
+ if (!this.positionAttackGoals || !this.positionAttackShots) {
11564
+ return 0;
11565
+ }
11566
+ return Math.round(1000 * this.positionAttackGoals / this.positionAttackShots) / 10;
11567
+ },
11568
+ enumerable: false,
11569
+ configurable: true
11570
+ });
11465
11571
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalInGameGoals", {
11466
11572
  get: function () {
11467
- return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.inGameGoals;
11573
+ return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals;
11468
11574
  },
11469
11575
  enumerable: false,
11470
11576
  configurable: true