fix(webui): max rank up all suits (#917)

Fixes #914

Reviewed-on: OpenWF/SpaceNinjaServer#917
Reviewed-by: Sainan <sainan@calamity.inc>
Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
This commit is contained in:
AMelonInsideLemon 2025-02-07 06:46:07 -08:00 committed by Sainan
parent 0c1624cc03
commit 079f9ebbdf

View File

@ -627,6 +627,9 @@ 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) {