@@ -5,13 +5,15 @@ import type { TournamentType } from "../schema.js";
55export enum Tournament {
66 Worlds = "worlds championship" ,
77 Continental = "continental championship" ,
8- National = "national championship" ,
9- Intercontinental = "intercontinental championship" ,
8+ DistrictChampionship = "district championship" ,
9+ MegaCityChampionship = "megacity championship" ,
1010 CircuitOpener = "circuit opener" ,
1111 CircuitBreaker = "circuit breaker" ,
12+ CasualTournamentKit = "casual tournament kit" ,
13+ National = "national championship" ,
1214 CircuitBreakerInvitational = "circuit breaker invitational" ,
1315 PlayersCircuit = "players circuit" ,
14- CasualTournamentKit = "casual tournament kit " ,
16+ Intercontinental = "intercontinental championship " ,
1517}
1618
1719// Default configuration (Season 0)
@@ -28,6 +30,8 @@ export const DEFAULT_CONFIG: Record<string, Record<Tournament, number>> = {
2830 [ Tournament . CircuitBreakerInvitational ] : 2 ,
2931 [ Tournament . PlayersCircuit ] : 2 ,
3032 [ Tournament . CasualTournamentKit ] : 1 ,
33+ [ Tournament . DistrictChampionship ] : 1.2 ,
34+ [ Tournament . MegaCityChampionship ] : 1.5 ,
3135 } ,
3236 // Flat points added to the total point pool that gets awarded to 1st place
3337 // Each tournament gets a different point total to reflect the tournament prestige
@@ -41,6 +45,8 @@ export const DEFAULT_CONFIG: Record<string, Record<Tournament, number>> = {
4145 [ Tournament . CircuitBreakerInvitational ] : 200 ,
4246 [ Tournament . PlayersCircuit ] : 25 ,
4347 [ Tournament . CasualTournamentKit ] : 15 ,
48+ [ Tournament . DistrictChampionship ] : 0 ,
49+ [ Tournament . MegaCityChampionship ] : 0 ,
4450 } ,
4551 // Sets a baseline number of players a tournament must have in order to distribute any points at all
4652 // This means that small tournaments are not eligible for payouts
@@ -54,6 +60,8 @@ export const DEFAULT_CONFIG: Record<string, Record<Tournament, number>> = {
5460 [ Tournament . CircuitBreakerInvitational ] : 8 ,
5561 [ Tournament . PlayersCircuit ] : 8 ,
5662 [ Tournament . CasualTournamentKit ] : 8 ,
63+ [ Tournament . DistrictChampionship ] : 8 ,
64+ [ Tournament . MegaCityChampionship ] : 8 ,
5765 } ,
5866 // Defines the max number of tournaments a person can get points for
5967 // We take the top values if a person attends more than the defined max
@@ -67,6 +75,8 @@ export const DEFAULT_CONFIG: Record<string, Record<Tournament, number>> = {
6775 [ Tournament . CircuitBreakerInvitational ] : 1 ,
6876 [ Tournament . PlayersCircuit ] : 1 ,
6977 [ Tournament . CasualTournamentKit ] : 5 ,
78+ [ Tournament . DistrictChampionship ] : 3 ,
79+ [ Tournament . MegaCityChampionship ] : 2 ,
7080 } ,
7181 // Defines the bottom anchor point which means the last place player will receive less than the value provided
7282 // This is used to help set the rate of decay and the payout slope. A higher number indicates a more gradual slope
@@ -80,6 +90,8 @@ export const DEFAULT_CONFIG: Record<string, Record<Tournament, number>> = {
8090 [ Tournament . CircuitBreakerInvitational ] : 1 ,
8191 [ Tournament . PlayersCircuit ] : 1 ,
8292 [ Tournament . CasualTournamentKit ] : 1 ,
93+ [ Tournament . DistrictChampionship ] : 1 ,
94+ [ Tournament . MegaCityChampionship ] : 1 ,
8395 } ,
8496} ;
8597
@@ -97,6 +109,8 @@ export const SEASON_3_CONFIG = {
97109 [ Tournament . CircuitBreakerInvitational ] : 0 ,
98110 [ Tournament . PlayersCircuit ] : 0 ,
99111 [ Tournament . CasualTournamentKit ] : 0 ,
112+ [ Tournament . DistrictChampionship ] : 0 ,
113+ [ Tournament . MegaCityChampionship ] : 0 ,
100114 } ,
101115 POINTS_PER_PLAYER : {
102116 ...DEFAULT_CONFIG . POINTS_PER_PLAYER ,
@@ -110,6 +124,8 @@ export const SEASON_3_CONFIG = {
110124 [ Tournament . CircuitBreakerInvitational ] : 1 ,
111125 [ Tournament . PlayersCircuit ] : 1 ,
112126 [ Tournament . CasualTournamentKit ] : 1 ,
127+ [ Tournament . DistrictChampionship ] : 1.1 ,
128+ [ Tournament . MegaCityChampionship ] : 1.25 ,
113129 } ,
114130} ;
115131
0 commit comments