@mtgame/core 0.1.140 → 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.
@@ -6643,11 +6643,25 @@
6643
6643
  shootout_shots: 'shootoutShots',
6644
6644
  shootout_goals_percent: 'shootoutGoalsPercent',
6645
6645
  /*goalie stat*/
6646
+ position_attack_saves: 'positionAttackSaves',
6647
+ position_attack_shots_against: 'positionAttackShotsAgainst',
6648
+ position_attack_saves_percent: 'positionAttackSavesPercent',
6646
6649
  counterattack_saves: 'counterAttackSaves',
6650
+ counterattack_shots_against: 'counterAttackShotsAgainst',
6651
+ counterattack_saves_percent: 'counterAttackSavesPercent',
6647
6652
  center_forward_saves: 'centerForwardSaves',
6653
+ center_forward_shots_against: 'centerForwardShotsAgainst',
6654
+ center_forward_saves_percent: 'centerForwardSavesPercent',
6655
+ maneuver_saves: 'maneuverSaves',
6656
+ maneuver_shots_against: 'maneuverShotsAgainst',
6657
+ maneuver_saves_percent: 'maneuverSavesPercent',
6648
6658
  free_kick_saves: 'freeKickSaves',
6659
+ free_kick_shots_against: 'freeKickShotsAgainst',
6660
+ free_kick_saves_percent: 'freeKickSavesPercent',
6661
+ corner_saves: 'cornerSaves',
6662
+ corner_shots_against: 'cornerShotsAgainst',
6663
+ corner_saves_percent: 'cornerSavesPercent',
6649
6664
  in_game_saves: 'inGameSaves',
6650
- total_sh_saves: 'totalShSaves',
6651
6665
  saves: 'saves',
6652
6666
  total_saves: 'totalSaves',
6653
6667
  shootout_shots_against: 'shootoutShotsAgainst',
@@ -6656,9 +6670,16 @@
6656
6670
  saves_percent: 'savesPercent',
6657
6671
  total_shots_against: 'totalShotsAgainst',
6658
6672
  total_saves_percent: 'totalSavesPercent',
6659
- total_sh_goals_against: 'totalShGoalsAgainst',
6660
6673
  in_game_goals_against: 'inGameGoalsAgainst',
6661
6674
  total_goals_against: 'totalGoalsAgainst',
6675
+ total_sh_saves: 'totalShSaves',
6676
+ total_sh_goals_against: 'totalShGoalsAgainst',
6677
+ total_sh_shots_against: 'totalShShotsAgainst',
6678
+ total_sh_saves_percent: 'totalShSavesPercent',
6679
+ total_ev_saves: 'totalEvSaves',
6680
+ total_ev_goals_against: 'totalEvGoalsAgainst',
6681
+ total_ev_shots_against: 'totalEvShotsAgainst',
6682
+ total_ev_saves_percent: 'totalEvSavesPercent',
6662
6683
  newbie: 'newbie',
6663
6684
  rank: 'rank',
6664
6685
  },
@@ -11662,14 +11683,55 @@
11662
11683
  enumerable: false,
11663
11684
  configurable: true
11664
11685
  });
11665
- Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSaves", {
11686
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackSaves", {
11666
11687
  /*goalie stat */
11688
+ get: function () {
11689
+ return (this.ppSaves || 0) + (this.shSaves || 0) + (this.evSaves || 0);
11690
+ },
11691
+ enumerable: false,
11692
+ configurable: true
11693
+ });
11694
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsAgainst", {
11695
+ get: function () {
11696
+ return this.positionAttackSaves + (this.goalsAgainst || 0);
11697
+ },
11698
+ enumerable: false,
11699
+ configurable: true
11700
+ });
11701
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackSavesPercent", {
11702
+ get: function () {
11703
+ if (!this.positionAttackSaves || !this.positionAttackShotsAgainst) {
11704
+ return 0;
11705
+ }
11706
+ return Math.round(1000 * this.positionAttackSaves / this.positionAttackShotsAgainst) / 10;
11707
+ },
11708
+ enumerable: false,
11709
+ configurable: true
11710
+ });
11711
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSaves", {
11667
11712
  get: function () {
11668
11713
  return (this.ppCounterAttackSaves || 0) + (this.shCounterAttackSaves || 0) + (this.evCounterAttackSaves || 0);
11669
11714
  },
