@mtgame/core 0.1.130 → 0.1.132

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.
@@ -3671,6 +3671,13 @@
3671
3671
  function GameUser() {
3672
3672
  return _super !== null && _super.apply(this, arguments) || this;
3673
3673
  }
3674
+ Object.defineProperty(GameUser.prototype, "gameUserNumber", {
3675
+ get: function () {
3676
+ return this.number ? this.number : this.teamUser.number;
3677
+ },
3678
+ enumerable: false,
3679
+ configurable: true
3680
+ });
3674
3681
  GameUser.toFront = function (data) { };
3675
3682
  GameUser.toBack = function (data) { };
3676
3683
  return GameUser;
@@ -6435,37 +6442,48 @@
6435
6442
  team_missed_sum: 'teamMissedSum',
6436
6443
  tournament_points: 'tournamentPoints',
6437
6444
  points: 'points',
6438
- pp_shots: 'ppShots',
6439
6445
  pp_shot_misses: 'ppShotMisses',
6440
6446
  pp_shots_on_goal: 'ppShotsOnGoal',
6441
6447
  pp_shots_blocked: 'ppShotsBlocked',
6442
- ev_shots: 'evShots',
6443
6448
  ev_shot_misses: 'evShotMisses',
6444
6449
  ev_shots_on_goal: 'evShotsOnGoal',
6445
6450
  ev_shots_blocked: 'evShotsBlocked',
6446
- sh_shots: 'shShots',
6447
6451
  sh_shot_misses: 'shShotMisses',
6448
6452
  sh_shots_on_goal: 'shShotsOnGoal',
6449
6453
  sh_shots_blocked: 'shShotsBlocked',
6450
- pp_goals_percent: 'ppGoalsPercent',
6454
+ pp_total_shots_on_goal: 'ppTotalShotsOnGoal',
6455
+ ev_total_shots_on_goal: 'evTotalShotsOnGoal',
6456
+ sh_total_shots_on_goal: 'shTotalShotsOnGoal',
6451
6457
  pp_goals: 'ppGoals',
6452
- total_pp_goals: 'totalPpGoals',
6453
- ev_goals_percent: 'evGoalsPercent',
6454
6458
  ev_goals: 'evGoals',
6455
- total_ev_goals: 'totalEvGoals',
6456
- sh_goals_percent: 'shGoalsPercent',
6457
- goals: 'goals',
6458
- total_goals: 'totalGoals',
6459
6459
  sh_goals: 'shGoals',
6460
- total_sh_goals: 'totalShGoals',
6461
- shot_misses: 'shotMisses',
6462
- shots_on_goal: 'shotsOnGoal',
6463
- shots_on_goal_percent: 'shotsOnGoalPercent',
6464
- shots_blocked: 'shotsBlocked',
6465
- shots: 'shots',
6466
- total_shots: 'totalShots',
6467
- goals_percent: 'goalsPercent',
6468
- total_goals_percent: 'totalGoalsPercent',
6460
+ pp_counterattack_goals: 'ppCounterAttackGoals',
6461
+ pp_counterattack_on_goals: 'ppCounterAttackOnGoals',
6462
+ pp_counterattack_misses: 'ppCounterAttackMisses',
6463
+ ev_counterattack_goals: 'evCounterAttackGoals',
6464
+ ev_counterattack_on_goals: 'evCounterAttackOnGoals',
6465
+ ev_counterattack_misses: 'evCounterAttackMisses',
6466
+ sh_counterattack_goals: 'shCounterAttackGoals',
6467
+ sh_counterattack_on_goals: 'shCounterAttackOnGoals',
6468
+ sh_counterattack_misses: 'shCounterAttackMisses',
6469
+ pp_maneuver_goals: 'ppManeuverGoals',
6470
+ pp_maneuver_on_goals: 'ppManeuverOnGoals',
6471
+ pp_maneuver_misses: 'ppManeuverMisses',
6472
+ ev_maneuver_goals: 'evManeuverGoals',
6473
+ ev_maneuver_on_goals: 'evManeuverOnGoals',
6474
+ ev_maneuver_misses: 'evManeuverMisses',
6475
+ sh_maneuver_goals: 'shManeuverGoals',
6476
+ sh_maneuver_on_goals: 'shManeuverOnGoals',
6477
+ sh_maneuver_misses: 'shManeuverMisses',
6478
+ pp_center_forward_goals: 'ppCenterForwardGoals',
6479
+ pp_center_forward_on_goals: 'ppCenterForwardOnGoals',
6480
+ pp_center_forward_misses: 'ppCenterForwardMisses',
6481
+ ev_center_forward_goals: 'evCenterForwardGoals',
6482
+ ev_center_forward_on_goals: 'evCenterForwardOnGoals',
6483
+ ev_center_forward_misses: 'evCenterForwardMisses',
6484
+ sh_center_forward_goals: 'shCenterForwardGoals',
6485
+ sh_center_forward_on_goals: 'shCenterForwardOnGoals',
6486
+ sh_center_forward_misses: 'shCenterForwardMisses',
6469
6487
  pp_assists: 'ppAssists',
6470
6488
  ev_assists: 'evAssists',
6471
6489
  sh_assists: 'shAssists',
@@ -6476,31 +6494,73 @@
6476
6494
  block_shots: 'blockShots',
6477
6495
  face_off_losses: 'faceOffLosses',
6478
6496
  face_off_wins: 'faceOffWins',
6479
- face_offs: 'faceOffs',
6480
- face_off_percent: 'faceOffPercent',
6481
- saves: 'saves',
6482
- total_saves: 'totalSaves',
6497
+ pp_saves: 'ppSaves',
6498
+ sh_saves: 'shSaves',
6499
+ ev_saves: 'evSaves',
6500
+ pp_counterattack_saves: 'ppCounterAttackSaves',
6501
+ sh_counterattack_saves: 'shCounterAttackSaves',
6502
+ ev_counterattack_saves: 'evCounterAttackSaves',
6503
+ pp_maneuver_saves: 'ppManeuverSaves',
6504
+ sh_maneuver_saves: 'shManeuverSaves',
6505
+ ev_maneuver_saves: 'evManeuverSaves',
6506
+ pp_center_forward_saves: 'ppCenterForwardSaves',
6507
+ sh_center_forward_saves: 'shCenterForwardSaves',
6508
+ ev_center_forward_saves: 'evCenterForwardSaves',
6509
+ pp_free_kick_saves: 'ppFreeKickSaves',
6510
+ sh_free_kick_saves: 'shFreeKickSaves',
6511
+ ev_free_kick_saves: 'evFreeKickSaves',
6512
+ pp_corner_saves: 'ppCornerSaves',
6513
+ sh_corner_saves: 'shCornerSaves',
6514
+ ev_corner_saves: 'evCornerSaves',
6515
+ pp_total_game_saves: 'ppTotalGameSaves',
6516
+ sh_total_game_saves: 'shTotalGameSaves',
6517
+ ev_total_game_saves: 'evTotalGameSaves',
6483
6518
  shootout_saves: 'shootoutSaves',
