forked from OpenWF/SpaceNinjaServer
Update inventoryController.ts
This commit is contained in:
parent
ddf5468bff
commit
e39291b077
@ -332,18 +332,18 @@ export const getInventoryResponse = async (
|
|||||||
inventoryResponse.FlavourItems.push({ ItemType: uniqueName });
|
inventoryResponse.FlavourItems.push({ ItemType: uniqueName });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (config.unlockAllSkins) {
|
if (config.unlockAllSkins) {
|
||||||
const ownedWeaponSkins = new Set<string>(inventoryResponse.WeaponSkins.map(x => x.ItemType));
|
const ownedWeaponSkins = new Set<string>(inventoryResponse.WeaponSkins.map(x => x.ItemType));
|
||||||
for (const [uniqueName, meta] of Object.entries(ExportCustoms)) {
|
for (const [uniqueName, meta] of Object.entries(ExportCustoms)) {
|
||||||
if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) {
|
if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) {
|
||||||
inventoryResponse.WeaponSkins.push({
|
inventoryResponse.WeaponSkins.push({
|
||||||
ItemId: {
|
ItemId: {
|
||||||
$oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0")
|
$oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0")
|
||||||
},
|
},
|
||||||
ItemType: uniqueName
|
ItemType: uniqueName
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user