Apply prettier changes

This commit is contained in:
AMelonInsideLemon 2024-06-04 10:59:45 +00:00 committed by github-actions[bot]
parent 242c9c2a50
commit e59b2b3d0a
2 changed files with 15 additions and 10 deletions

View File

@ -75,9 +75,9 @@ export const addSentinel = async (sentinelName: string, accountId: string) => {
export const addPowerSuit = async (powersuitName: string, accountId: string): Promise<ISuitClient> => {
const specialItems = await getExalted(powersuitName);
if(specialItems != false){
if (specialItems != false) {
for await (const specialItem of specialItems) {
await addSpecialItem(specialItem, accountId)
await addSpecialItem(specialItem, accountId);
}
}
const inventory = await getInventory(accountId);
@ -88,9 +88,9 @@ export const addPowerSuit = async (powersuitName: string, accountId: string): Pr
export const addMechSuit = async (mechsuitName: string, accountId: string) => {
const specialItems = await getExalted(mechsuitName);
if(specialItems != false){
if (specialItems != false) {
for await (const specialItem of specialItems) {
await addSpecialItem(specialItem, accountId)
await addSpecialItem(specialItem, accountId);
}
}
const inventory = await getInventory(accountId);
@ -101,9 +101,15 @@ export const addMechSuit = async (mechsuitName: string, accountId: string) => {
export const addSpecialItem = async (itemName: string, accountId: string) => {
const inventory = await getInventory(accountId);
const specialItemIndex = inventory.SpecialItems.push({ ItemType: itemName, Configs: [], Features: 1, UpgradeVer: 101, XP: 0 });
const specialItemIndex = inventory.SpecialItems.push({
ItemType: itemName,
Configs: [],
Features: 1,
UpgradeVer: 101,
XP: 0
});
const changedInventory = await inventory.save();
return changedInventory.SpecialItems[specialItemIndex -1].toJSON();
return changedInventory.SpecialItems[specialItemIndex - 1].toJSON();
};
export const updateSlots = async (accountId: string, slotName: SlotNames, slotAmount: number, extraAmount: number) => {

View File

@ -5,7 +5,6 @@ import badItems from "@/static/json/exclude-mods.json";
import dict_en from "@/node_modules/warframe-public-export-plus/dict.en.json";
import exportSuits from "@/node_modules/warframe-public-export-plus/ExportWarframes.json";
export type MinWarframe = Omit<Warframe, "patchlogs">;
export type MinWeapon = Omit<Weapon, "patchlogs">;
export type MinItem = Omit<MinimalItem, "patchlogs">;
@ -108,12 +107,12 @@ export const getItemByBlueprint = (uniqueName: string): (MinItem & Buildable) |
export const getExalted = (uniqueName: string) => {
const suit = getSuitByUniqueName(uniqueName);
if(suit?.exalted !== undefined){
if (suit?.exalted !== undefined) {
return suit.exalted;
} else {
return false
return false;
}
}
};
export const getItemCategoryByUniqueName = (uniqueName: string) => {
//Lotus/Types/Items/MiscItems/PolymerBundle