feat : add import from gcsim and roation translater
This commit is contained in:
@@ -8,3 +8,43 @@ export function gcsimKey(kind: "character" | "weapon" | "artifact", name: string
|
||||
}
|
||||
return normalizedKey(name);
|
||||
}
|
||||
|
||||
const characterAliases: Record<string, string> = {
|
||||
ayaka: "kamisatoayaka", ayato: "kamisatoayato", kazuha: "kaedeharakazuha", kaz: "kaedeharakazuha",
|
||||
raiden: "raidenshogun", baal: "raidenshogun", kokomi: "sangonomiyakokomi", sara: "kujousara",
|
||||
childe: "tartaglia", hutao: "hutao", itto: "aratakiitto", heizou: "shikanoinheizou", shinobu: "kukishinobu",
|
||||
kuki: "kukishinobu", yae: "yaemiko", miko: "yaemiko", mav: "mavuika",
|
||||
};
|
||||
|
||||
export function canonicalCharacterKey(key: string): string {
|
||||
const normalized = normalizedKey(key);
|
||||
return characterAliases[normalized] ?? normalized;
|
||||
}
|
||||
|
||||
// Documented gcsim names: https://docs.gcsim.app/reference/weapons/favoniussword/
|
||||
// https://docs.gcsim.app/reference/weapons/thrillingtalesofdragonslayers/
|
||||
const weaponAliases: Record<string, string> = {
|
||||
favsword: "favoniussword", favgs: "favoniusgreatsword", favbow: "favoniuswarbow",
|
||||
favlance: "favoniuslance", favspear: "favoniuslance", favcodex: "favoniuscodex",
|
||||
ttds: "thrillingtalesofdragonslayers",
|
||||
};
|
||||
|
||||
export function canonicalWeaponKey(key: string): string {
|
||||
const normalized = normalizedKey(key);
|
||||
return weaponAliases[normalized] ?? normalized;
|
||||
}
|
||||
|
||||
// Documented gcsim names: https://docs.gcsim.app/reference/artifacts/tenacityofthemillelith/
|
||||
// https://docs.gcsim.app/reference/artifacts/noblesseoblige/
|
||||
// https://docs.gcsim.app/reference/artifacts/scrolloftheheroofcindercity/
|
||||
const artifactAliases: Record<string, string> = {
|
||||
totm: "tenacityofthemillelith", tom: "tenacityofthemillelith",
|
||||
tenacity: "tenacityofthemillelith", millelith: "tenacityofthemillelith",
|
||||
no: "noblesseoblige", noblesse: "noblesseoblige",
|
||||
scroll: "scrolloftheheroofcindercity", sothocc: "scrolloftheheroofcindercity",
|
||||
};
|
||||
|
||||
export function canonicalArtifactKey(key: string): string {
|
||||
const normalized = normalizedKey(key);
|
||||
return artifactAliases[normalized] ?? normalized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user