From 370b65d6b2243e4d9393f58277319274afbe1850 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 1 Sep 2024 13:51:00 -0400 Subject: [PATCH] v2.5.0: fixed 'fully stocked' badge being unlockable after death --- .../java/com/shatteredpixel/shatteredpixeldungeon/Badges.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Badges.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Badges.java index 6ab62efc8..da85fcfbc 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Badges.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Badges.java @@ -672,7 +672,9 @@ public class Badges { } //doesn't actually use catalogs, but triggers at the same time effectively - if (!local.contains(Badge.CATALOG_POTIONS_SCROLLS) && Potion.allKnown() && Scroll.allKnown()){ + if (!local.contains(Badge.CATALOG_POTIONS_SCROLLS) + && Potion.allKnown() && Scroll.allKnown() + && Dungeon.hero != null && Dungeon.hero.isAlive()){ local.add(Badge.CATALOG_POTIONS_SCROLLS); displayBadge(Badge.CATALOG_POTIONS_SCROLLS); }