From 18479aae92c3586c628263e7259c145c1df0aa9c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 5 Mar 2025 17:23:55 -0500 Subject: [PATCH] v3.0.1: alchemy guide icons are no longer greyed out in main menu --- .../shatteredpixeldungeon/ui/QuickRecipe.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickRecipe.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickRecipe.java index ea0988012..bd9b5eb80 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickRecipe.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickRecipe.java @@ -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);