11670
11715
  enumerable: false,
11671
11716
  configurable: true
11672
11717
  });
11718
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackShotsAgainst", {
11719
+ get: function () {
11720
+ return this.counterAttackSaves + (this.counterAttackGoalsAgainst || 0);
11721
+ },
11722
+ enumerable: false,
11723
+ configurable: true
11724
+ });
11725
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSavesPercent", {
11726
+ get: function () {
11727
+ if (!this.counterAttackSaves || !this.counterAttackShotsAgainst) {
11728
+ return 0;
11729
+ }
11730
+ return Math.round(1000 * this.counterAttackSaves / this.counterAttackShotsAgainst) / 10;
11731
+ },
11732
+ enumerable: false,
11733
+ configurable: true
11734
+ });
11673
11735
  Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardSaves", {
11674
11736
  get: function () {
11675
11737
  return (this.ppCenterForwardSaves || 0) + (this.shCenterForwardSaves || 0) + (this.evCenterForwardSaves || 0);
@@ -11677,6 +11739,23 @@
11677
11739
  enumerable: false,
11678
11740
  configurable: true
11679
11741
  });
11742
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardShotsAgainst", {
11743
+ get: function () {
11744
+ return this.centerForwardSaves + (this.centerForwardGoalsAgainst || 0);
11745
+ },
11746
+ enumerable: false,
11747
+ configurable: true
11748
+ });
11749
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardSavesPercent", {
11750
+ get: function () {
11751
+ if (!this.centerForwardSaves || !this.centerForwardShotsAgainst) {
11752
+ return 0;
11753
+ }
11754
+ return Math.round(1000 * this.centerForwardSaves / this.centerForwardShotsAgainst) / 10;
11755
+ },
11756
+ enumerable: false,
11757
+ configurable: true
11758
+ });
11680
11759
  Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverSaves", {
11681
11760
  get: function () {
11682
11761
  return (this.ppManeuverSaves || 0) + (this.shManeuverSaves || 0) + (this.evManeuverSaves || 0);
@@ -11684,6 +11763,23 @@
11684
11763
  enumerable: false,
11685
11764
  configurable: true
11686
11765
  });
11766
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverShotsAgainst", {
11767
+ get: function () {
11768
+ return this.maneuverSaves + (this.maneuverGoalsAgainst || 0);
11769
+ },
11770
+ enumerable: false,
11771
+ configurable: true
11772
+ });
11773
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverSavesPercent", {
11774
+ get: function () {
11775
+ if (!this.maneuverSaves || !this.maneuverShotsAgainst) {
11776
+ return 0;
11777
+ }
11778
+ return Math.round(1000 * this.maneuverSaves / this.maneuverShotsAgainst) / 10;
11779
+ },
11780
+ enumerable: false,
11781
+ configurable: true
11782
+ });
11687
11783
  Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickSaves", {
11688
11784
  get: function () {
11689
11785
  return (this.ppFreeKickSaves || 0) + (this.shFreeKickSaves || 0) + (this.evFreeKickSaves || 0);
@@ -11691,6 +11787,23 @@
11691
11787
  enumerable: false,
11692
11788
  configurable: true
11693
11789
  });
11790
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickShotsAgainst", {
11791
+ get: function () {
11792
+ return this.freeKickSaves + (this.freeKickGoalsAgainst || 0);
11793
+ },
11794
+ enumerable: false,
11795
+ configurable: true
11796
+ });
11797
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickSavesPercent", {
11798
+ get: function () {
11799
+ if (!this.freeKickSaves || !this.freeKickShotsAgainst) {
11800
+ return 0;
11801
+ }
11802
+ return Math.round(1000 * this.freeKickSaves / this.freeKickShotsAgainst) / 10;
11803
+ },
11804
+ enumerable: false,
11805
+ configurable: true
11806
+ });
11694
11807
  Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerSaves", {
11695
11808
  get: function () {
11696
11809
  return (this.ppCornerSaves || 0) + (this.shCornerSaves || 0) + (this.evCornerSaves || 0);
@@ -11698,10 +11811,19 @@
11698
11811
  enumerable: false,
11699
11812
  configurable: true
11700
11813
  });
