@mtgame/core 0.1.81 → 0.1.83

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.
@@ -3325,6 +3325,7 @@
3325
3325
  is_coach: 'isCoach',
3326
3326
  is_bench: 'isBench',
3327
3327
  group: 'group',
3328
+ marked: 'marked',
3328
3329
  },
3329
3330
  relation: {
3330
3331
  datetime: DateTimeField,
@@ -4364,14 +4365,14 @@
4364
4365
  });
4365
4366
  Object.defineProperty(FootballGameStatistic.prototype, "shots", {
4366
4367
  get: function () {
4367
- return (this.shotMisses || 0) + (this.shotsOnGoal || 0) + (this.shotsBlocked || 0);
4368
+ return Math.floor(10 * ((this.shotMisses || 0) + (this.shotsOnGoal || 0) + (this.shotsBlocked || 0))) / 10;
4368
4369
  },
4369
4370
  enumerable: false,
4370
4371
  configurable: true
4371
4372
  });
4372
4373
  Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
4373
4374
  get: function () {
4374
- return (this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0);
4375
+ return Math.floor(10 * ((this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0))) / 10;
4375
4376
  },
4376
4377
  enumerable: false,
4377
4378
  configurable: true
@@ -4398,7 +4399,7 @@
4398
4399
  });
4399
4400
  Object.defineProperty(FootballGameStatistic.prototype, "penalties", {
4400
4401
  get: function () {
4401
- return (this.penaltyGoals || 0) + (this.penaltyAttempts || 0);
4402
+ return Math.floor(10 * ((this.penaltyGoals || 0) + (this.penaltyAttempts || 0))) / 10;
4402
4403
  },
4403
4404
  enumerable: false,
4404
4405
  configurable: true
@@ -4408,15 +4409,14 @@
4408
4409
  if (!this.penaltyAttempts || !this.penaltyGoals) {
4409
4410
  return 0;
4410
4411
  }
4411
- var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
4412
- return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
4412
+ return Math.round(1000 * this.penaltyGoals / this.penalties) / 10;
4413
4413
  },
4414
4414
  enumerable: false,
4415
4415
  configurable: true
4416
4416
  });
4417
4417
  Object.defineProperty(FootballGameStatistic.prototype, "smallPenalties", {
4418
4418
  get: function () {
4419
- return (this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0);
4419
+ return Math.floor(10 * ((this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0))) / 10;
4420
4420
  },
4421
4421
  enumerable: false,
4422
4422
  configurable: true
@@ -4426,43 +4426,42 @@
4426
4426
  if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
4427
4427
  return 0;
4428
4428
  }
4429
- var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
4430
- return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
4429
+ return Math.round(1000 * this.smallPenaltyGoals / this.smallPenalties) / 10;
4431
4430
  },
4432
4431
  enumerable: false,
4433
4432
  configurable: true
4434
4433
  });
4435
4434
  Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
4436
4435
  get: function () {
4437
- return (this.saves || 0) + (this.goalsAgainst || 0);
4436
+ return Math.floor(10 * ((this.saves || 0) + (this.goalsAgainst || 0))) / 10;
4438
4437
  },
4439
4438
  enumerable: false,
4440
4439
  configurable: true
4441
4440
  });
4442
4441
  Object.defineProperty(FootballGameStatistic.prototype, "penaltyShotsAgainst", {
4443
4442
  get: function () {
4444
- return (this.penaltySaves || 0) + (this.penaltyGoalsAgainst || 0);
4443
+ return Math.floor(10 * ((this.penaltySaves || 0) + (this.penaltyGoalsAgainst || 0))) / 10;
4445
4444
  },
4446
4445
  enumerable: false,
4447
4446
  configurable: true
4448
4447
  });
4449
4448
  Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyShotsAgainst", {
4450
4449
  get: function () {
4451
- return (this.smallPenaltySaves || 0) + (this.smallPenaltyGoalsAgainst || 0);
4450
+ return Math.floor(10 * ((this.smallPenaltySaves || 0) + (this.smallPenaltyGoalsAgainst || 0))) / 10;
4452
4451
  },
4453
4452
  enumerable: false,
4454
4453
  configurable: true
4455
4454
  });
4456
4455
  Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
4457
4456
  get: function () {
4458
- return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0) + (this.autoGoalsAgainst || 0);
4457
+ return Math.floor(10 * ((this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0) + (this.autoGoalsAgainst || 0))) / 10;
4459
4458
  },
4460
4459
  enumerable: false,
4461
4460
  configurable: true
4462
4461
  });
4463
4462
  Object.defineProperty(FootballGameStatistic.prototype, "totalSaves", {
4464
4463
  get: function () {
4465
- return (this.saves || 0) + (this.penaltySaves || 0) + (this.smallPenaltySaves || 0);
4464
+ return Math.floor(10 * ((this.saves || 0) + (this.penaltySaves || 0) + (this.smallPenaltySaves || 0))) / 10;
4466
4465
  },
4467
4466
  enumerable: false,
4468
4467
  configurable: true
@@ -4579,14 +4578,14 @@
4579
4578
  });
4580
4579
  Object.defineProperty(FootballStatistic.prototype, "penalties", {
4581
4580
  get: function () {
4582
- return (this.penaltyGoals || 0) + (this.penaltyAttempts || 0);
4581
+ return Math.floor(10 * ((this.penaltyGoals || 0) + (this.penaltyAttempts || 0))) / 10;
4583
4582
  },
4584
4583
  enumerable: false,
4585
4584
  configurable: true
4586
4585
  });