6484
- shots_against: 'shotsAgainst',
6485
- shootout_shots_against: 'shootoutShotsAgainst',
6486
- total_shots_against: 'totalShotsAgainst',
6487
- saves_percent: 'savesPercent',
6488
- total_saves_percent: 'totalSavesPercent',
6519
+ after_game_shootout_saves: 'afterGameShootoutSaves',
6520
+ pp_goals_against: 'ppGoalsAgainst',
6521
+ sh_goals_against: 'shGoalsAgainst',
6522
+ ev_goals_against: 'evGoalsAgainst',
6489
6523
  goals_against: 'goalsAgainst',
6524
+ pp_counterattack_goals_against: 'ppCounterAttackGoalsAgainst',
6525
+ sh_counterattack_goals_against: 'shCounterAttackGoalsAgainst',
6526
+ ev_counterattack_goals_against: 'evCounterAttackGoalsAgainst',
6527
+ counterattack_goals_against: 'counterAttackGoalsAgainst',
6528
+ pp_maneuver_goals_against: 'ppManeuverGoalsAgainst',
6529
+ sh_maneuver_goals_against: 'shManeuverGoalsAgainst',
6530
+ ev_maneuver_goals_against: 'evManeuverGoalsAgainst',
6531
+ maneuver_goals_against: 'maneuverGoalsAgainst',
6532
+ pp_center_forward_goals_against: 'ppCenterForwardGoalsAgainst',
6533
+ sh_center_forward_goals_against: 'shCenterForwardGoalsAgainst',
6534
+ ev_center_forward_goals_against: 'evCenterForwardGoalsAgainst',
6535
+ center_forward_goals_against: 'centerForwardGoalsAgainst',
6536
+ pp_free_kick_goals_against: 'ppFreeKickGoalsAgainst',
6537
+ sh_free_kick_goals_against: 'shFreeKickGoalsAgainst',
6538
+ ev_free_kick_goals_against: 'evFreeKickGoalsAgainst',
6539
+ free_kick_goals_against: 'freeKickGoalsAgainst',
6540
+ pp_corner_goals_against: 'ppCornerGoalsAgainst',
6541
+ sh_corner_goals_against: 'shCornerGoalsAgainst',
6542
+ ev_corner_goals_against: 'evCornerGoalsAgainst',
6543
+ corner_goals_against: 'cornerGoalsAgainst',
6490
6544
  shootout_goals_against: 'shootoutGoalsAgainst',
6491
- total_goals_against: 'totalGoalsAgainst',
6545
+ after_game_shootout_goals_against: 'afterGameShootoutGoalsAgainst',
6492
6546
  safety_rate: 'safetyRate',
6493
6547
  penalty_minutes: 'penaltyMinutes',
6494
6548
  game_time: 'gameTime',
6495
6549
  plus_minus: 'plusMinus',
6496
- yellow_cards: 'yellowCards',
6497
- red_cards: 'redCards',
6498
6550
  fouls: 'fouls',
6551
+ minor_penalties: 'minorPenalties',
6552
+ major_penalties: 'majorPenalties',
6553
+ match_penalties: 'matchPenalties',
6554
+ penalty_fouls: 'penaltyFouls',
6555
+ turnovers: 'turnovers',
6556
+ attack_fouls: 'attackFouls',
6499
6557
  personal_fouls: 'personalFouls',
6500
- total_fouls: 'totalFouls',
6558
+ drawn_fouls: 'drawnFouls',
6559
+ drawn_turnovers: 'drawnTurnovers',
6560
+ yellow_cards: 'yellowCards',
6561
+ red_cards: 'redCards',
6501
6562
  losses: 'losses',
6502
6563
  steals: 'steals',
6503
- drawn_fouls: 'drawnFouls',
6504
6564
  pp_free_kick_goals: 'ppFreeKickGoals',
6505
6565
  pp_free_kick_on_goals: 'ppFreeKickOnGoals',
6506
6566
  pp_free_kick_misses: 'ppFreeKickMisses',
@@ -6523,8 +6583,65 @@
6523
6583
  ev_corner_misses: 'evCornerMisses',
6524
6584
  corner_passes: 'cornerPasses',
6525
6585
  corner_selfs: 'cornerSelfs',
6526
- total_corners: 'totalCorners',
6586
+ tackles: 'tackles',
6587
+ player_efficiency: 'playerEfficiency',
6588
+ pp_shots: 'ppShots',
6589
+ ev_shots: 'evShots',
6590
+ sh_shots: 'shShots',
6591
+ pp_goals_percent: 'ppGoalsPercent',
6592
+ sh_goals_percent: 'shGoalsPercent',
6593
+ ev_goals_percent: 'evGoalsPercent',
6594
+ total_pp_goals: 'totalPpGoals',
6595
+ total_sh_goals: 'totalShGoals',
6596
+ total_ev_goals: 'totalEvGoals',
6597
+ goals: 'goals',
6598
+ total_goals: 'totalGoals',
6599
+ total_counterattack_goals: 'totalCounterAttackGoals',
6600
+ total_maneuver_goals: 'totalManeuverGoals',
6601
+ total_center_forward_goals: 'totalCenterForwardGoals',
6602
+ total_in_game_goals: 'totalInGameGoals',
6603
+ in_game_shot_misses: 'inGameShotMisses',
6604
+ counterattack_shot_misses: 'counterAttackShotMisses',
6605
+ center_forward_shot_misses: 'centerForwardShotMisses',
6606
+ total_pp_shot_misses: 'totalPpShotMisses',
6607
+ free_kick_shot_misses: 'freeKickShotMisses',
6608
+ shot_misses: 'shotMisses',
6609
+ 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
+ in_game_shots_on_goals: 'inGameShotsOnGoals',
6614
+ shots_on_goal: 'shotsOnGoal',
6615
+ shots_blocked: 'shotsBlocked',
6616
+ shots: 'shots',
6617
+ shots_on_goal_percent: 'shotsOnGoalPercent',
6618
+ total_shots: 'totalShots',
6619
+ goals_percent: 'goalsPercent',
6620
+ total_goals_percent: 'totalGoalsPercent',
6621
+ face_offs: 'faceOffs',
6622
+ face_off_percent: 'faceOffPercent',
6623
+ total_free_kick_goals: 'totalFreeKickGoals',
6527
6624
  total_free_kicks: 'totalFreeKicks',
