v3.0.1: alchemy guide icons are no longer greyed out in main menu

This commit is contained in:
Evan Debenham
2025-03-05 17:23:55 -05:00
parent b6087fb325
commit 18479aae92

View File

@@ -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);