4587
4586
  Object.defineProperty(FootballStatistic.prototype, "smallPenalties", {
4588
4587
  get: function () {
4589
- return (this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0);
4588
+ return Math.floor(10 * ((this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0))) / 10;
4590
4589
  },
4591
4590
  enumerable: false,
4592
4591
  configurable: true
@@ -5420,35 +5419,35 @@
5420
5419
  });
5421
5420
  Object.defineProperty(VolleyballStatistic.prototype, "totalReceives", {
5422
5421
  get: function () {
5423
- return this.receives + this.excellentReceives + this.receiveFaults;
5422
+ return Math.floor(10 * (this.receives + this.excellentReceives + this.receiveFaults)) / 10;
5424
5423
  },
5425
5424
  enumerable: false,
5426
5425
  configurable: true
5427
5426
  });
5428
5427
  Object.defineProperty(VolleyballStatistic.prototype, "totalServeReceives", {
5429
5428
  get: function () {
5430
- return this.serveReceives + this.excellentServeReceives + this.serveReceiveFaults;
5429
+ return Math.floor(10 * (this.serveReceives + this.excellentServeReceives + this.serveReceiveFaults)) / 10;
5431
5430
  },
5432
5431
  enumerable: false,
5433
5432
  configurable: true
5434
5433
  });
5435
5434
  Object.defineProperty(VolleyballStatistic.prototype, "totalServes", {
5436
5435
  get: function () {
5437
- return this.serveAces + this.serveHits + this.serveFaults;
5436
+ return Math.floor(10 * (this.serveAces + this.serveHits + this.serveFaults)) / 10;
5438
5437
  },
5439
5438
  enumerable: false,
5440
5439
  configurable: true
5441
5440
  });
5442
5441
  Object.defineProperty(VolleyballStatistic.prototype, "totalAttacks", {
5443
5442
  get: function () {
5444
- return this.attackSpikes + this.attackShots + this.attackFaults;
5443
+ return Math.floor(10 * (this.attackSpikes + this.attackShots + this.attackFaults)) / 10;
5445
5444
  },
5446
5445
  enumerable: false,
5447
5446
  configurable: true
5448
5447
  });
5449
5448
  Object.defineProperty(VolleyballStatistic.prototype, "totalBlocks", {
5450
5449
  get: function () {
5451
- return this.stuffBlocks + this.blockRebounds + this.blockFaults;
5450
+ return Math.floor(10 * (this.stuffBlocks + this.blockRebounds + this.blockFaults)) / 10;
5452
5451
  },
5453
5452
  enumerable: false,
5454
5453
  configurable: true
@@ -9254,49 +9253,49 @@
9254
9253
  });
9255
9254
  Object.defineProperty(VolleyballGameStatistic.prototype, "attacks", {
9256
9255
  get: function () {
9257
- return this.attackSpikes + this.attackShots;
9256
+ return Math.floor(10 * (this.attackSpikes + this.attackShots)) / 10;
9258
9257
  },
9259
9258
  enumerable: false,
9260
9259
  configurable: true
9261
9260
  });
9262
9261
  Object.defineProperty(VolleyballGameStatistic.prototype, "blocks", {
9263
9262
  get: function () {
9264
- return this.stuffBlocks + this.blockRebounds;
9263
+ return Math.floor(10 * (this.stuffBlocks + this.blockRebounds)) / 10;
9265
9264
  },
9266
9265
  enumerable: false,
9267
9266
  configurable: true
9268
9267
  });
9269
9268
  Object.defineProperty(VolleyballGameStatistic.prototype, "totalReceives", {
9270
9269
  get: function () {
9271
- return this.receives + this.excellentReceives + this.receiveFaults;
9270
+ return Math.floor(10 * (this.receives + this.excellentReceives + this.receiveFaults)) / 10;
9272
9271
  },
9273
9272
  enumerable: false,
9274
9273
  configurable: true
9275
9274
  });
9276
9275
  Object.defineProperty(VolleyballGameStatistic.prototype, "totalServeReceives", {
9277
9276
  get: function () {
9278
- return this.serveReceives + this.excellentServeReceives + this.serveReceiveFaults;
9277
+ return Math.floor(10 * (this.serveReceives + this.excellentServeReceives + this.serveReceiveFaults)) / 10;
9279
9278
  },
9280
9279
  enumerable: false,
9281
9280
  configurable: true
9282
9281
  });
9283
9282
  Object.defineProperty(VolleyballGameStatistic.prototype, "totalServes", {
9284
9283
  get: function () {
9285
- return this.serveAces + this.serveHits + this.serveFaults;
9284
+ return Math.floor(10 * (this.serveAces + this.serveHits + this.serveFaults)) / 10;
9286
9285
  },
9287
9286
  enumerable: false,
9288
9287
  configurable: true
9289
9288
  });
9290
9289
  Object.defineProperty(VolleyballGameStatistic.prototype, "totalAttacks", {
9291
9290
  get: function () {
9292
- return this.attackSpikes + this.attackShots + this.attackFaults;
9291
+ return Math.floor(10 * (this.attackSpikes + this.attackShots + this.attackFaults)) / 10;
9293
9292
  },
9294
9293
  enumerable: false,
9295
9294
  configurable: true
9296
9295
  });
9297
9296
  Object.defineProperty(VolleyballGameStatistic.prototype, "totalBlocks", {
9298
9297
  get: function () {
9299
- return this.stuffBlocks + this.blockRebounds + this.blockFaults;
9298
+ return Math.floor(10 * (this.stuffBlocks + this.blockRebounds + this.blockFaults)) / 10;
9300
9299
  },
9301
9300
  enumerable: false,
9302
9301
  configurable: true