put recipes back in

This commit is contained in:
ntr 2019-05-20 18:45:30 +10:00
parent 3ac9a9c49c
commit 031511fe7e
2 changed files with 9 additions and 4 deletions

View File

@ -136,7 +136,6 @@ function Info(args) {
}
function Combos() {
if (info) return false;
if (!player) return false;
if (!(combiner.every(u => u === null))) {

View File

@ -99,6 +99,12 @@ function Vbox(args) {
if (instance.phase === 'Lobby') return false;
const { vbox } = player;
// function setHighlight(type) {
// if (type === 'skill') return setVboxHighlight(itemInfo.items.filter(v => v.skill).map(v => v.item));
// if (type === 'spec') return setVboxHighlight(itemInfo.items.filter(v => v.spec).map(v => v.item));
// return false;
// }
function combinerChange(newCombiner) {
setCombiner(newCombiner);
if (newCombiner.every(c => c === null)) return setVboxHighlight([]);
@ -109,12 +115,12 @@ function Vbox(args) {
.filter(combo => combinerValues.every(u => combo.units.includes(u)));
const comboValues = itemInfo.items.filter(v => {
if (!filteredCombos.some(c => c.units.includes(v.v))) return false;
if (!['Red', 'Green', 'Blue'].includes(v.v) && combinerValues.includes(v.v)) return false;
if (!filteredCombos.some(c => c.units.includes(v.item))) return false;
if (!['Red', 'Green', 'Blue'].includes(v.item) && combinerValues.includes(v.item)) return false;
return true;
});
return setVboxHighlight(comboValues.map(v => v.v));
return setVboxHighlight(comboValues.map(v => v.item));
}
//