6625
+ total_corner_goals: 'totalCornerGoals',
6626
+ total_corners: 'totalCorners',
6627
+ total_fouls: 'totalFouls',
6628
+ shootout_shots: 'shootoutShots',
6629
+ shootout_goals_percent: 'shootoutGoalsPercent',
6630
+ /*goalie stat*/
6631
+ counterattack_saves: 'counterAttackSaves',
6632
+ center_forward_saves: 'centerForwardSaves',
6633
+ free_kick_saves: 'freeKickSaves',
6634
+ in_game_saves: 'inGameSaves',
6635
+ total_sh_saves: 'totalShSaves',
6636
+ saves: 'saves',
6637
+ total_saves: 'totalSaves',
6638
+ shootout_shots_against: 'shootoutShotsAgainst',
6639
+ shootout_saves_percent: 'shootoutSavesPercent',
6640
+ game_shots_against: 'gameShotsAgainst',
6641
+ saves_percent: 'savesPercent',
6642
+ total_shots_against: 'totalShotsAgainst',
6643
+ total_saves_percent: 'totalSavesPercent',
6644
+ total_sh_goals_against: 'totalShGoalsAgainst',
6528
6645
  newbie: 'newbie',
6529
6646
  rank: 'rank',
6530
6647
  },
@@ -10829,6 +10946,24 @@
10829
10946
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_pass"] = 38] = "corner_pass";
10830
10947
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_self"] = 39] = "corner_self";
10831
10948
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["personal_foul"] = 40] = "personal_foul";
10949
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["counterattack_goal"] = 41] = "counterattack_goal";
10950
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["counterattack_on_goal"] = 42] = "counterattack_on_goal";
10951
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["counterattack_miss"] = 43] = "counterattack_miss";
10952
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["counterattack_save"] = 44] = "counterattack_save";
10953
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["maneuver_goal"] = 45] = "maneuver_goal";
10954
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["maneuver_on_goal"] = 46] = "maneuver_on_goal";
10955
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["maneuver_miss"] = 47] = "maneuver_miss";
10956
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["maneuver_save"] = 48] = "maneuver_save";
10957
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["center_forward_goal"] = 49] = "center_forward_goal";
10958
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["center_forward_on_goal"] = 50] = "center_forward_on_goal";
10959
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["center_forward_miss"] = 51] = "center_forward_miss";
10960
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["center_forward_save"] = 52] = "center_forward_save";
10961
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_save"] = 53] = "free_kick_save";
10962
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_save"] = 54] = "corner_save";
10963
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["tackle"] = 55] = "tackle";
10964
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_foul"] = 56] = "penalty_foul";
10965
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["attack_foul"] = 57] = "attack_foul";
10966
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["turnover"] = 58] = "turnover";
10832
10967
  })(exports.WaterpoloGameLogTypes || (exports.WaterpoloGameLogTypes = {}));
10833
10968
  exports.WaterpoloAdvantageTypes = void 0;
10834
10969
  (function (WaterpoloAdvantageTypes) {
@@ -10876,7 +11011,8 @@
10876
11011
  });
10877
11012
  WaterpoloGameLog.prototype.isScoreType = function () {
10878
11013
  return [exports.WaterpoloGameLogTypes.goal, exports.WaterpoloGameLogTypes.shootout_goal, exports.WaterpoloGameLogTypes.after_game_shootout_goal,
10879
- exports.WaterpoloGameLogTypes.free_kick_goal, exports.WaterpoloGameLogTypes.corner_goal].indexOf(this.logType) > -1;
11014
+ exports.WaterpoloGameLogTypes.free_kick_goal, exports.WaterpoloGameLogTypes.corner_goal,
11015
+ exports.WaterpoloGameLogTypes.counterattack_goal, exports.WaterpoloGameLogTypes.maneuver_goal, exports.WaterpoloGameLogTypes.center_forward_goal].indexOf(this.logType) > -1;
10880
11016
  };
10881
11017
  WaterpoloGameLog.prototype.isPenaltyType = function () {
10882
11018
  return [
@@ -10885,7 +11021,8 @@
10885
11021
  };
10886
11022
  WaterpoloGameLog.prototype.isFoulType = function () {
10887
11023
  return [
10888
- exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty, exports.WaterpoloGameLogTypes.personal_foul, exports.WaterpoloGameLogTypes.foul
11024
+ exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty,
11025
+ exports.WaterpoloGameLogTypes.personal_foul, exports.WaterpoloGameLogTypes.foul, exports.WaterpoloGameLogTypes.attack_foul
10889
11026
  ].indexOf(this.logType) > -1;
10890
11027
  };
10891
11028
  WaterpoloGameLog.prototype.isAfter = function (log) {
@@ -10948,27 +11085,154 @@
10948
11085
  enumerable: false,
10949
11086
  configurable: true
10950
11087
  });
10951
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoal", {
11088
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "gameMinutes", {
10952
11089
  get: function () {
10953
- return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
10954
- (this.evCornerOnGoals || 0) + (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
10955
- (this.evFreeKickOnGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
11090
+ return Math.floor(this.gameTime / 60);
10956
11091
  },
10957
11092
  enumerable: false,
10958
11093
  configurable: true
10959
11094
  });
10960
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsBlocked", {
11095
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "penaltyTime", {
10961
11096
  get: function () {
10962
- return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
11097
+ if (!this.penaltyMinutes) {
11098
+ return '00:00';
11099
+ }
11100
+ var minutes = Math.floor(this.penaltyMinutes / 60);
11101
+ var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
11102
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
10963
11103
  },
10964
11104
  enumerable: false,
10965
11105
  configurable: true
10966
11106
  });
