v2.3.0: improved game log entries when picking up dark gold

This commit is contained in:
Evan Debenham
2023-11-02 16:28:31 -04:00
parent 27640fb0bf
commit 9bc886dd8a

View File

@@ -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?