diff --git a/src/elo-connector/schemas/AddPlayerBySalary.schema.ts b/src/elo-connector/schemas/AddPlayerBySalary.schema.ts index 91ed3ba1..1fe7619e 100644 --- a/src/elo-connector/schemas/AddPlayerBySalary.schema.ts +++ b/src/elo-connector/schemas/AddPlayerBySalary.schema.ts @@ -6,7 +6,7 @@ export const NewPlayerBySalarySchema = z.object({ id: z.number(), name: z.string(), salary: z.number().min(5) - .max(20) + .max(21) // Changed from 20 to 21 for S19 salaries .multipleOf(0.5), skillGroup: z.nativeEnum(SkillGroup), }); diff --git a/src/elo/elo.thresholds.ts b/src/elo/elo.thresholds.ts index aa6ca439..4b5d61ce 100644 --- a/src/elo/elo.thresholds.ts +++ b/src/elo/elo.thresholds.ts @@ -1,52 +1,54 @@ import {SkillGroups} from "./elo.types"; -export const salaryLookup = { +export const salaryLookup = { // Made changes for new Salary ranges being 5-21. [SkillGroups.FOUNDATION]: [ - [1650, 10], - [1600, 9.5], - [1550, 9], - [1500, 8.5], - [1450, 8], - [1400, 7.5], - [1350, 7], - [1300, 6.5], - [1250, 6.0], - [1200, 5.5], + [1650, 11], + [1600, 10.5], + [1550, 10], + [1500, 9.5], + [1450, 9], + [1400, 8.5], + [1350, 8], + [1300, 7.5], + [1250, 7], + [1200, 6.5], + [1150, 6], + [1100, 5.5], [0, 5], ], [SkillGroups.ACADEMY]: [ - [1600, 12.5], - [1500, 12], - [1400, 11.5], - [1300, 11], - [0, 10.5], + [1600, 13.5], + [1500, 13], + [1400, 12.5], + [1300, 12], + [0, 11.5], ], [SkillGroups.CHAMPION]: [ - [1600, 15], - [1500, 14.5], - [1400, 14], - [1300, 13.5], - [0, 13], + [1600, 16], + [1500, 15.5], + [1400, 15], + [1300, 14.5], + [0, 14], ], [SkillGroups.MASTER]: [ - [1600, 17.5], - [1500, 17], - [1400, 16.5], - [1300, 16], - [0, 15.5], + [1600, 18.5], + [1500, 18], + [1400, 17.5], + [1300, 17], + [0, 16.5], ], [SkillGroups.PREMIER]: [ - [1600, 20], - [1500, 19.5], - [1400, 19], - [1300, 18.5], - [0, 18], + [1600, 21], + [1500, 20.5], + [1400, 20], + [1300, 19.5], + [0, 19], ], }; export const newElosForRankouts = { [SkillGroups.FOUNDATION]: [ - 1199, 1650, + 1099, 1650, // Moved 1199 to 1099 since new FL starter ELO moves from 1200 to 1100 ], [SkillGroups.ACADEMY]: [ 1250, 1650, @@ -118,4 +120,6 @@ export const salaryToElo = { 19: 1450, 19.5: 1550, 20: 1650, + 20.5: 1700, // Added 20.5 and 21 with higher ELO values + 21: 1750 };