improve handling of avionics in webui
This commit is contained in:
parent
6d9c934619
commit
8e7d4382f2
@ -2,6 +2,7 @@ import { RequestHandler } from "express";
|
|||||||
import { getDict, getItemName, getString } from "@/src/services/itemDataService";
|
import { getDict, getItemName, getString } from "@/src/services/itemDataService";
|
||||||
import {
|
import {
|
||||||
ExportArcanes,
|
ExportArcanes,
|
||||||
|
ExportAvionics,
|
||||||
ExportGear,
|
ExportGear,
|
||||||
ExportRecipes,
|
ExportRecipes,
|
||||||
ExportResources,
|
ExportResources,
|
||||||
@ -137,6 +138,13 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
badItems[uniqueName] = true;
|
badItems[uniqueName] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (const [uniqueName, upgrade] of Object.entries(ExportAvionics)) {
|
||||||
|
res.mods.push({
|
||||||
|
uniqueName,
|
||||||
|
name: getString(upgrade.name, lang),
|
||||||
|
fusionLimit: upgrade.fusionLimit
|
||||||
|
});
|
||||||
|
}
|
||||||
for (const [uniqueName, arcane] of Object.entries(ExportArcanes)) {
|
for (const [uniqueName, arcane] of Object.entries(ExportArcanes)) {
|
||||||
res.mods.push({
|
res.mods.push({
|
||||||
uniqueName,
|
uniqueName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user