Skip to content

Commit ae4c8b9

Browse files
author
Jake Bailey
authored
Merge pull request #86 from SprocketBot/SkyGuy-S19-Salary-Changes
Season 19 ELO changes
2 parents d512324 + fee3f17 commit ae4c8b9

2 files changed

Lines changed: 37 additions & 33 deletions

File tree

src/elo-connector/schemas/AddPlayerBySalary.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const NewPlayerBySalarySchema = z.object({
66
id: z.number(),
77
name: z.string(),
88
salary: z.number().min(5)
9-
.max(20)
9+
.max(21) // Changed from 20 to 21 for S19 salaries
1010
.multipleOf(0.5),
1111
skillGroup: z.nativeEnum(SkillGroup),
1212
});

src/elo/elo.thresholds.ts

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,54 @@
11
import {SkillGroups} from "./elo.types";
22

3-
export const salaryLookup = {
3+
export const salaryLookup = { // Made changes for new Salary ranges being 5-21.
44
[SkillGroups.FOUNDATION]: [
5-
[1650, 10],
6-
[1600, 9.5],
7-
[1550, 9],
8-
[1500, 8.5],
9-
[1450, 8],
10-
[1400, 7.5],
11-
[1350, 7],
12-
[1300, 6.5],
13-
[1250, 6.0],
14-
[1200, 5.5],
5+
[1650, 11],
6+
[1600, 10.5],
7+
[1550, 10],
8+
[1500, 9.5],
9+
[1450, 9],
10+
[1400, 8.5],
11+
[1350, 8],
12+
[1300, 7.5],
13+
[1250, 7],
14+
[1200, 6.5],
15+
[1150, 6],
16+
[1100, 5.5],
1517
[0, 5],
1618
],
1719
[SkillGroups.ACADEMY]: [
18-
[1600, 12.5],
19-
[1500, 12],
20-
[1400, 11.5],
21-
[1300, 11],
22-
[0, 10.5],
20+
[1600, 13.5],
21+
[1500, 13],
22+
[1400, 12.5],
23+
[1300, 12],
24+
[0, 11.5],
2325
],
2426
[SkillGroups.CHAMPION]: [
25-
[1600, 15],
26-
[1500, 14.5],
27-
[1400, 14],
28-
[1300, 13.5],
29-
[0, 13],
27+
[1600, 16],
28+
[1500, 15.5],
29+
[1400, 15],
30+
[1300, 14.5],
31+
[0, 14],
3032
],
3133
[SkillGroups.MASTER]: [
32-
[1600, 17.5],
33-
[1500, 17],
34-
[1400, 16.5],
35-
[1300, 16],
36-
[0, 15.5],
34+
[1600, 18.5],
35+
[1500, 18],
36+
[1400, 17.5],
37+
[1300, 17],
38+
[0, 16.5],
3739
],
3840
[SkillGroups.PREMIER]: [
39-
[1600, 20],
40-
[1500, 19.5],
41-
[1400, 19],
42-
[1300, 18.5],
43-
[0, 18],
41+
[1600, 21],
42+
[1500, 20.5],
43+
[1400, 20],
44+
[1300, 19.5],
45+
[0, 19],
4446
],
4547
};
4648

4749
export const newElosForRankouts = {
4850
[SkillGroups.FOUNDATION]: [
49-
1199, 1650,
51+
1099, 1650, // Moved 1199 to 1099 since new FL starter ELO moves from 1200 to 1100
5052
],
5153
[SkillGroups.ACADEMY]: [
5254
1250, 1650,
@@ -118,4 +120,6 @@ export const salaryToElo = {
118120
19: 1450,
119121
19.5: 1550,
120122
20: 1650,
123+
20.5: 1700, // Added 20.5 and 21 with higher ELO values
124+
21: 1750
121125
};

0 commit comments

Comments
 (0)