From df9791ddc4bcfc03e72c14b4124157f18238998c Mon Sep 17 00:00:00 2001 From: Raymond <101374892+raymonable@users.noreply.github.com> Date: Wed, 12 Mar 2025 00:09:12 -0400 Subject: [PATCH] feat: add sub trophies for VERSE!!!!! --- AquaNet/src/components/settings/ChuniSettings.svelte | 6 +++++- AquaNet/src/libs/generalTypes.ts | 2 ++ AquaNet/src/libs/i18n/en_ref.ts | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/AquaNet/src/components/settings/ChuniSettings.svelte b/AquaNet/src/components/settings/ChuniSettings.svelte index c03116f3..ba525f51 100644 --- a/AquaNet/src/components/settings/ChuniSettings.svelte +++ b/AquaNet/src/components/settings/ChuniSettings.svelte @@ -34,7 +34,7 @@ // Available (unlocked) options for each kind of item // In allItems: 'namePlate', 'frame', 'trophy', 'mapIcon', 'systemVoice', 'avatarAccessory' let allItems: Record> = {} - let iKinds = { namePlate: 1, frame: 2, trophy: 3, mapIcon: 8, systemVoice: 9, avatarAccessory: 11 } + let iKinds = { namePlate: 1, frame: 2, trophy: 3, trophySub1: 4, trophySub2: 5, mapIcon: 8, systemVoice: 9, avatarAccessory: 11 } // In userbox: 'nameplateId', 'frameId', 'trophyId', 'mapIconId', 'voiceId', 'avatar{Wear/Head/Face/Skin/Item/Front/Back}' let userbox: UserBox let avatarKinds = ['Wear', 'Head', 'Face', 'Skin', 'Item', 'Front', 'Back'] as const @@ -66,6 +66,10 @@ userItems = Object.entries(iKinds).flatMap(([iKey, iKind]) => { if (iKey != 'avatarAccessory') { let ubKey = `${iKey}Id` + if (iKey.slice('trophy'.length, 'trophy'.length + 3) == "Sub") { + ubKey = `trophyIdSub${iKey.slice('trophySub'.length, 'trophySub'.length + 1)}`; + iKey = `trophy`; + } if (ubKey == 'namePlateId') ubKey = 'nameplateId' if (ubKey == 'systemVoiceId') ubKey = 'voiceId' return [{ iKey, ubKey: ubKey as keyof UserBox, diff --git a/AquaNet/src/libs/generalTypes.ts b/AquaNet/src/libs/generalTypes.ts index 99e72948..f32b0a04 100644 --- a/AquaNet/src/libs/generalTypes.ts +++ b/AquaNet/src/libs/generalTypes.ts @@ -140,6 +140,8 @@ export interface UserBox { frameId: number, characterId: number, trophyId: number, + trophyIdSub1: number, + trophyIdSub2: number, mapIconId: number, voiceId: number, avatarWear: number, diff --git a/AquaNet/src/libs/i18n/en_ref.ts b/AquaNet/src/libs/i18n/en_ref.ts index c739b575..3d95b0df 100644 --- a/AquaNet/src/libs/i18n/en_ref.ts +++ b/AquaNet/src/libs/i18n/en_ref.ts @@ -191,6 +191,8 @@ export const EN_REF_USERBOX = { 'userbox.nameplateId': 'Nameplate', 'userbox.frameId': 'Frame', 'userbox.trophyId': 'Trophy (Title)', + 'userbox.trophyIdSub1': 'Trophy Sub #1 (Title)', + 'userbox.trophyIdSub2': 'Trophy Sub #2 (Title)', 'userbox.mapIconId': 'Map Icon', 'userbox.voiceId': 'System Voice', 'userbox.avatarWear': 'Avatar Wear',