v2.0.0: fixed capitalization errors in item freezing/burning text

This commit is contained in:
Evan Debenham
2022-11-21 11:03:09 -05:00
parent ccf8cfcbfa
commit 0dd384daed
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ public class Burning extends Buff implements Hero.Doom {
if (!burnable.isEmpty()){ if (!burnable.isEmpty()){
Item toBurn = Random.element(burnable).detach(hero.belongings.backpack); 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){ if (toBurn instanceof MysteryMeat || toBurn instanceof FrozenCarpaccio){
ChargrilledMeat steak = new ChargrilledMeat(); ChargrilledMeat steak = new ChargrilledMeat();
if (!steak.collect( hero.belongings.backpack )) { if (!steak.collect( hero.belongings.backpack )) {

View File

@@ -71,7 +71,7 @@ public class Frost extends FlavourBuff {
if (!freezable.isEmpty()){ if (!freezable.isEmpty()){
Item toFreeze = Random.element(freezable).detach( hero.belongings.backpack ); 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){ if (toFreeze instanceof Potion){
((Potion) toFreeze).shatter(hero.pos); ((Potion) toFreeze).shatter(hero.pos);
} else if (toFreeze instanceof MysteryMeat){ } else if (toFreeze instanceof MysteryMeat){