fix : too high fade
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const overviewRoles = ["Main DPS", "Sub DPS", "Support"] as const;
|
||||
export const overviewRoles = ["Main DPS", "Sub DPS", "Support", "Custom"] as const;
|
||||
|
||||
export type OverviewRole = (typeof overviewRoles)[number];
|
||||
|
||||
@@ -215,7 +215,7 @@ export function weaponTypeIconPath(weaponType: string | null): string | null {
|
||||
return fileName ? `/icon/weapon-types/${fileName}` : null;
|
||||
}
|
||||
|
||||
export function overviewFileName(characterKey: string, role: OverviewRole): string {
|
||||
export function overviewFileName(characterKey: string, role: string): string {
|
||||
const safeKey = characterKey.replace(/[^\p{L}\p{N}._-]+/gu, "-");
|
||||
const safeRole = role.toLowerCase().replaceAll(" ", "-");
|
||||
return `overview-${safeKey}-${safeRole}.png`;
|
||||
|
||||
Reference in New Issue
Block a user