10967
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shotMisses", {
11107
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "assists", {
11108
+ get: function () {
11109
+ return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
11110
+ },
11111
+ enumerable: false,
11112
+ configurable: true
11113
+ });
11114
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCounterAttackGoals", {
11115
+ get: function () {
11116
+ return (this.ppCounterAttackGoals || 0) + (this.evCounterAttackGoals || 0) + (this.shCounterAttackGoals || 0);
11117
+ },
11118
+ enumerable: false,
11119
+ configurable: true
11120
+ });
11121
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "ppCounterAttackShots", {
11122
+ get: function () {
11123
+ return (this.ppCounterAttackOnGoals || 0) + (this.ppCounterAttackMisses || 0);
11124
+ },
11125
+ enumerable: false,
11126
+ configurable: true
11127
+ });
11128
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shCounterAttackShots", {
11129
+ get: function () {
11130
+ return (this.shCounterAttackOnGoals || 0) + (this.shCounterAttackMisses || 0);
11131
+ },
11132
+ enumerable: false,
11133
+ configurable: true
11134
+ });
11135
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "evCounterAttackShots", {
11136
+ get: function () {
11137
+ return (this.evCounterAttackOnGoals || 0) + (this.evCounterAttackMisses || 0);
11138
+ },
11139
+ enumerable: false,
11140
+ configurable: true
11141
+ });
11142
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackShotMisses", {
11143
+ get: function () {
11144
+ return (this.ppCounterAttackMisses || 0) + (this.shCounterAttackMisses || 0) + (this.evCounterAttackMisses || 0);
11145
+ },
11146
+ enumerable: false,
11147
+ configurable: true
11148
+ });
11149
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackShotOnGoals", {
11150
+ get: function () {
11151
+ return (this.ppCounterAttackOnGoals || 0) + (this.shCounterAttackOnGoals || 0) + (this.evCounterAttackOnGoals || 0);
11152
+ },
11153
+ enumerable: false,
11154
+ configurable: true
11155
+ });
11156
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalManeuverGoals", {
11157
+ get: function () {
11158
+ return (this.ppManeuverGoals || 0) + (this.shManeuverGoals || 0) + (this.evManeuverGoals || 0);
11159
+ },
11160
+ enumerable: false,
11161
+ configurable: true
11162
+ });
11163
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "ppManeuverShots", {
11164
+ get: function () {
11165
+ return (this.ppManeuverOnGoals || 0) + (this.ppManeuverMisses || 0);
11166
+ },
11167
+ enumerable: false,
11168
+ configurable: true
11169
+ });
11170
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shManeuverShots", {
11171
+ get: function () {
11172
+ return (this.shManeuverOnGoals || 0) + (this.shManeuverMisses || 0);
11173
+ },
11174
+ enumerable: false,
11175
+ configurable: true
11176
+ });
11177
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "evManeuverShots", {
11178
+ get: function () {
11179
+ return (this.evManeuverOnGoals || 0) + (this.evManeuverMisses || 0);
11180
+ },
11181
+ enumerable: false,
11182
+ configurable: true
11183
+ });
11184
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverShotMisses", {
11185
+ get: function () {
11186
+ return (this.ppManeuverMisses || 0) + (this.shManeuverMisses || 0) + (this.evManeuverMisses || 0);
11187
+ },
11188
+ enumerable: false,
11189
+ configurable: true
11190
+ });
11191
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverShotOnGoals", {
11192
+ get: function () {
11193
+ return (this.ppManeuverOnGoals || 0) + (this.shManeuverOnGoals || 0) + (this.evManeuverOnGoals || 0);
11194
+ },
11195
+ enumerable: false,
11196
+ configurable: true
11197
+ });
11198
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCenterForwardGoals", {
10968
11199
  get: function () {
10969
- return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0) +
10970
- (this.evCornerMisses || 0) + (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) +
10971
- (this.evFreeKickMisses || 0) + (this.ppFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
11200
+ return (this.ppCenterForwardGoals || 0) + (this.shCenterForwardGoals || 0) + (this.evCenterForwardGoals || 0);
11201
+ },
11202
+ enumerable: false,
11203
+ configurable: true
11204
+ });
11205
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "ppCenterForwardShots", {
11206
+ get: function () {
11207
+ return (this.ppCenterForwardOnGoals || 0) + (this.ppCenterForwardMisses || 0);
11208
+ },
11209
+ enumerable: false,
11210
+ configurable: true
11211
+ });
11212
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shCenterForwardShots", {
11213
+ get: function () {
11214
+ return (this.shCenterForwardOnGoals || 0) + (this.shCenterForwardMisses || 0);
11215
+ },
11216
+ enumerable: false,
11217
+ configurable: true
11218
+ });
11219
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "evCenterForwardShots", {
11220
+ get: function () {
11221
+ return (this.evCenterForwardOnGoals || 0) + (this.evCenterForwardMisses || 0);
11222
+ },
11223
+ enumerable: false,
11224
+ configurable: true
11225
+ });
11226
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardShotMisses", {
11227
+ get: function () {
11228
+ return (this.ppCenterForwardMisses || 0) + (this.shCenterForwardMisses || 0) + (this.evCenterForwardMisses || 0);
11229
+ },
11230
+ enumerable: false,
11231
+ configurable: true
11232
+ });
11233
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardShotOnGoals", {
11234
+ get: function () {
11235
+ return (this.ppCenterForwardOnGoals || 0) + (this.shCenterForwardOnGoals || 0) + (this.evCenterForwardOnGoals || 0);
10972
11236
  },
10973
11237
  enumerable: false,
10974
11238
  configurable: true
@@ -10976,8 +11240,9 @@
10976
11240
  Object.defineProperty(WaterpoloGameStatistic.prototype, "ppShots", {
10977
11241
  get: function () {
10978
11242
  return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
11243
+ (this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0) +
10979
11244
  (this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) +
10980
- (this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0);
11245
+ this.ppCounterAttackShots + this.ppManeuverShots + this.ppCenterForwardShots;
10981
11246
  },
10982
11247
  enumerable: false,
10983
11248
  configurable: true
@@ -10985,8 +11250,9 @@
10985
11250
  Object.defineProperty(WaterpoloGameStatistic.prototype, "evShots", {
10986
11251
  get: function () {
10987
11252
  return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
11253
+ (this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0) +
10988
11254
  (this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) +
10989
- (this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0);
11255
+ this.evCounterAttackShots + this.evManeuverShots + this.evCenterForwardShots;
10990
11256
  },
10991
11257
  enumerable: false,
10992
11258
  configurable: true
@@ -10994,74 +11260,126 @@
10994
11260
  Object.defineProperty(WaterpoloGameStatistic.prototype, "shShots", {
10995
11261
  get: function () {
10996
11262
  return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
11263
+ (this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0) +
10997
11264
  (this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
10998
- (this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
11265
+ this.shCounterAttackShots + this.shManeuverShots + this.shCenterForwardShots;
10999
11266
  },
11000
11267
  enumerable: false,
11001
11268
  configurable: true
11002
11269
  });
11003
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shots", {
11270
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoals", {
11004
11271
  get: function () {
11005
- return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
11272
+ return (this.shGoals || 0) + (this.shFreeKickGoals || 0) + (this.shCornerGoals || 0) +
11273
+ (this.shCounterAttackGoals || 0) + (this.shManeuverGoals || 0) + (this.shCenterForwardGoals || 0);
11006
11274
  },
11007
11275
  enumerable: false,
11008
11276
  configurable: true
11009
11277
  });
11010
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoalPercent", {
11278
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvGoals", {
11011
11279
  get: function () {
11012
- if (!this.shots || !this.shotsOnGoal) {
11013
- return 0;
11014
- }
11015
- return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
11280
+ return (this.evGoals || 0) + (this.evFreeKickGoals || 0) + (this.evCornerGoals || 0) +
11281
+ (this.evCounterAttackGoals || 0) + (this.evManeuverGoals || 0) + (this.evCenterForwardGoals || 0);
11016
11282
  },
11017
11283
  enumerable: false,
11018
11284
  configurable: true
11019
11285
  });
11020
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
11286
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPpGoals", {
11021
11287
  get: function () {
11022
- return this.shots + (this.shootoutAttempts || 0);
11288
+ return (this.ppGoals || 0) + (this.ppFreeKickGoals || 0) + (this.ppCornerGoals || 0) +
11289
+ (this.ppCounterAttackGoals || 0) + (this.ppManeuverGoals || 0) + (this.ppCenterForwardGoals || 0);
11023
11290
  },
11024
11291
  enumerable: false,
11025
11292
  configurable: true
11026
11293
  });
