feat(webui): skins #2816

Merged
Sainan merged 13 commits from AMelonInsideLemon/SpaceNinjaServer:webui-WeaponSkins into main 2025-10-09 23:02:10 -07:00
Showing only changes of commit e39291b077 - Show all commits

View File

@ -332,18 +332,18 @@ export const getInventoryResponse = async (
inventoryResponse.FlavourItems.push({ ItemType: uniqueName });
}
});
}
AMelonInsideLemon marked this conversation as resolved
Review

unlockAllSkins is now dependent on baroTennoConRelay

unlockAllSkins is now dependent on baroTennoConRelay
if (config.unlockAllSkins) {
const ownedWeaponSkins = new Set<string>(inventoryResponse.WeaponSkins.map(x => x.ItemType));
for (const [uniqueName, meta] of Object.entries(ExportCustoms)) {
if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) {
inventoryResponse.WeaponSkins.push({
ItemId: {
$oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0")
},
ItemType: uniqueName
});
}
if (config.unlockAllSkins) {
const ownedWeaponSkins = new Set<string>(inventoryResponse.WeaponSkins.map(x => x.ItemType));
for (const [uniqueName, meta] of Object.entries(ExportCustoms)) {
if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) {
inventoryResponse.WeaponSkins.push({
ItemId: {
$oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0")
},
ItemType: uniqueName
});
}
}
}