fix(webui): show message when max rank all warframes has nothing to do
All checks were successful
Build / build (22) (push) Successful in 40s
Build / build (18) (push) Successful in 1m0s
Build / build (20) (push) Successful in 1m6s
Build Docker image / docker (push) Successful in 34s

This commit is contained in:
Sainan 2025-03-07 15:19:39 +01:00
parent e4a3b13160
commit 1ad26db331

View File

@ -675,14 +675,12 @@ function maxRankAllEquipment(categories) {
} }
if (category === "Suits") { if (category === "Suits") {
if ("exalted" in itemMap[item.ItemType]) { if ("exalted" in itemMap[item.ItemType]) {
if (!batchData["SpecialItems"]) {
batchData["SpecialItems"] = [];
}
for (const exaltedType of itemMap[item.ItemType].exalted) { for (const exaltedType of itemMap[item.ItemType].exalted) {
const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType); const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType);
if (exaltedItem) { if (exaltedItem) {
const exaltedCap = itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000; const exaltedCap = itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000;
if (exaltedItem.XP < exaltedCap) { if (exaltedItem.XP < exaltedCap) {
batchData["SpecialItems"] ??= [];
batchData["SpecialItems"].push({ batchData["SpecialItems"].push({
ItemId: { $oid: exaltedItem.ItemId.$oid }, ItemId: { $oid: exaltedItem.ItemId.$oid },
XP: exaltedCap XP: exaltedCap