11027
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoals", {
11294
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
11028
11295
  get: function () {
11029
- return (this.shGoals || 0) + (this.shFreeKickGoals || 0) + (this.shCornerGoals || 0);
11296
+ return this.totalShGoals + this.totalEvGoals + this.totalPpGoals;
11030
11297
  },
11031
11298
  enumerable: false,
11032
11299
  configurable: true
11033
11300
  });
11034
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvGoals", {
11301
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoals", {
11035
11302
  get: function () {
11036
- return (this.evGoals || 0) + (this.evFreeKickGoals || 0) + (this.evCornerGoals || 0);
11303
+ return this.goals + (this.shootoutGoals || 0);
11037
11304
  },
11038
11305
  enumerable: false,
11039
11306
  configurable: true
11040
11307
  });
11041
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPpGoals", {
11308
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutShots", {
11042
11309
  get: function () {
11043
- return (this.ppGoals || 0) + (this.ppFreeKickGoals || 0) + (this.ppCornerGoals || 0);
11310
+ return (this.shootoutGoals || 0) + (this.shootoutAttempts || 0);
11044
11311
  },
11045
11312
  enumerable: false,
11046
11313
  configurable: true
11047
11314
  });
11048
- Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
11315
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameShotMisses", {
11049
11316
  get: function () {
11050
- return this.totalEvGoals + this.totalPpGoals + this.totalShGoals;
11317
+ return (this.ppShotMisses || 0) + (this.evShotMisses || 0) + (this.shShotMisses || 0) +
11318
+ this.counterAttackShotMisses + this.maneuverShotMisses + this.centerForwardShotMisses;
11051
11319
  },
11052
11320
  enumerable: false,
11053
11321
  configurable: true
11054
11322
  });
11055
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoals", {
11323
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotMisses", {
11056
11324
  get: function () {
11057
- return this.goals + (this.shootoutGoals || 0);
11325
+ return (this.ppFreeKickMisses || 0) + (this.evFreeKickMisses || 0) + (this.shFreeKickMisses || 0) +
11326
+ (this.ppCornerMisses || 0) + (this.evCornerMisses || 0) + (this.shCornerMisses || 0) +
11327
+ this.inGameShotMisses;
11058
11328
  },
11059
11329
  enumerable: false,
11060
11330
  configurable: true
11061
11331
  });
11062
- Object.defineProperty(WaterpoloGameStatistic.prototype, "assists", {
11332
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPpShotMisses", {
11063
11333
  get: function () {
11064
- return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
11334
+ return (this.ppShotMisses || 0) + (this.ppFreeKickMisses || 0) + (this.ppCornerMisses || 0) +
11335
+ (this.ppCounterAttackMisses || 0) + (this.ppManeuverMisses || 0) + (this.ppCenterForwardMisses || 0);
11336
+ },
11337
+ enumerable: false,
11338
+ configurable: true
11339
+ });
11340
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoal", {
11341
+ get: function () {
11342
+ return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
11343
+ (this.ppFreeKickOnGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0) +
11344
+ (this.ppCornerOnGoals || 0) + (this.evCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
11345
+ this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals;
11346
+ },
11347
+ enumerable: false,
11348
+ configurable: true
11349
+ });
11350
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPpShotsOnGoal", {
11351
+ get: function () {
11352
+ return (this.ppShotsOnGoal || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppCornerOnGoals || 0) +
11353
+ (this.ppCounterAttackOnGoals || 0) + (this.ppManeuverOnGoals || 0) + (this.ppCenterForwardOnGoals || 0);
11354
+ },
11355
+ enumerable: false,
11356
+ configurable: true
11357
+ });
11358
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameShotsOnGoals", {
11359
+ get: function () {
11360
+ return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
11361
+ this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals;
11362
+ },
11363
+ enumerable: false,
11364
+ configurable: true
11365
+ });
11366
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsBlocked", {
11367
+ get: function () {
11368
+ return (this.ppShotsBlocked || 0) + (this.evShotsBlocked || 0) + (this.shShotsBlocked || 0);
11369
+ },
11370
+ enumerable: false,
11371
+ configurable: true
11372
+ });
11373
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shots", {
11374
+ get: function () {
11375
+ return this.ppShots + this.evShots + this.shShots;
11376
+ },
11377
+ enumerable: false,
11378
+ configurable: true
11379
+ });
11380
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
11381
+ get: function () {
11382
+ return this.shots + (this.shootoutAttempts || 0);
11065
11383
  },
11066
11384
  enumerable: false,
11067
11385
  configurable: true
@@ -11073,95 +11391,124 @@
11073
11391
  enumerable: false,
11074
11392
  configurable: true
11075
11393
  });
11076
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shootOuts", {
11394
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickShotMisses", {
11077
11395
  get: function () {
11078
- return (this.shootoutAttempts || 0) + (this.shootoutGoals || 0);
11396
+ return (this.ppFreeKickMisses || 0) + (this.evFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
11079
11397
  },
11080
11398
  enumerable: false,
11081
11399
  configurable: true
11082
11400
  });
11083
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsAgainst", {
11401
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickOnGoals", {
11084
11402
  get: function () {
11085
- return (this.saves || 0) + (this.goalsAgainst || 0);
11403
+ return (this.ppFreeKickOnGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
11086
11404
  },
11087
11405
  enumerable: false,
11088
11406
  configurable: true
11089
11407
  });
11090
- Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutShotsAgainst", {
11408
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFreeKickGoals", {
11091
11409
  get: function () {
11092
- return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
11410
+ return (this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0);
11093
11411
  },
11094
11412
  enumerable: false,
11095
11413
  configurable: true
11096
11414
  });
11097
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShotsAgainst", {
11415
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFreeKicks", {
11098
11416
  get: function () {
11099
- return this.shotsAgainst + this.shootoutShotsAgainst;
11417
+ return (this.freeKickSelfs || 0) + (this.freeKickPasses || 0) +
11418
+ this.freeKickShotMisses + this.freeKickOnGoals + this.totalFreeKickGoals;
11100
11419
  },
11101
11420
  enumerable: false,
