feat:添加米歇尔相关
This commit is contained in:
@@ -95,7 +95,7 @@ export const formatEqu = (total: IEquipment[], subweapons?: string[], curSuit?:
|
||||
)
|
||||
raritiyList.forEach((rarity) => {
|
||||
const armor = item_suits.filter(
|
||||
(item) => item.rarity === rarity && item.itemType === '防具' && !item.name.includes('侵蚀'),
|
||||
(item) => item.rarity === rarity && item.itemType === '防具' && !item.name.includes('侵蚀') && !item.name.includes('启圣'),
|
||||
)
|
||||
if (armor.length > 0) {
|
||||
suits.push(...armor, undefined)
|
||||
@@ -125,16 +125,17 @@ export const formatEqu = (total: IEquipment[], subweapons?: string[], curSuit?:
|
||||
suits.push(...Array(rowCount - (suits.length % rowCount)).fill(undefined))
|
||||
}
|
||||
|
||||
const armorUpgrade = item_suits.filter(
|
||||
(item) => item.rarity === rarity && item.itemType === '防具' && item.name.includes('侵蚀'),
|
||||
)
|
||||
if (armorUpgrade.length > 0) {
|
||||
suits.push(...armorUpgrade)
|
||||
}
|
||||
|
||||
if (suits.length % rowCount > 0) {
|
||||
suits.push(...Array(rowCount - (suits.length % rowCount)).fill(undefined))
|
||||
}
|
||||
['侵蚀', '启圣'].forEach((upgradeType) => {
|
||||
const upgradeItems = item_suits.filter(
|
||||
(item) => item.rarity === rarity && item.itemType === '防具' && item.name.includes(upgradeType),
|
||||
)
|
||||
if (upgradeItems.length > 0) {
|
||||
suits.push(...upgradeItems)
|
||||
}
|
||||
if (suits.length % rowCount > 0) {
|
||||
suits.push(...Array(rowCount - (suits.length % rowCount)).fill(undefined))
|
||||
}
|
||||
})
|
||||
})
|
||||
// 称号
|
||||
const item_title = total.filter((equip) => equip.itemDetailType == '称号')
|
||||
|
||||
Reference in New Issue
Block a user