skill components
This commit is contained in:
@@ -100,7 +100,7 @@ function Info(args) {
|
||||
if (!(combiner.every(u => u === null))) {
|
||||
const filteredCombos = itemInfo.combos
|
||||
.filter(combo => combiner.every(u => u === null
|
||||
|| combo.units.includes(player.vbox.bound[u])));
|
||||
|| combo.components.includes(player.vbox.bound[u])));
|
||||
if (filteredCombos.length > 6) return false;
|
||||
return (
|
||||
<table>
|
||||
@@ -108,14 +108,14 @@ function Info(args) {
|
||||
{filteredCombos.map((c, i) =>
|
||||
<tr key={i} >
|
||||
<td className="highlight" >{convertItem(c.item)}</td>
|
||||
{c.units.map((u, j) => <td key={j}>{convertItem(u)}</td>)}
|
||||
{c.components.map((u, j) => <td key={j}>{convertItem(u)}</td>)}
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
const vboxCombos = itemInfo.combos.filter(c => c.units.includes(info));
|
||||
const vboxCombos = itemInfo.combos.filter(c => c.components.includes(info));
|
||||
if (vboxCombos.length > 6) return false;
|
||||
return (
|
||||
<table className="combos">
|
||||
@@ -123,7 +123,7 @@ function Info(args) {
|
||||
{vboxCombos.map((c, i) =>
|
||||
<tr key={i} >
|
||||
<td className="highlight" >{convertItem(c.item)}</td>
|
||||
{c.units.map((u, j) => <td key={j} >{convertItem(u)}</td>)}
|
||||
{c.components.map((u, j) => <td key={j} >{convertItem(u)}</td>)}
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
||||
@@ -113,10 +113,10 @@ function Vbox(args) {
|
||||
const combinerValues = newCombiner.map(cv => player.vbox.bound[cv]).filter(cv => cv);
|
||||
|
||||
const filteredCombos = itemInfo.combos
|
||||
.filter(combo => combinerValues.every(u => combo.units.includes(u)));
|
||||
.filter(combo => combinerValues.every(u => combo.components.includes(u)));
|
||||
|
||||
const comboValues = itemInfo.items.filter(v => {
|
||||
if (!filteredCombos.some(c => c.units.includes(v.item))) return false;
|
||||
if (!filteredCombos.some(c => c.components.includes(v.item))) return false;
|
||||
if (!['Red', 'Green', 'Blue'].includes(v.item) && combinerValues.includes(v.item)) return false;
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user