volleyballsimtypes 0.0.172 → 0.0.174

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.
@@ -89,5 +89,5 @@ export declare enum SpikeFailureEnum {
89
89
  NET = 4
90
90
  }
91
91
  export type SpikeFailure = SpikeFailureEnum.NO_FAILURE | SpikeFailureEnum.FAULT | SpikeFailureEnum.MISS | SpikeFailureEnum.OUT_OF_BOUNDS | SpikeFailureEnum.NET;
92
- export type EventSubType = BlockFailure | ReceptionType | ServeType | SetType | SpikeType;
92
+ export type EventSubType = BlockType | ReceptionType | ServeType | SetType | SpikeType;
93
93
  export type EventFailureType = BlockFailure | ReceptionFailure | ServeFailure | SetFailure | SpikeFailure;
@@ -40,9 +40,15 @@ function assignRoles(stats) {
40
40
  if (scores[1].score >= 75) {
41
41
  out.push(scores[1].role);
42
42
  }
43
- if (scores[2].score >= 85) {
43
+ if (scores[2].score >= 82) {
44
44
  out.push(scores[2].role);
45
45
  }
46
+ if (scores[3].score >= 89) {
47
+ out.push(scores[3].role);
48
+ }
49
+ if (scores[4].score >= 95) {
50
+ out.push(scores[4].role);
51
+ }
46
52
  return out;
47
53
  }
48
54
  exports.assignRoles = assignRoles;
@@ -38,10 +38,11 @@ function getMultipliers(statName, performanceStats) {
38
38
  case StatsEnum.RECEIVE:
39
39
  return {
40
40
  reception: 0.75,
41
- overhand: 0.025,
41
+ overhand: 0.015,
42
42
  bump: 0.15,
43
- focus: 0.025,
44
- defense: 0.05
43
+ focus: 0.015,
44
+ defense: 0.055,
45
+ reflex: 0.015
45
46
  };
46
47
  case StatsEnum.SERVE:
47
48
  return {
@@ -54,8 +55,9 @@ function getMultipliers(statName, performanceStats) {
54
55
  block: 0.65,
55
56
  read: performanceStats == null ? 0.125 : performanceStats.read > performanceStats.commit ? 0.2 : 0.05,
56
57
  commit: performanceStats == null ? 0.125 : performanceStats.commit > performanceStats.read ? 0.2 : 0.05,
57
- focus: 0.05,
58
- defense: 0.05
58
+ focus: 0.04,
59
+ defense: 0.04,
60
+ reflex: 0.02
59
61
  };
60
62
  case StatsEnum.STAMINA:
61
63
  return { stamina: 1 };
@@ -89,5 +89,5 @@ export declare enum SpikeFailureEnum {
89
89
  NET = 4
90
90
  }
91
91
  export type SpikeFailure = SpikeFailureEnum.NO_FAILURE | SpikeFailureEnum.FAULT | SpikeFailureEnum.MISS | SpikeFailureEnum.OUT_OF_BOUNDS | SpikeFailureEnum.NET;
92
- export type EventSubType = BlockFailure | ReceptionType | ServeType | SetType | SpikeType;
92
+ export type EventSubType = BlockType | ReceptionType | ServeType | SetType | SpikeType;
93
93
  export type EventFailureType = BlockFailure | ReceptionFailure | ServeFailure | SetFailure | SpikeFailure;
@@ -33,8 +33,14 @@ export function assignRoles(stats) {
33
33
  if (scores[1].score >= 75) {
34
34
  out.push(scores[1].role);
35
35
  }
36
- if (scores[2].score >= 85) {
36
+ if (scores[2].score >= 82) {
37
37
  out.push(scores[2].role);
38
38
  }
39
+ if (scores[3].score >= 89) {
40
+ out.push(scores[3].role);
41
+ }
42
+ if (scores[4].score >= 95) {
43
+ out.push(scores[4].role);
44
+ }
39
45
  return out;
40
46
  }
@@ -34,10 +34,11 @@ export function getMultipliers(statName, performanceStats) {
34
34
  case StatsEnum.RECEIVE:
35
35
  return {
36
36
  reception: 0.75,
37
- overhand: 0.025,
37
+ overhand: 0.015,
38
38
  bump: 0.15,
39
- focus: 0.025,
40
- defense: 0.05
39
+ focus: 0.015,
40
+ defense: 0.055,
41
+ reflex: 0.015
41
42
  };
42
43
  case StatsEnum.SERVE:
43
44
  return {
@@ -50,8 +51,9 @@ export function getMultipliers(statName, performanceStats) {
50
51
  block: 0.65,
51
52
  read: performanceStats == null ? 0.125 : performanceStats.read > performanceStats.commit ? 0.2 : 0.05,
52
53
  commit: performanceStats == null ? 0.125 : performanceStats.commit > performanceStats.read ? 0.2 : 0.05,
53
- focus: 0.05,
54
- defense: 0.05
54
+ focus: 0.04,
55
+ defense: 0.04,
56
+ reflex: 0.02
55
57
  };
56
58
  case StatsEnum.STAMINA:
57
59
  return { stamina: 1 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.172",
3
+ "version": "0.0.174",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",