@mtgame/core 0.1.139 → 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.
@@ -5104,19 +5104,32 @@ WaterpoloStatistic = __decorate([
5104
5104
  position_attack_shots: 'positionAttackShots',
5105
5105
  position_attack_goals_percent: 'positionAttackGoalsPercent',
5106
5106
  total_counterattack_goals: 'totalCounterAttackGoals',
5107
+ counterattack_shot_on_goals: 'counterAttackShotOnGoals',
5108
+ counterattack_shot_misses: 'counterAttackShotMisses',
5109
+ counterattack_shots: 'counterAttackShots',
5110
+ counterattack_goals_percent: 'counterAttackGoalsPercent',
5107
5111
  total_maneuver_goals: 'totalManeuverGoals',
5112
+ maneuver_shot_misses: 'maneuverShotMisses',
5113
+ maneuver_shot_on_goals: 'maneuverShotOnGoals',
5114
+ maneuver_shots: 'maneuverShots',
5115
+ maneuver_goals_percent: 'maneuverGoalsPercent',
5108
5116
  total_center_forward_goals: 'totalCenterForwardGoals',
5117
+ center_forward_shot_on_goals: 'centerForwardShotOnGoals',
5118
+ center_forward_shot_misses: 'centerForwardShotMisses',
5119
+ center_forward_shots: 'centerForwardShots',
5120
+ center_forward_goals_percent: 'centerForwardGoalsPercent',
5121
+ total_free_kick_goals: 'totalFreeKickGoals',
5122
+ free_kick_shot_misses: 'freeKickShotMisses',
5123
+ free_kick_on_goals: 'freeKickOnGoals',
5124
+ total_free_kicks: 'totalFreeKicks',
5125
+ free_kick_goals_percent: 'freeKickGoalsPercent',
5126
+ total_corner_goals: 'totalCornerGoals',
5127
+ total_corners: 'totalCorners',
5109
5128
  total_in_game_goals: 'totalInGameGoals',
5110
5129
  in_game_shot_misses: 'inGameShotMisses',
5111
- counterattack_shot_misses: 'counterAttackShotMisses',
5112
- center_forward_shot_misses: 'centerForwardShotMisses',
5113
5130
  total_pp_shot_misses: 'totalPpShotMisses',
5114
- free_kick_shot_misses: 'freeKickShotMisses',
5115
5131
  shot_misses: 'shotMisses',
5116
5132
  total_pp_shots_on_goal: 'totalPpShotsOnGoal',
5117
- counterattack_shot_on_goals: 'counterAttackShotOnGoals',
5118
- center_forward_shot_on_goals: 'centerForwardShotOnGoals',
5119
- free_kick_on_goals: 'freeKickOnGoals',
5120
5133
  in_game_shots_on_goals: 'inGameShotsOnGoals',
5121
5134
  shots_on_goal: 'shotsOnGoal',
5122
5135
  shots_blocked: 'shotsBlocked',
@@ -5127,10 +5140,6 @@ WaterpoloStatistic = __decorate([
5127
5140
  total_goals_percent: 'totalGoalsPercent',
5128
5141
  face_offs: 'faceOffs',
5129
5142
  face_off_percent: 'faceOffPercent',
5130
- total_free_kick_goals: 'totalFreeKickGoals',
5131
- total_free_kicks: 'totalFreeKicks',
5132
- total_corner_goals: 'totalCornerGoals',
5133
- total_corners: 'totalCorners',
5134
5143
  total_fouls: 'totalFouls',
5135
5144
  total_penalties: 'totalPenalties',
5136
5145
  shootout_shots: 'shootoutShots',
@@ -8789,6 +8798,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8789
8798
  get counterAttackShotOnGoals() {
8790
8799
  return (this.ppCounterAttackOnGoals || 0) + (this.shCounterAttackOnGoals || 0) + (this.evCounterAttackOnGoals || 0);
8791
8800
  }
8801
+ get counterAttackShots() {
8802
+ return this.counterAttackShotMisses + this.counterAttackShotOnGoals;
8803
+ }
8804
+ get counterAttackGoalsPercent() {
8805
+ if (!this.totalCounterAttackGoals || !this.counterAttackShots) {
8806
+ return 0;
8807
+ }
8808
+ return Math.round(1000 * this.totalCounterAttackGoals / this.counterAttackShots) / 10;
8809
+ }
8792
8810
  get totalManeuverGoals() {
8793
8811
  return (this.ppManeuverGoals || 0) + (this.shManeuverGoals || 0) + (this.evManeuverGoals || 0);
8794
8812
  }
@@ -8807,6 +8825,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8807
8825
  get maneuverShotOnGoals() {
8808
8826
  return (this.ppManeuverOnGoals || 0) + (this.shManeuverOnGoals || 0) + (this.evManeuverOnGoals || 0);
8809
8827
  }
8828
+ get maneuverShots() {
8829
+ return this.maneuverShotMisses + this.maneuverShotOnGoals;
8830
+ }
8831
+ get maneuverGoalsPercent() {
8832
+ if (!this.totalManeuverGoals || !this.maneuverShots) {
8833
+ return 0;
8834
+ }
8835
+ return Math.round(1000 * this.totalManeuverGoals / this.maneuverShots) / 10;
8836
+ }
8810
8837
  get totalCenterForwardGoals() {
8811
8838
  return (this.ppCenterForwardGoals || 0) + (this.shCenterForwardGoals || 0) + (this.evCenterForwardGoals || 0);
8812
8839
  }
@@ -8825,6 +8852,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8825
8852
  get centerForwardShotOnGoals() {
8826
8853
  return (this.ppCenterForwardOnGoals || 0) + (this.shCenterForwardOnGoals || 0) + (this.evCenterForwardOnGoals || 0);
8827
8854
  }
8855
+ get centerForwardShots() {
8856
+ return this.centerForwardShotMisses + this.centerForwardShotOnGoals;
8857
+ }
8858
+ get centerForwardGoalsPercent() {
8859
+ if (!this.totalCenterForwardGoals || !this.centerForwardShots) {
8860
+ return 0;
8861
+ }
8862
+ return Math.round(1000 * this.totalCenterForwardGoals / this.centerForwardShots) / 10;
8863
+ }
8828
8864
  get ppShots() {
8829
8865
  return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
8830
8866
  (this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0) +
@@ -8916,6 +8952,12 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8916
8952
  return (this.freeKickSelfs || 0) + (this.freeKickPasses || 0) +
8917
8953
  this.freeKickShotMisses + this.freeKickOnGoals + this.totalFreeKickGoals;
8918
8954
  }
8955
+ get freeKickGoalsPercent() {
8956
+ if (!this.totalFreeKickGoals || !this.totalFreeKicks) {
8957
+ return 0;
8958
+ }
8959
+ return Math.round(1000 * this.totalFreeKickGoals / this.totalFreeKicks) / 10;
8960
+ }
8919
8961
  get totalCornerGoals() {
8920
8962
  return (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
8921
8963
  }