11102
11421
  configurable: true
11103
11422
  });
11104
- Object.defineProperty(WaterpoloGameStatistic.prototype, "savesPercent", {
11423
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCornerGoals", {
11105
11424
  get: function () {
11106
- if (!this.shotsAgainst || !this.saves) {
11107
- return 0;
11108
- }
11109
- return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
11425
+ return (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
11110
11426
  },
11111
11427
  enumerable: false,
11112
11428
  configurable: true
11113
11429
  });
11114
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSaves", {
11430
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCorners", {
11115
11431
  get: function () {
11116
- return (this.saves || 0) + (this.shootoutSaves || 0);
11432
+ return (this.cornerSelfs || 0) + (this.cornerPasses || 0) +
11433
+ (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) + (this.evCornerOnGoals || 0) +
11434
+ (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) + (this.evCornerMisses || 0) +
11435
+ this.totalCornerGoals;
11117
11436
  },
11118
11437
  enumerable: false,
11119
11438
  configurable: true
11120
11439
  });
11121
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSavesPercent", {
11440
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFouls", {
11122
11441
  get: function () {
11123
- if (!this.totalShotsAgainst || !this.totalSaves) {
11442
+ return (this.fouls || 0) + (this.penaltyFouls || 0) + (this.attackFouls || 0) + (this.personalFouls || 0);
11443
+ },
11444
+ enumerable: false,
11445
+ configurable: true
11446
+ });
11447
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoals", {
11448
+ get: function () {
11449
+ return (this.shGoals || 0) + (this.evGoals || 0) + (this.ppGoals || 0);
11450
+ },
11451
+ enumerable: false,
11452
+ configurable: true
11453
+ });
11454
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalInGameGoals", {
11455
+ get: function () {
11456
+ return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.inGameGoals;
11457
+ },
11458
+ enumerable: false,
11459
+ configurable: true
11460
+ });
11461
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "ppGoalsPercent", {
11462
+ get: function () {
11463
+ if (!this.totalPpGoals || !this.ppShots) {
11124
11464
  return 0;
11125
11465
  }
11126
- return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
11466
+ return Math.round(1000 * this.totalPpGoals / this.ppShots) / 10;
11127
11467
  },
11128
11468
  enumerable: false,
11129
11469
  configurable: true
11130
11470
  });
11131
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoalsAgainst", {
11471
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "evGoalsPercent", {
11132
11472
  get: function () {
11133
- return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
11473
+ if (!this.totalEvGoals || !this.evShots) {
11474
+ return 0;
11475
+ }
11476
+ return Math.round(1000 * this.totalEvGoals / this.evShots) / 10;
11134
11477
  },
11135
11478
  enumerable: false,
11136
11479
  configurable: true
11137
11480
  });
11138
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFouls", {
11481
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shGoalsPercent", {
11139
11482
  get: function () {
11140
- return (this.fouls || 0) + (this.personalFouls || 0);
11483
+ if (!this.totalShGoals || !this.shShots) {
11484
+ return 0;
11485
+ }
11486
+ return Math.round(1000 * this.totalShGoals / this.shShots) / 10;
11141
11487
  },
11142
11488
  enumerable: false,
11143
11489
  configurable: true
11144
11490
  });
11145
- Object.defineProperty(WaterpoloGameStatistic.prototype, "gameMinutes", {
11491
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoalPercent", {
11146
11492
  get: function () {
11147
- return Math.floor(this.gameTime / 60);
11493
+ if (!this.shotsOnGoal || !this.shots) {
11494
+ return 0;
11495
+ }
11496
+ return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
11148
11497
  },
11149
11498
  enumerable: false,
11150
11499
  configurable: true
11151
11500
  });
