@mtgame/core 0.1.141 → 0.1.142

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.
@@ -5164,7 +5164,6 @@ WaterpoloStatistic = __decorate([
5164
5164
  corner_shots_against: 'cornerShotsAgainst',
5165
5165
  corner_saves_percent: 'cornerSavesPercent',
5166
5166
  in_game_saves: 'inGameSaves',
5167
- total_sh_saves: 'totalShSaves',
5168
5167
  saves: 'saves',
5169
5168
  total_saves: 'totalSaves',
5170
5169
  shootout_shots_against: 'shootoutShotsAgainst',
@@ -5173,9 +5172,16 @@ WaterpoloStatistic = __decorate([
5173
5172
  saves_percent: 'savesPercent',
5174
5173
  total_shots_against: 'totalShotsAgainst',
5175
5174
  total_saves_percent: 'totalSavesPercent',
5176
- total_sh_goals_against: 'totalShGoalsAgainst',
5177
5175
  in_game_goals_against: 'inGameGoalsAgainst',
5178
5176
  total_goals_against: 'totalGoalsAgainst',
5177
+ total_sh_saves: 'totalShSaves',
5178
+ total_sh_goals_against: 'totalShGoalsAgainst',
5179
+ total_sh_shots_against: 'totalShShotsAgainst',
5180
+ total_sh_saves_percent: 'totalShSavesPercent',
5181
+ total_ev_saves: 'totalEvSaves',
5182
+ total_ev_goals_against: 'totalEvGoalsAgainst',
5183
+ total_ev_shots_against: 'totalEvShotsAgainst',
5184
+ total_ev_saves_percent: 'totalEvSavesPercent',
5179
5185
  newbie: 'newbie',
5180
5186
  rank: 'rank',
5181
5187
  },
@@ -9134,10 +9140,6 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
9134
9140
  }
9135
9141
  return Math.round(1000 * this.cornerSaves / this.cornerShotsAgainst) / 10;
9136
9142
  }
9137
- get totalShSaves() {
9138
- return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
9139
- (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
9140
- }
9141
9143
  get inGameSaves() {
9142
9144
  return (this.shSaves || 0) + (this.evSaves || 0) + (this.ppSaves || 0) +
9143
9145
  this.counterAttackSaves + this.maneuverSaves + this.centerForwardSaves;
@@ -9148,10 +9150,6 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
9148
9150
  get totalSaves() {
9149
9151
  return this.saves + (this.shootoutSaves || 0);
9150
9152
  }
9151
- get totalShGoalsAgainst() {
9152
- return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
9153
- (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
9154
- }
9155
9153
  get inGameGoalsAgainst() {
9156
9154
  return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) +
9157
9155
  (this.centerForwardGoalsAgainst || 0);
@@ -9189,6 +9187,40 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
9189
9187
  }
9190
9188
  return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
9191
9189
  }
9190
+ get totalShSaves() {
9191
+ return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
9192
+ (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
9193
+ }
9194
+ get totalShGoalsAgainst() {
9195
+ return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
9196
+ (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
9197
+ }
9198
+ get totalShShotsAgainst() {
9199
+ return this.totalShSaves + this.totalShGoalsAgainst;
9200
+ }
9201
+ get totalShSavesPercent() {
9202
+ if (!this.totalShSaves || !this.totalShShotsAgainst) {
9203
+ return 0;
9204
+ }
9205
+ return Math.round(1000 * this.totalShSaves / this.totalShShotsAgainst) / 10;
9206
+ }
9207
+ get totalEvSaves() {
9208
+ return (this.evCounterAttackSaves || 0) + (this.evManeuverSaves || 0) + (this.evCenterForwardSaves || 0) +
9209
+ (this.evSaves || 0) + (this.evFreeKickSaves || 0) + (this.evCornerSaves || 0);
9210
+ }
9211
+ get totalEvGoalsAgainst() {
9212
+ return (this.evGoalsAgainst || 0) + (this.evFreeKickGoalsAgainst || 0) + (this.evCornerGoalsAgainst || 0) +
9213
+ (this.evCounterAttackGoalsAgainst || 0) + (this.evManeuverGoalsAgainst || 0) + (this.evCenterForwardGoalsAgainst || 0);
9214
+ }
9215
+ get totalEvShotsAgainst() {
9216
+ return this.totalEvSaves + this.totalEvGoalsAgainst;
9217
+ }
9218
+ get totalEvSavesPercent() {
9219
+ if (!this.totalEvSaves || !this.totalEvShotsAgainst) {
9220
+ return 0;
9221
+ }
9222
+ return Math.round(1000 * this.totalEvSaves / this.totalEvShotsAgainst) / 10;
9223
+ }
9192
9224
  static toFront(data) { }
9193
9225
  static toBack(data) { }
9194
9226
  };