v3.0.1: alchemy guide icons are no longer greyed out in main menu
This commit is contained in:
@@ -124,12 +124,14 @@ public class QuickRecipe extends Component {
|
|||||||
if (sim.getClass() != in.getClass() || sim.isIdentified())
|
if (sim.getClass() != in.getClass() || sim.isIdentified())
|
||||||
quantity += sim.quantity();
|
quantity += sim.quantity();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (quantity < in.quantity()) {
|
if (quantity < in.quantity()) {
|
||||||
curr.sprite.alpha(0.3f);
|
curr.sprite.alpha(0.3f);
|
||||||
hasInputs = false;
|
hasInputs = false;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
hasInputs = false;
|
||||||
|
}
|
||||||
|
|
||||||
curr.showExtraInfo(false);
|
curr.showExtraInfo(false);
|
||||||
add(curr);
|
add(curr);
|
||||||
this.inputs.add(curr);
|
this.inputs.add(curr);
|
||||||
@@ -159,7 +161,7 @@ public class QuickRecipe extends Component {
|
|||||||
ShatteredPixelDungeon.scene().addToFront(new WndInfoItem(output));
|
ShatteredPixelDungeon.scene().addToFront(new WndInfoItem(output));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (!hasInputs){
|
if (Dungeon.hero != null && !hasInputs){
|
||||||
this.output.sprite.alpha(0.3f);
|
this.output.sprite.alpha(0.3f);
|
||||||
}
|
}
|
||||||
this.output.showExtraInfo(false);
|
this.output.showExtraInfo(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user