From 9bc886dd8a9efe4d451baf583383f802e76b5353 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 2 Nov 2023 16:28:31 -0400 Subject: [PATCH] v2.3.0: improved game log entries when picking up dark gold --- .../shatteredpixeldungeon/actors/hero/Hero.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index e0d931248..ff3e0bfc4 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -988,6 +988,15 @@ public class Hero extends Char { || item instanceof Key || item instanceof Guidebook) { //Do Nothing + } else if (item instanceof DarkGold) { + DarkGold existing = belongings.getItem(DarkGold.class); + if (existing != null){ + if (existing.quantity() >= 40) { + GLog.p(Messages.get(DarkGold.class, "you_now_have", existing.quantity())); + } else { + GLog.i(Messages.get(DarkGold.class, "you_now_have", existing.quantity())); + } + } } else { //TODO make all unique items important? or just POS / SOU?