@mtgame/core 0.1.120 → 0.1.122

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.
@@ -6283,6 +6283,18 @@
6283
6283
  enumerable: false,
6284
6284
  configurable: true
6285
6285
  });
6286
+ Object.defineProperty(WaterpoloStatistic.prototype, "penaltyTime", {
6287
+ get: function () {
6288
+ if (!this.penaltyMinutes) {
6289
+ return '00:00';
6290
+ }
6291
+ var minutes = Math.floor(this.penaltyMinutes / 60);
6292
+ var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
6293
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
6294
+ },
6295
+ enumerable: false,
6296
+ configurable: true
6297
+ });
6286
6298
  Object.defineProperty(WaterpoloStatistic.prototype, "gamesWonPercent", {
6287
6299
  get: function () {
6288
6300
  if (!this.gamesCount) {
@@ -6339,14 +6351,18 @@
6339
6351
  sh_shots_blocked: 'shShotsBlocked',
6340
6352
  pp_goals_percent: 'ppGoalsPercent',
6341
6353
  pp_goals: 'ppGoals',
6354
+ total_pp_goals: 'totalPpGoals',
6342
6355
  ev_goals_percent: 'evGoalsPercent',
6343
6356
  ev_goals: 'evGoals',
6357
+ total_ev_goals: 'totalEvGoals',
6344
6358
  sh_goals_percent: 'shGoalsPercent',
6345
6359
  goals: 'goals',
6346
6360
  total_goals: 'totalGoals',
6347
6361
  sh_goals: 'shGoals',
6362
+ total_sh_goals: 'totalShGoals',
6348
6363
  shot_misses: 'shotMisses',
6349
6364
  shots_on_goal: 'shotsOnGoal',
6365
+ shots_on_goal_percent: 'shotsOnGoalPercent',
6350
6366
  shots_blocked: 'shotsBlocked',
6351
6367
  shots: 'shots',
6352
6368
  total_shots: 'totalShots',
@@ -10561,6 +10577,16 @@
10561
10577
  enumerable: false,
10562
10578
  configurable: true
10563
10579
  });
10580
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoalPercent", {
10581
+ get: function () {
10582
+ if (!this.shots || !this.shotsOnGoal) {
10583
+ return 0;
10584
+ }
10585
+ return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
10586
+ },
10587
+ enumerable: false,
10588
+ configurable: true
10589
+ });
10564
10590
  Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
10565
10591
  get: function () {
10566
10592
  return this.shots + (this.shootoutAttempts || 0);
@@ -10568,11 +10594,30 @@
10568
10594
  enumerable: false,
10569
10595
  configurable: true
10570
10596
  });
10597
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoals", {
10598
+ get: function () {
10599
+ return (this.shGoals || 0) + (this.shFreeKickGoals || 0) + (this.shCornerGoals || 0);
10600
+ },
10601
+ enumerable: false,
10602
+ configurable: true
10603
+ });
10604
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvGoals", {
10605
+ get: function () {
10606
+ return (this.evGoals || 0) + (this.evFreeKickGoals || 0) + (this.evCornerGoals || 0);
10607
+ },
10608
+ enumerable: false,
10609
+ configurable: true
10610
+ });
10611
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalPpGoals", {
10612
+ get: function () {
10613
+ return (this.ppGoals || 0) + (this.ppFreeKickGoals || 0) + (this.ppCornerGoals || 0);
10614
+ },
10615
+ enumerable: false,
10616
+ configurable: true
10617
+ });
10571
10618
  Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
10572
10619
  get: function () {
10573
- return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0) +
10574
- (this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0) +
10575
- (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
10620
+ return this.totalEvGoals + this.totalPpGoals + this.totalShGoals;
10576
10621
  },
10577
10622
  enumerable: false,
10578
10623
  configurable: true
@@ -10674,6 +10719,18 @@
10674
10719
  enumerable: false,
10675
10720
  configurable: true
10676
10721
  });
10722
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "penaltyTime", {
10723
+ get: function () {
10724
+ if (!this.penaltyMinutes) {
10725
+ return '00:00';
10726
+ }
10727
+ var minutes = Math.floor(this.penaltyMinutes / 60);
10728
+ var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
10729
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
10730
+ },
10731
+ enumerable: false,
10732
+ configurable: true
10733
+ });
10677
10734
  Object.defineProperty(WaterpoloGameStatistic.prototype, "goalsPercent", {
10678
10735
  get: function () {
10679
10736
  if (!this.totalGoals || !this.totalShots) {