11701
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSaves", {
11814
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerShotsAgainst", {
11702
11815
  get: function () {
11703
- return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
11704
- (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
11816
+ return this.cornerSaves + (this.cornerGoalsAgainst || 0);
11817
+ },
11818
+ enumerable: false,
11819
+ configurable: true
11820
+ });
11821
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerSavesPercent", {
11822
+ get: function () {
11823
+ if (!this.cornerSaves || !this.cornerShotsAgainst) {
11824
+ return 0;
11825
+ }
11826
+ return Math.round(1000 * this.cornerSaves / this.cornerShotsAgainst) / 10;
11705
11827
  },
11706
11828
  enumerable: false,
11707
11829
  configurable: true
@@ -11728,14 +11850,6 @@
11728
11850
  enumerable: false,
11729
11851
  configurable: true
11730
11852
  });
11731
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoalsAgainst", {
11732
- get: function () {
11733
- return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
11734
- (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
11735
- },
11736
- enumerable: false,
11737
- configurable: true
11738
- });
11739
11853
  Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoalsAgainst", {
11740
11854
  get: function () {
11741
11855
  return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) +
@@ -11809,6 +11923,72 @@
11809
11923
  enumerable: false,
11810
11924
  configurable: true
11811
11925
  });
11926
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSaves", {
11927
+ get: function () {
11928
+ return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
11929
+ (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
11930
+ },
11931
+ enumerable: false,
11932
+ configurable: true
11933
+ });
11934
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoalsAgainst", {
11935
+ get: function () {
11936
+ return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
11937
+ (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
11938
+ },
11939
+ enumerable: false,
11940
+ configurable: true
11941
+ });
11942
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShShotsAgainst", {
11943
+ get: function () {
11944
+ return this.totalShSaves + this.totalShGoalsAgainst;
11945
+ },
11946
+ enumerable: false,
11947
+ configurable: true
11948
+ });
11949
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSavesPercent", {
11950
+ get: function () {
11951
+ if (!this.totalShSaves || !this.totalShShotsAgainst) {
11952
+ return 0;
11953
+ }
11954
+ return Math.round(1000 * this.totalShSaves / this.totalShShotsAgainst) / 10;
11955
+ },
11956
+ enumerable: false,
11957
+ configurable: true
11958
+ });
11959
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvSaves", {
11960
+ get: function () {
11961
+ return (this.evCounterAttackSaves || 0) + (this.evManeuverSaves || 0) + (this.evCenterForwardSaves || 0) +
11962
+ (this.evSaves || 0) + (this.evFreeKickSaves || 0) + (this.evCornerSaves || 0);
11963
+ },
11964
+ enumerable: false,
11965
+ configurable: true
11966
+ });
11967
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvGoalsAgainst", {
11968
+ get: function () {
11969
+ return (this.evGoalsAgainst || 0) + (this.evFreeKickGoalsAgainst || 0) + (this.evCornerGoalsAgainst || 0) +
11970
+ (this.evCounterAttackGoalsAgainst || 0) + (this.evManeuverGoalsAgainst || 0) + (this.evCenterForwardGoalsAgainst || 0);
11971
+ },
11972
+ enumerable: false,
11973
+ configurable: true
11974
+ });
11975
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvShotsAgainst", {
11976
+ get: function () {
11977
+ return this.totalEvSaves + this.totalEvGoalsAgainst;
11978
+ },
11979
+ enumerable: false,
11980
+ configurable: true
11981
+ });
11982
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalEvSavesPercent", {
11983
+ get: function () {
11984
+ if (!this.totalEvSaves || !this.totalEvShotsAgainst) {
11985
+ return 0;
11986
+ }
11987
+ return Math.round(1000 * this.totalEvSaves / this.totalEvShotsAgainst) / 10;
11988
+ },
11989
+ enumerable: false,
11990
+ configurable: true
11991
+ });
11812
11992
  WaterpoloGameStatistic.toFront = function (data) { };
11813
11993
  WaterpoloGameStatistic.toBack = function (data) { };
11814
11994
  return WaterpoloGameStatistic;