From 3d93c615bf9a80ba37702c28c5066de6afadb576 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 13 Jun 2023 13:14:19 -0400 Subject: [PATCH] v2.1.2: Armors now include tier in their desc --- core/src/main/assets/messages/items/items.properties | 4 ++-- .../shatteredpixeldungeon/items/armor/Armor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/assets/messages/items/items.properties b/core/src/main/assets/messages/items/items.properties index 83e48dc44..9d6df66ea 100644 --- a/core/src/main/assets/messages/items/items.properties +++ b/core/src/main/assets/messages/items/items.properties @@ -78,8 +78,8 @@ items.armor.armor.detach_seal=You detach the seal from your armor. items.armor.armor.equip_cursed=The armor constricts around you painfully. items.armor.armor.identify=You are now familiar enough with your armor to identify it. items.armor.armor.incompatible=Interaction of different types of magic has erased the glyph on this armor! -items.armor.armor.curr_absorb=This armor blocks _%1$d-%2$d damage_ and requires _%3$d strength_ to use properly. -items.armor.armor.avg_absorb=Typically this armor blocks _%1$d-%2$d damage_ and requires _%3$d strength_ to use properly. +items.armor.armor.curr_absorb=This _tier-%1$d_ armor blocks _%2$d-%3$d damage_ and requires _%4$d strength_ to use properly. +items.armor.armor.avg_absorb=Typically this _tier-%1$d_ armor blocks _%2$d-%3$d damage_ and requires _%4$d strength_ to use properly. items.armor.armor.too_heavy=Because of your inadequate strength wearing this armor will decrease your ability to move, evade, and defend. items.armor.armor.probably_too_heavy=Probably this armor is too heavy for you. items.armor.armor.excess_str=Because of your excess strength, you are _more evasive_ while wearing this armor. diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java index b26702a8d..3870ebd2b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java @@ -471,13 +471,13 @@ public class Armor extends EquipableItem { String info = desc(); if (levelKnown) { - info += "\n\n" + Messages.get(Armor.class, "curr_absorb", DRMin(), DRMax(), STRReq()); + info += "\n\n" + Messages.get(Armor.class, "curr_absorb", tier, DRMin(), DRMax(), STRReq()); if (STRReq() > Dungeon.hero.STR()) { info += " " + Messages.get(Armor.class, "too_heavy"); } } else { - info += "\n\n" + Messages.get(Armor.class, "avg_absorb", DRMin(0), DRMax(0), STRReq(0)); + info += "\n\n" + Messages.get(Armor.class, "avg_absorb", tier, DRMin(0), DRMax(0), STRReq(0)); if (STRReq(0) > Dungeon.hero.STR()) { info += " " + Messages.get(Armor.class, "probably_too_heavy");