11152
- Object.defineProperty(WaterpoloGameStatistic.prototype, "penaltyTime", {
11501
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "goalsPercent", {
11153
11502
  get: function () {
11154
- if (!this.penaltyMinutes) {
11155
- return '00:00';
11503
+ if (!this.goals || !this.shots) {
11504
+ return 0;
11156
11505
  }
11157
- var minutes = Math.floor(this.penaltyMinutes / 60);
11158
- var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
11159
- return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
11506
+ return Math.round(1000 * this.goals / this.shots) / 10;
11160
11507
  },
11161
11508
  enumerable: false,
11162
11509
  configurable: true
11163
11510
  });
11164
- Object.defineProperty(WaterpoloGameStatistic.prototype, "goalsPercent", {
11511
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoalsPercent", {
11165
11512
  get: function () {
11166
11513
  if (!this.totalGoals || !this.totalShots) {
11167
11514
  return 0;
@@ -11181,6 +11528,16 @@
11181
11528
  enumerable: false,
11182
11529
  configurable: true
11183
11530
  });
11531
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutGoalsPercent", {
11532
+ get: function () {
11533
+ if (!this.shootoutGoals || !this.shootoutShots) {
11534
+ return 0;
11535
+ }
11536
+ return Math.round(1000 * this.shootoutGoals / this.shootoutShots) / 10;
11537
+ },
11538
+ enumerable: false,
11539
+ configurable: true
11540
+ });
11184
11541
  Object.defineProperty(WaterpoloGameStatistic.prototype, "goalpass", {
11185
11542
  get: function () {
11186
11543
  return (this.totalGoals || 0) + (this.assists || 0);
@@ -11188,22 +11545,149 @@
11188
11545
  enumerable: false,
11189
11546
  configurable: true
11190
11547
  });
11191
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFreeKicks", {
11548
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSaves", {
11549
+ /*goalie stat */
11192
11550
  get: function () {
11193
- return (this.freeKickPasses || 0) + (this.freeKickSelfs || 0) +
11194
- (this.ppFreeKickGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickMisses || 0) +
11195
- (this.evFreeKickGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickMisses || 0) +
11196
- (this.shFreeKickGoals || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickMisses || 0);
11551
+ return (this.ppCounterAttackSaves || 0) + (this.shCounterAttackSaves || 0) + (this.evCounterAttackSaves || 0);
11197
11552
  },
11198
11553
  enumerable: false,
11199
11554
  configurable: true
11200
11555
  });
11201
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCorners", {
11556
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardSaves", {
11557
+ get: function () {
11558
+ return (this.ppCenterForwardSaves || 0) + (this.shCenterForwardSaves || 0) + (this.evCenterForwardSaves || 0);
11559
+ },
11560
+ enumerable: false,
11561
+ configurable: true
11562
+ });
11563
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverSaves", {
11564
+ get: function () {
11565
+ return (this.ppManeuverSaves || 0) + (this.shManeuverSaves || 0) + (this.evManeuverSaves || 0);
11566
+ },
11567
+ enumerable: false,
11568
+ configurable: true
11569
+ });
11570
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickSaves", {
11571
+ get: function () {
11572
+ return (this.ppFreeKickSaves || 0) + (this.shFreeKickSaves || 0) + (this.evFreeKickSaves || 0);
11573
+ },
11574
+ enumerable: false,
11575
+ configurable: true
11576
+ });
11577
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerSaves", {
11578
+ get: function () {
11579
+ return (this.ppCornerSaves || 0) + (this.shCornerSaves || 0) + (this.evCornerSaves || 0);
11580
+ },
11581
+ enumerable: false,
11582
+ configurable: true
11583
+ });
11584
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSaves", {
11585
+ get: function () {
11586
+ return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
11587
+ (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
11588
+ },
11589
+ enumerable: false,
11590
+ configurable: true
11591
+ });
11592
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameSaves", {
11593
+ get: function () {
11594
+ return (this.shSaves || 0) + (this.evSaves || 0) + (this.ppSaves || 0) +
11595
+ this.counterAttackSaves + this.maneuverSaves + this.centerForwardSaves;
11596
+ },
11597
+ enumerable: false,
11598
+ configurable: true
11599
+ });
11600
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "saves", {
11601
+ get: function () {
11602
+ return this.inGameSaves + this.freeKickSaves + this.cornerSaves;
11603
+ },
11604
+ enumerable: false,
11605
+ configurable: true
11606
+ });
11607
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSaves", {
11608
+ get: function () {
11609
+ return this.saves + (this.shootoutSaves || 0);
11610
+ },
11611
+ enumerable: false,
11612
+ configurable: true
11613
+ });
11614
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoalsAgainst", {
11615
+ get: function () {
11616
+ return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
11617
+ (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
11618
+ },
11619
+ enumerable: false,
11620
+ configurable: true
11621
+ });
11622
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoalsAgainst", {
11623
+ get: function () {
11624
+ return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) +
11625
+ (this.centerForwardGoalsAgainst || 0);
11626
+ },
11627
+ enumerable: false,
11628
+ configurable: true
11629
+ });
11630
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutShotsAgainst", {
11631
+ get: function () {
11632
+ return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
11633
+ },
11634
+ enumerable: false,
11635
+ configurable: true
11636
+ });
11637
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "gameGoalsAgainst", {
11638
+ get: function () {
11639
+ return this.inGameGoalsAgainst + (this.freeKickGoalsAgainst || 0) + (this.cornerGoalsAgainst || 0);
11640
+ },
11641
+ enumerable: false,
11642
+ configurable: true
11643
+ });
11644
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoalsAgainst", {
11645
+ get: function () {
11646
+ return this.gameGoalsAgainst + (this.shootoutGoalsAgainst || 0);
11647
+ },
11648
+ enumerable: false,
11649
+ configurable: true
11650
+ });
11651
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "gameShotsAgainst", {
11652
+ get: function () {
11653
+ return this.saves + this.gameGoalsAgainst;
11654
+ },
11655
+ enumerable: false,
11656
+ configurable: true
11657
+ });
11658
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShotsAgainst", {
11659
+ get: function () {
11660
+ return this.gameShotsAgainst + this.shootoutShotsAgainst;
11661
+ },
11662
+ enumerable: false,
11663
+ configurable: true
11664
+ });
11665
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutSavesPercent", {
11666
+ get: function () {
11667
+ if (!this.shootoutSaves || !this.shootoutShotsAgainst) {
11668
+ return 0;
11669
+ }
11670
+ return Math.round(1000 * this.shootoutSaves / this.shootoutShotsAgainst) / 10;
11671
+ },
11672
+ enumerable: false,
11673
+ configurable: true
11674
+ });
11675
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "savesPercent", {
11202
11676
  get: function () {
11203
- return (this.cornerPasses || 0) + (this.cornerSelfs || 0) +
11204
- (this.ppCornerGoals || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerMisses || 0) +
11205
- (this.evCornerGoals || 0) + (this.evCornerOnGoals || 0) + (this.evCornerMisses || 0) +
11206
- (this.shCornerGoals || 0) + (this.shCornerOnGoals || 0) + (this.shCornerMisses || 0);
11677
+ if (!this.saves || !this.gameShotsAgainst) {
11678
+ return 0;
11679
+ }
11680
+ return Math.round(1000 * this.saves / this.gameShotsAgainst) / 10;
11681
+ },
11682
+ enumerable: false,
11683
+ configurable: true
11684
+ });
11685
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSavesPercent", {
11686
+ get: function () {
11687
+ if (!this.totalSaves || !this.totalShotsAgainst) {
11688
+ return 0;
11689
+ }
11690
+ return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
11207
11691
  },
11208
11692
  enumerable: false,
11209
11693
  configurable: true
@@ -11233,9 +11717,39 @@
11233
11717
  sh_shot_misses: 'shShotMisses',
11234
11718
  sh_shots_on_goal: 'shShotsOnGoal',
11235
11719
  sh_shots_blocked: 'shShotsBlocked',
11720
+ pp_total_shots_on_goal: 'ppTotalShotsOnGoal',
11721
+ ev_total_shots_on_goal: 'evTotalShotsOnGoal',
11722
+ sh_total_shots_on_goal: 'shTotalShotsOnGoal',
11236
11723
  pp_goals: 'ppGoals',
11237
11724
  ev_goals: 'evGoals',
11238
11725
  sh_goals: 'shGoals',
11726
+ pp_counterattack_goals: 'ppCounterAttackGoals',
11727
+ pp_counterattack_on_goals: 'ppCounterAttackOnGoals',
11728
+ pp_counterattack_misses: 'ppCounterAttackMisses',
11729
+ ev_counterattack_goals: 'evCounterAttackGoals',
11730
+ ev_counterattack_on_goals: 'evCounterAttackOnGoals',
11731
+ ev_counterattack_misses: 'evCounterAttackMisses',
11732
+ sh_counterattack_goals: 'shCounterAttackGoals',
11733
+ sh_counterattack_on_goals: 'shCounterAttackOnGoals',
11734
+ sh_counterattack_misses: 'shCounterAttackMisses',
11735
+ pp_maneuver_goals: 'ppManeuverGoals',
11736
+ pp_maneuver_on_goals: 'ppManeuverOnGoals',
11737
+ pp_maneuver_misses: 'ppManeuverMisses',
11738
+ ev_maneuver_goals: 'evManeuverGoals',
11739
+ ev_maneuver_on_goals: 'evManeuverOnGoals',
11740
+ ev_maneuver_misses: 'evManeuverMisses',
11741
+ sh_maneuver_goals: 'shManeuverGoals',
11742
+ sh_maneuver_on_goals: 'shManeuverOnGoals',
11743
+ sh_maneuver_misses: 'shManeuverMisses',
11744
+ pp_center_forward_goals: 'ppCenterForwardGoals',
11745
+ pp_center_forward_on_goals: 'ppCenterForwardOnGoals',
11746
+ pp_center_forward_misses: 'ppCenterForwardMisses',
11747
+ ev_center_forward_goals: 'evCenterForwardGoals',
11748
+ ev_center_forward_on_goals: 'evCenterForwardOnGoals',
11749
+ ev_center_forward_misses: 'evCenterForwardMisses',
11750
+ sh_center_forward_goals: 'shCenterForwardGoals',
11751
+ sh_center_forward_on_goals: 'shCenterForwardOnGoals',
11752
+ sh_center_forward_misses: 'shCenterForwardMisses',
11239
11753
  pp_assists: 'ppAssists',
