add Holiday to CHARACTER_SERIES, remove Standard season
This commit is contained in:
parent
8a44d588c8
commit
dd16718c03
1 changed files with 99 additions and 89 deletions
|
|
@ -16,28 +16,34 @@ export enum TeamElement {
|
||||||
|
|
||||||
export function getElementClass(element: number): string | null {
|
export function getElementClass(element: number): string | null {
|
||||||
switch (element) {
|
switch (element) {
|
||||||
case TeamElement.Wind: return 'wind'
|
case TeamElement.Wind:
|
||||||
case TeamElement.Fire: return 'fire'
|
return 'wind'
|
||||||
case TeamElement.Water: return 'water'
|
case TeamElement.Fire:
|
||||||
case TeamElement.Earth: return 'earth'
|
return 'fire'
|
||||||
case TeamElement.Dark: return 'dark'
|
case TeamElement.Water:
|
||||||
case TeamElement.Light: return 'light'
|
return 'water'
|
||||||
default: return null
|
case TeamElement.Earth:
|
||||||
|
return 'earth'
|
||||||
|
case TeamElement.Dark:
|
||||||
|
return 'dark'
|
||||||
|
case TeamElement.Light:
|
||||||
|
return 'light'
|
||||||
|
default:
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Character season (gacha availability window)
|
// Character season - display disambiguation for seasonal variants (e.g., "Vane [Halloween]")
|
||||||
|
// If no season, value should be null (not a default value)
|
||||||
export enum CharacterSeason {
|
export enum CharacterSeason {
|
||||||
Standard = 1,
|
Valentine = 1,
|
||||||
Valentine = 2,
|
Formal = 2,
|
||||||
Formal = 3,
|
Summer = 3,
|
||||||
Summer = 4,
|
Halloween = 4,
|
||||||
Halloween = 5,
|
Holiday = 5
|
||||||
Holiday = 6
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CHARACTER_SEASON_NAMES: Record<number, string> = {
|
export const CHARACTER_SEASON_NAMES: Record<number, string> = {
|
||||||
[CharacterSeason.Standard]: 'Standard',
|
|
||||||
[CharacterSeason.Valentine]: 'Valentine',
|
[CharacterSeason.Valentine]: 'Valentine',
|
||||||
[CharacterSeason.Formal]: 'Formal',
|
[CharacterSeason.Formal]: 'Formal',
|
||||||
[CharacterSeason.Summer]: 'Summer',
|
[CharacterSeason.Summer]: 'Summer',
|
||||||
|
|
@ -66,7 +72,8 @@ export enum CharacterSeries {
|
||||||
Valentine = 12,
|
Valentine = 12,
|
||||||
Halloween = 13,
|
Halloween = 13,
|
||||||
Formal = 14,
|
Formal = 14,
|
||||||
Event = 15
|
Holiday = 15,
|
||||||
|
Event = 16
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CHARACTER_SERIES_NAMES: Record<number, string> = {
|
export const CHARACTER_SERIES_NAMES: Record<number, string> = {
|
||||||
|
|
@ -84,11 +91,14 @@ export const CHARACTER_SERIES_NAMES: Record<number, string> = {
|
||||||
[CharacterSeries.Valentine]: 'Valentine',
|
[CharacterSeries.Valentine]: 'Valentine',
|
||||||
[CharacterSeries.Halloween]: 'Halloween',
|
[CharacterSeries.Halloween]: 'Halloween',
|
||||||
[CharacterSeries.Formal]: 'Formal',
|
[CharacterSeries.Formal]: 'Formal',
|
||||||
|
[CharacterSeries.Holiday]: 'Holiday',
|
||||||
[CharacterSeries.Event]: 'Event'
|
[CharacterSeries.Event]: 'Event'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSeriesNames(series: number[]): string[] {
|
export function getSeriesNames(series: number[]): string[] {
|
||||||
return series.map(s => CHARACTER_SERIES_NAMES[s]).filter((name): name is string => Boolean(name))
|
return series
|
||||||
|
.map((s) => CHARACTER_SERIES_NAMES[s])
|
||||||
|
.filter((name): name is string => Boolean(name))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Weapon/Summon promotions (gacha pool membership)
|
// Weapon/Summon promotions (gacha pool membership)
|
||||||
|
|
@ -121,5 +131,5 @@ export const PROMOTION_NAMES: Record<number, string> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPromotionNames(promotions: number[]): string[] {
|
export function getPromotionNames(promotions: number[]): string[] {
|
||||||
return promotions.map(p => PROMOTION_NAMES[p]).filter((name): name is string => Boolean(name))
|
return promotions.map((p) => PROMOTION_NAMES[p]).filter((name): name is string => Boolean(name))
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue