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())
|
||||
quantity += sim.quantity();
|
||||
}
|
||||
}
|
||||
|
||||
if (quantity < in.quantity()) {
|
||||
curr.sprite.alpha(0.3f);
|
||||
if (quantity < in.quantity()) {
|
||||
curr.sprite.alpha(0.3f);
|
||||
hasInputs = false;
|
||||
}
|
||||
} else {
|
||||
hasInputs = false;
|
||||
}
|
||||
|
||||
curr.showExtraInfo(false);
|
||||
add(curr);
|
||||
this.inputs.add(curr);
|
||||
@@ -159,7 +161,7 @@ public class QuickRecipe extends Component {
|
||||
ShatteredPixelDungeon.scene().addToFront(new WndInfoItem(output));
|
||||
}
|
||||
};
|
||||
if (!hasInputs){
|
||||
if (Dungeon.hero != null && !hasInputs){
|
||||
this.output.sprite.alpha(0.3f);
|
||||
}
|
||||
this.output.showExtraInfo(false);
|
||||
|
||||
Reference in New Issue
Block a user