You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usedByDesc.push(`Used by ${joinMulti([...usedBy.charTalents, ...usedBy.charAscension].map(x=>x.name).filter((v,i,a)=>a.indexOf(v)==i))} character talents/ascensions.`)
29
-
elseif(usedBy.charTalents.length>0)
30
-
usedByDesc.push(`Used by ${joinMulti(usedBy.charTalents.map(x=>x.name))} character talents.`)
31
-
elseif(usedBy.charAscension.length>0)
32
-
usedByDesc.push(`Used by ${joinMulti(usedBy.charAscension.map(x=>x.name))} character ascensions.`)
usedByDesc.push(`Used by ${joinMulti(overlap.map(x=>x.name).filter((v,i,a)=>a.indexOf(v)==i))} character talents and ascensions.`)
35
+
36
+
if(uniqueTalents.length>0)
37
+
usedByDesc.push(`Used by ${joinMulti(uniqueTalents.map(x=>x.name))} character talents.`)
38
+
39
+
if(uniqueAscension.length>0)
40
+
usedByDesc.push(`Used by ${joinMulti(uniqueAscension.map(x=>x.name))} character ascensions.`)
41
+
42
+
if(weaponAscension.length>0)
43
+
usedByDesc.push(`Used by ${joinMulti(weaponAscension.map(x=>x.name))} weapon ascensions.`)
36
44
37
45
constdesc=`${mat.name} is a ${mat.stars ? `${mat.stars} star ` : ""}${mat.type}. \n${usedByDesc.join("\n")}\n${mat.desc ? clean(mat.desc??"") : ""}`.trim()
0 commit comments