fix: replace Aha (1511) avatar image from gachabase and add metadata
This commit is contained in:
1 parent
a5d91f3bc8
commit
84f0f7854b
3 files changed
+25
-3
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
@@ -1807,6 +1807,27 @@ export const AVATAR_METADATA = {
|
|||||||
"rarity": 5,
|
"rarity": 5,
|
||||||
"hasExRank": false
|
"hasExRank": false
|
||||||
},
|
},
|
||||||
|
"1511": {
|
||||||
|
"names": {
|
||||||
|
"th": "Aeon ★ Aha",
|
||||||
|
"en": "Aeon ★ Aha",
|
||||||
|
"zh-CN": "星神★阿哈",
|
||||||
|
"zh-TW": "星神★阿哈",
|
||||||
|
"ja": "星神★アッハ",
|
||||||
|
"ko": "에이언즈★아하",
|
||||||
|
"ru": "Эон ★ Аха",
|
||||||
|
"vi": "Aeon ★ Aha",
|
||||||
|
"id": "Aeon ★ Aha",
|
||||||
|
"es": "Eón ★ Aha",
|
||||||
|
"fr": "Éon ★ Aha",
|
||||||
|
"de": "Äon ★ Aha",
|
||||||
|
"pt": "Aeon ★ Aha"
|
||||||
|
},
|
||||||
|
"path": "Elation",
|
||||||
|
"element": "Quantum",
|
||||||
|
"rarity": 5,
|
||||||
|
"hasExRank": false
|
||||||
|
},
|
||||||
"1512": {
|
"1512": {
|
||||||
"names": {
|
"names": {
|
||||||
"th": "Robin - คีตะคิมหันต์",
|
"th": "Robin - คีตะคิมหันต์",
|
||||||
|
|||||||
@@ -61,9 +61,10 @@ async function processId(id) {
|
|||||||
fs.copyFileSync(path.join(targetDir, '1006.png'), dest);
|
fs.copyFileSync(path.join(targetDir, '1006.png'), dest);
|
||||||
return { id, status: 'fallback 1006 (Silver Wolf)' };
|
return { id, status: 'fallback 1006 (Silver Wolf)' };
|
||||||
}
|
}
|
||||||
if (id === 1511 && fs.existsSync(path.join(targetDir, '1308.png'))) {
|
if (id === 1511) {
|
||||||
fs.copyFileSync(path.join(targetDir, '1308.png'), dest);
|
const ahaUrl = 'https://cdn.gachabase.net/hsr/assets/2115ff73d049abc984df3ea560d469ac.png';
|
||||||
return { id, status: 'fallback 1308 (Acheron)' };
|
ok = await fetchUrl(ahaUrl, dest);
|
||||||
|
if (ok) return { id, status: 'ok (gachabase)' };
|
||||||
}
|
}
|
||||||
if ([8004, 8006, 8008, 8010].includes(id) && fs.existsSync(path.join(targetDir, '8002.png'))) {
|
if ([8004, 8006, 8008, 8010].includes(id) && fs.existsSync(path.join(targetDir, '8002.png'))) {
|
||||||
fs.copyFileSync(path.join(targetDir, '8002.png'), dest);
|
fs.copyFileSync(path.join(targetDir, '8002.png'), dest);
|
||||||
|
|||||||
Reference in new issue
Block a user