fix(showcase): responsive card, full localization, in-game stat icons and clean PNG export #3

Merged
GaCy merged 2 commits from test-gay into Main 2026-11-01 14:57:18 +07:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit d9b7a4ce1b - Show all commits

No files matched your search

+2
View File
@@ -1125,6 +1125,8 @@ function setupServerModes() {
// Initialize Avatars Database: Populates all known avatars from metadata
function initAvatarsList(force = false) {
// Prune any non-playable or CW-only avatars that might have been loaded
state.avatarsList = state.avatarsList.filter(a => AVATAR_METADATA[a.avatar_id]);
if (state.avatarsList.length > 0 && !force) {
let missing = false;
for (const aidStr in AVATAR_METADATA) {
+5 -2
View File
@@ -2079,7 +2079,10 @@ export const AVATAR_METADATA = {
"element": "Lightning",
"rarity": 5,
"hasExRank": false
},
}
};
export const CW_ROLE_METADATA = {
"6042": {
"names": {
"th": "King Pom-Pom",
@@ -2098,7 +2101,7 @@ export const AVATAR_METADATA = {
export function getAvatarInfo(avatarId, langOverride = null) {
const lang = langOverride || getCurrentLanguage();
const meta = AVATAR_METADATA[avatarId];
const meta = AVATAR_METADATA[avatarId] || CW_ROLE_METADATA[avatarId];
if (!meta) {
return {