fix: not being able to purchase or craft some recipes #314

Merged
Sainan merged 3 commits from fix-recipes into main 2024-06-17 07:41:02 -07:00
Showing only changes of commit b3c849e591 - Show all commits

View File

@ -1,6 +1,6 @@
import { getIndexAfter } from "@/src/helpers/stringHelpers"; import { getIndexAfter } from "@/src/helpers/stringHelpers";
import { logger } from "@/src/utils/logger"; import { logger } from "@/src/utils/logger";
import Items, { Buildable, Category, MinimalItem, Warframe, Weapon } from "warframe-items"; import Items, { Category, MinimalItem, Warframe, Weapon } from "warframe-items";
import badItems from "@/static/json/exclude-mods.json"; import badItems from "@/static/json/exclude-mods.json";
import { import {
dict_en, dict_en,
@ -107,8 +107,6 @@ export const blueprintNames = Object.fromEntries(
.map(name => [name, craftNames[name]]) .map(name => [name, craftNames[name]])
); );
const buildables = items.filter(item => !!(item as Buildable).components);
// Gets a recipe by its uniqueName // Gets a recipe by its uniqueName
export const getItemByBlueprint = (uniqueName: string): IRecipe | undefined => { export const getItemByBlueprint = (uniqueName: string): IRecipe | undefined => {
return ExportRecipes[uniqueName]; return ExportRecipes[uniqueName];