add faction to gradivus dilemma trophy name
All checks were successful
Build / build (pull_request) Successful in 1m9s
All checks were successful
Build / build (pull_request) Successful in 1m9s
This commit is contained in:
parent
75804a012e
commit
1d8ec5a551
@ -2,6 +2,7 @@ import type { RequestHandler } from "express";
|
|||||||
import { getDict, getItemName, getString } from "../../services/itemDataService.ts";
|
import { getDict, getItemName, getString } from "../../services/itemDataService.ts";
|
||||||
import type { TRelicQuality } from "warframe-public-export-plus";
|
import type { TRelicQuality } from "warframe-public-export-plus";
|
||||||
import {
|
import {
|
||||||
|
eFaction,
|
||||||
ExportAbilities,
|
ExportAbilities,
|
||||||
ExportArcanes,
|
ExportArcanes,
|
||||||
ExportAvionics,
|
ExportAvionics,
|
||||||
@ -412,9 +413,16 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
"/Lotus/Levels/ClanDojo/ComponentPropRecipes/TennoPlaceables/TnoBeaconEmitterRecipe",
|
"/Lotus/Levels/ClanDojo/ComponentPropRecipes/TennoPlaceables/TnoBeaconEmitterRecipe",
|
||||||
"/Lotus/Levels/ClanDojo/ComponentPropRecipes/OrokinMusicBoxRecipe"
|
"/Lotus/Levels/ClanDojo/ComponentPropRecipes/OrokinMusicBoxRecipe"
|
||||||
]) {
|
]) {
|
||||||
|
let name = getString(getItemName(uniqueName) || uniqueName, lang);
|
||||||
|
if (uniqueName.startsWith("/Lotus/Levels/ClanDojo/ComponentPropRecipes/GradivusDilemma")) {
|
||||||
|
const factionTag = uniqueName.includes("Corpus") ? "FC_CORPUS" : "FC_GRINEER";
|
||||||
|
const faction = eFaction.find(f => f.tag === factionTag)?.name || factionTag;
|
||||||
|
name += ` [${getString(faction, lang)}]`;
|
||||||
|
console.log(uniqueName);
|
||||||
|
}
|
||||||
res.VaultDecoRecipes.push({
|
res.VaultDecoRecipes.push({
|
||||||
uniqueName,
|
uniqueName,
|
||||||
name: getString(getItemName(uniqueName) || uniqueName, lang)
|
name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user