11240
11754
  ev_assists: 'evAssists',
11241
11755
  sh_assists: 'shAssists',
@@ -11246,23 +11760,73 @@
11246
11760
  block_shots: 'blockShots',
11247
11761
  face_off_losses: 'faceOffLosses',
11248
11762
  face_off_wins: 'faceOffWins',
11249
- saves: 'saves',
11250
- shootout_save: 'shootoutSaves',
11763
+ pp_saves: 'ppSaves',
11764
+ sh_saves: 'shSaves',
11765
+ ev_saves: 'evSaves',
11766
+ pp_counterattack_saves: 'ppCounterAttackSaves',
11767
+ sh_counterattack_saves: 'shCounterAttackSaves',
11768
+ ev_counterattack_saves: 'evCounterAttackSaves',
11769
+ pp_maneuver_saves: 'ppManeuverSaves',
11770
+ sh_maneuver_saves: 'shManeuverSaves',
11771
+ ev_maneuver_saves: 'evManeuverSaves',
11772
+ pp_center_forward_saves: 'ppCenterForwardSaves',
11773
+ sh_center_forward_saves: 'shCenterForwardSaves',
11774
+ ev_center_forward_saves: 'evCenterForwardSaves',
11775
+ pp_free_kick_saves: 'ppFreeKickSaves',
11776
+ sh_free_kick_saves: 'shFreeKickSaves',
11777
+ ev_free_kick_saves: 'evFreeKickSaves',
11778
+ pp_corner_saves: 'ppCornerSaves',
11779
+ sh_corner_saves: 'shCornerSaves',
11780
+ ev_corner_saves: 'evCornerSaves',
11781
+ pp_total_game_saves: 'ppTotalGameSaves',
11782
+ sh_total_game_saves: 'shTotalGameSaves',
11783
+ ev_total_game_saves: 'evTotalGameSaves',
11784
+ shootout_saves: 'shootoutSaves',
11251
11785
  after_game_shootout_saves: 'afterGameShootoutSaves',
11786
+ pp_goals_against: 'ppGoalsAgainst',
11787
+ sh_goals_against: 'shGoalsAgainst',
11788
+ ev_goals_against: 'evGoalsAgainst',
11252
11789
  goals_against: 'goalsAgainst',
11790
+ pp_counterattack_goals_against: 'ppCounterAttackGoalsAgainst',
11791
+ sh_counterattack_goals_against: 'shCounterAttackGoalsAgainst',
11792
+ ev_counterattack_goals_against: 'evCounterAttackGoalsAgainst',
11793
+ counterattack_goals_against: 'counterAttackGoalsAgainst',
11794
+ pp_maneuver_goals_against: 'ppManeuverGoalsAgainst',
11795
+ sh_maneuver_goals_against: 'shManeuverGoalsAgainst',
11796
+ ev_maneuver_goals_against: 'evManeuverGoalsAgainst',
11797
+ maneuver_goals_against: 'maneuverGoalsAgainst',
11798
+ pp_center_forward_goals_against: 'ppCenterForwardGoalsAgainst',
11799
+ sh_center_forward_goals_against: 'shCenterForwardGoalsAgainst',
11800
+ ev_center_forward_goals_against: 'evCenterForwardGoalsAgainst',
11801
+ center_forward_goals_against: 'centerForwardGoalsAgainst',
11802
+ pp_free_kick_goals_against: 'ppFreeKickGoalsAgainst',
11803
+ sh_free_kick_goals_against: 'shFreeKickGoalsAgainst',
11804
+ ev_free_kick_goals_against: 'evFreeKickGoalsAgainst',
11805
+ free_kick_goals_against: 'freeKickGoalsAgainst',
11806
+ pp_corner_goals_against: 'ppCornerGoalsAgainst',
11807
+ sh_corner_goals_against: 'shCornerGoalsAgainst',
11808
+ ev_corner_goals_against: 'evCornerGoalsAgainst',
11809
+ corner_goals_against: 'cornerGoalsAgainst',
11253
11810
  shootout_goals_against: 'shootoutGoalsAgainst',
11254
11811
  after_game_shootout_goals_against: 'afterGameShootoutGoalsAgainst',
11255
11812
  safety_rate: 'safetyRate',
11256
11813
  penalty_minutes: 'penaltyMinutes',
11257
11814
  game_time: 'gameTime',
11258
11815
  plus_minus: 'plusMinus',
11259
- yellow_cards: 'yellowCards',
11260
- red_cards: 'redCards',
11261
11816
  fouls: 'fouls',
11817
+ minor_penalties: 'minorPenalties',
11818
+ major_penalties: 'majorPenalties',
11819
+ match_penalties: 'matchPenalties',
11820
+ penalty_fouls: 'penaltyFouls',
11821
+ turnovers: 'turnovers',
11822
+ attack_fouls: 'attackFouls',
11262
11823
  personal_fouls: 'personalFouls',
11824
+ drawn_fouls: 'drawnFouls',
11825
+ drawn_turnovers: 'drawnTurnovers',
11826
+ yellow_cards: 'yellowCards',
11827
+ red_cards: 'redCards',
11263
11828
  losses: 'losses',
11264
11829
  steals: 'steals',
11265
- drawn_fouls: 'drawnFouls',
11266
11830
  pp_free_kick_goals: 'ppFreeKickGoals',
11267
11831
  pp_free_kick_on_goals: 'ppFreeKickOnGoals',
11268
11832
  pp_free_kick_misses: 'ppFreeKickMisses',
@@ -11284,7 +11848,9 @@
11284
11848
  ev_corner_on_goals: 'evCornerOnGoals',
11285
11849
  ev_corner_misses: 'evCornerMisses',
11286
11850
  corner_passes: 'cornerPasses',
11287
- corner_selfs: 'cornerSelfs'
11851
+ corner_selfs: 'cornerSelfs',
11852
+ tackles: 'tackles',
11853
+ player_efficiency: 'playerEfficiency'
11288
11854
  },
11289
11855
  relation: {
11290
11856
  updatedAt: DateTimeField,