From 0dd384daeda2eacb5f5dfd4dfbcb97d7116791d2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 21 Nov 2022 11:03:09 -0500 Subject: [PATCH] v2.0.0: fixed capitalization errors in item freezing/burning text --- .../shatteredpixeldungeon/actors/buffs/Burning.java | 2 +- .../shatteredpixeldungeon/actors/buffs/Frost.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java index d54bb1925..36d1b813b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java @@ -117,7 +117,7 @@ public class Burning extends Buff implements Hero.Doom { if (!burnable.isEmpty()){ Item toBurn = Random.element(burnable).detach(hero.belongings.backpack); - GLog.w( Messages.get(this, "burnsup", Messages.capitalize(toBurn.title())) ); + GLog.w( Messages.capitalize(Messages.get(this, "burnsup", toBurn.title())) ); if (toBurn instanceof MysteryMeat || toBurn instanceof FrozenCarpaccio){ ChargrilledMeat steak = new ChargrilledMeat(); if (!steak.collect( hero.belongings.backpack )) { diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java index c15dd3c67..62930a69a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java @@ -71,7 +71,7 @@ public class Frost extends FlavourBuff { if (!freezable.isEmpty()){ Item toFreeze = Random.element(freezable).detach( hero.belongings.backpack ); - GLog.w( Messages.get(this, "freezes", toFreeze.title()) ); + GLog.w( Messages.capitalize(Messages.get(this, "freezes", toFreeze.title())) ); if (toFreeze instanceof Potion){ ((Potion) toFreeze).shatter(hero.pos); } else if (toFreeze instanceof MysteryMeat){