feat: exalted weapons on webui #644

Closed
AMelonInsideLemon wants to merge 8 commits from web-exalted into main
Showing only changes of commit c3e10a3e0e - Show all commits

View File

@ -433,8 +433,8 @@ export const addMechSuit = async (mechsuitName: string, accountId: string) => {
export const addSpecialItem = async (itemName: string, accountId: string) => { export const addSpecialItem = async (itemName: string, accountId: string) => {
const inventory = await getInventory(accountId); const inventory = await getInventory(accountId);
// According to wiki there is one exalted item per suit type, so we check if we don't already have that item // According to wiki exalted items unique for suit type, so we check if we don't already have that item
if (inventory.SpecialItems.length && inventory.SpecialItems.some(obj => obj.ItemType !== itemName)) { if (!inventory.SpecialItems.some(obj => obj.ItemType === itemName)) {
const specialItemIndex = inventory.SpecialItems.push({ const specialItemIndex = inventory.SpecialItems.push({
ItemType: itemName, ItemType: itemName,
Configs: [], Configs: [],