v1.4.0: added new text to better communicate curse state on wep/arm

This commit is contained in:
Evan Debenham
2022-07-31 14:28:07 -04:00
parent 397bc0bbbe
commit 31ccd854ab
3 changed files with 12 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ items.armor.armor.defense=It is augmented to enhance _defense._
items.armor.armor.inscribed=It is inscribed with a _%s._
items.armor.armor.cursed_worn=Because this armor is cursed, you are powerless to remove it.
items.armor.armor.cursed=You can feel a malevolent magic lurking within this armor.
items.armor.armor.weak_cursed=Despite the curse, you are able to unequip this armor.
items.armor.armor.not_cursed=This armor is free of malevolent magic.
items.armor.armor.seal_attached=The Warrior's broken seal is attached to this armor, it is providing him up to _%d shielding_.
items.armor.armor$glyph.glyph=glyph
@@ -1695,6 +1696,7 @@ items.weapon.weapon.excess_str=Because of your excess strength, you will deal up
items.weapon.weapon.incompatible=Interaction of different types of magic has negated the enchantment on this weapon!
items.weapon.weapon.cursed_worn=Because this weapon is cursed, you are powerless to remove it.
items.weapon.weapon.cursed=You can feel a malevolent magic lurking within this weapon.
items.weapon.weapon.weak_cursed=Despite the curse, you are able to unequip this weapon.
items.weapon.weapon.not_cursed=This weapon is free of malevolent magic.
items.weapon.weapon.faster=It is augmented to enhance _speed._
items.weapon.weapon.stronger=It is augmented to enhance _damage._

View File

@@ -494,7 +494,11 @@ public class Armor extends EquipableItem {
} else if (seal != null) {
info += "\n\n" + Messages.get(Armor.class, "seal_attached", seal.maxShield(tier, level()));
} else if (!isIdentified() && cursedKnown){
info += "\n\n" + Messages.get(Armor.class, "not_cursed");
if (glyph != null && glyph.curse()) {
info += "\n\n" + Messages.get(Armor.class, "weak_cursed");
} else {
info += "\n\n" + Messages.get(Armor.class, "not_cursed");
}
}
return info;

View File

@@ -104,7 +104,11 @@ public class MeleeWeapon extends Weapon {
} else if (cursedKnown && cursed) {
info += "\n\n" + Messages.get(Weapon.class, "cursed");
} else if (!isIdentified() && cursedKnown){
info += "\n\n" + Messages.get(Weapon.class, "not_cursed");
if (enchantment != null && enchantment.curse()) {
info += "\n\n" + Messages.get(Weapon.class, "weak_cursed");
} else {
info += "\n\n" + Messages.get(Weapon.class, "not_cursed");
}
}
return info;