@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.
@@ -6662,7 +6662,6 @@
6662
6662
  corner_shots_against: 'cornerShotsAgainst',
6663
6663
  corner_saves_percent: 'cornerSavesPercent',
6664
6664
  in_game_saves: 'inGameSaves',
6665
- total_sh_saves: 'totalShSaves',
6666
6665
  saves: 'saves',
6667
6666
  total_saves: 'totalSaves',
6668
6667
  shootout_shots_against: 'shootoutShotsAgainst',
@@ -6671,9 +6670,16 @@
6671
6670
  saves_percent: 'savesPercent',
6672
6671
  total_shots_against: 'totalShotsAgainst',
6673
6672
  total_saves_percent: 'totalSavesPercent',
6674
- total_sh_goals_against: 'totalShGoalsAgainst',
6675
6673
  in_game_goals_against: 'inGameGoalsAgainst',
6676
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',
6677
6683
  newbie: 'newbie',
6678
6684
  rank: 'rank',
6679
6685
  },
@@ -11822,14 +11828,6 @@
11822
11828
  enumerable: false,
11823
11829
  configurable: true
11824
11830
  });
11825
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSaves", {
11826
- get: function () {
11827
- return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
11828
- (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
11829
- },
11830
- enumerable: false,
11831
- configurable: true
11832
- });
11833
11831
  Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameSaves", {
11834
11832
  get: function () {
11835
11833
  return (this.shSaves || 0) + (this.evSaves || 0) + (this.ppSaves || 0) +
@@ -11852,14 +11850,6 @@
11852
11850
  enumerable: false,
11853
11851
  configurable: true
11854
11852
  });
11855
- Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShGoalsAgainst", {
11856
- get: function () {
11857
- return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
11858
- (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
11859
- },
11860
- enumerable: false,
11861
- configurable: true
11862
- });
11863
11853
  Object.defineProperty(WaterpoloGameStatistic.prototype, "inGameGoalsAgainst", {
11864
11854
  get: function () {
11865
11855
  return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) +
@@ -11933,6 +11923,72 @@
11933
11923
  enumerable: false,
11934
11924
  configurable: true
11935
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
+ });
11936
11992
  WaterpoloGameStatistic.toFront = function (data) { };
11937
11993
  WaterpoloGameStatistic.toBack = function (data) { };
11938
11994
  return WaterpoloGameStatistic;