|
|
|
|
@ -876,7 +876,28 @@ public enum TournamentCategory: Int, Hashable, Codable, CaseIterable, Identifiab |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static func femaleInMaleAssimilationAddition(_ rank: Int) -> Int { |
|
|
|
|
public static func femaleInMaleAssimilationAddition(_ rank: Int, seasonYear: Int?) -> Int { |
|
|
|
|
switch seasonYear { |
|
|
|
|
case .some(let year): |
|
|
|
|
if year < 2026 { |
|
|
|
|
switch rank { |
|
|
|
|
case 1...10: return 400 |
|
|
|
|
case 11...30: return 1000 |
|
|
|
|
case 31...60: return 2000 |
|
|
|
|
case 61...100: return 3500 |
|
|
|
|
case 101...200: return 10000 |
|
|
|
|
case 201...500: return 15000 |
|
|
|
|
case 501...1000: return 25000 |
|
|
|
|
case 1001...2000: return 35000 |
|
|
|
|
case 2001...3000: return 45000 |
|
|
|
|
default: |
|
|
|
|
return 50000 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
case .none: |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch rank { |
|
|
|
|
case 1...10: return 400 |
|
|
|
|
case 11...30: return 1000 |
|
|
|
|
@ -887,8 +908,10 @@ public enum TournamentCategory: Int, Hashable, Codable, CaseIterable, Identifiab |
|
|
|
|
case 501...1000: return 25000 |
|
|
|
|
case 1001...2000: return 35000 |
|
|
|
|
case 2001...3000: return 45000 |
|
|
|
|
case 3001...5000: return 55000 |
|
|
|
|
case 5001...10000: return 70000 |
|
|
|
|
default: |
|
|
|
|
return 50000 |
|
|
|
|
return 90000 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1499,7 +1522,7 @@ public enum MatchFormat: Int, Hashable, Codable, CaseIterable, Identifiable { |
|
|
|
|
|
|
|
|
|
public var isFederal: Bool { |
|
|
|
|
switch self { |
|
|
|
|
case .megaTie, .twoSetsOfSuperTie, .singleSet, .singleSetDecisivePoint, .singleSetOfFourGames, .singleSetOfFourGamesDecisivePoint: |
|
|
|
|
case .megaTie, .twoSetsOfSuperTie, .singleSet, .singleSetDecisivePoint, .singleSetOfFourGamesDecisivePoint: |
|
|
|
|
return false |
|
|
|
|
default: |
|
|
|
|
return true |
|
|
|
|
@ -1525,11 +1548,11 @@ public enum MatchFormat: Int, Hashable, Codable, CaseIterable, Identifiable { |
|
|
|
|
case .twoSetsOfSuperTie: |
|
|
|
|
return "G" |
|
|
|
|
case .megaTie: |
|
|
|
|
return "F" |
|
|
|
|
return "H" |
|
|
|
|
case .singleSet: |
|
|
|
|
return "H1" |
|
|
|
|
return "I1" |
|
|
|
|
case .singleSetDecisivePoint: |
|
|
|
|
return "H2" |
|
|
|
|
return "I2" |
|
|
|
|
case .twoSetsDecisivePoint: |
|
|
|
|
return "A2" |
|
|
|
|
case .twoSetsDecisivePointSuperTie: |
|
|
|
|
@ -1539,9 +1562,9 @@ public enum MatchFormat: Int, Hashable, Codable, CaseIterable, Identifiable { |
|
|
|
|
case .nineGamesDecisivePoint: |
|
|
|
|
return "D2" |
|
|
|
|
case .singleSetOfFourGames: |
|
|
|
|
return "I1" |
|
|
|
|
return "F1" |
|
|
|
|
case .singleSetOfFourGamesDecisivePoint: |
|
|
|
|
return "I2" |
|
|
|
|
return "F2" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|