From 5a30d8964797765e0b860b14bba1f2b533dc8b24 Mon Sep 17 00:00:00 2001
From: Evan Debenham <Evan@ShatteredPixel.com>
Date: Tue, 7 Jun 2016 16:44:02 -0400
Subject: [PATCH] v0.4.0: added more decription detail to weapons and armor

---
 .../shatteredpixeldungeon/items/armor/Armor.java              | 4 +++-
 .../shatteredpixeldungeon/items/weapon/melee/MeleeWeapon.java | 2 ++
 .../items/weapon/missiles/MissileWeapon.java                  | 2 ++
 .../shatteredpixeldungeon/messages/items/items.properties     | 2 ++
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java
index 657953a8b..51f2deabc 100644
--- a/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java
+++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java
@@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
 import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
 import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
 import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
+import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
 import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
 import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal;
 import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
@@ -57,7 +58,6 @@ public class Armor extends EquipableItem {
 
 	private static final int HITS_TO_KNOW    = 10;
 
-	private static final String TXT_TO_STRING	= "%s :%d";
 	protected static final String AC_DETACH       = "DETACH";
 	
 	public int tier;
@@ -270,6 +270,8 @@ public class Armor extends EquipableItem {
 			
 			if (STRReq() > Dungeon.hero.STR()) {
 				info += " " + Messages.get(Armor.class, "too_heavy");
+			} else if (Dungeon.hero.heroClass == HeroClass.ROGUE && Dungeon.hero.STR() > STRReq()){
+				info += " " + Messages.get(Armor.class, "excess_str");
 			}
 		} else {
 			info += "\n\n" + Messages.get(Armor.class, "avg_absorb", typicalDR(), STRReq(0));
diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MeleeWeapon.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MeleeWeapon.java
index 64970ba58..8a8dd8ebb 100644
--- a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MeleeWeapon.java
+++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MeleeWeapon.java
@@ -67,6 +67,8 @@ public class MeleeWeapon extends Weapon {
 			info += "\n\n" + Messages.get(MeleeWeapon.class, "stats_known", tier, Math.round(min()*dmgfactor), Math.round(max()*dmgfactor), STRReq());
 			if (STRReq() > Dungeon.hero.STR()) {
 				info += " " + Messages.get(Weapon.class, "too_heavy");
+			} else if (Dungeon.hero.STR() > STRReq()){
+				info += " " + Messages.get(Weapon.class, "excess_str", Dungeon.hero.STR() - STRReq());
 			}
 		} else {
 			info += "\n\n" + Messages.get(MeleeWeapon.class, "stats_unknown", tier, min(0), max(0), STRReq(0));
diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/missiles/MissileWeapon.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/missiles/MissileWeapon.java
index 6f9e4937a..df00d6ca4 100644
--- a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/missiles/MissileWeapon.java
+++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/missiles/MissileWeapon.java
@@ -149,6 +149,8 @@ abstract public class MissileWeapon extends Weapon {
 
 		if (STRReq() > Dungeon.hero.STR()) {
 			info += " " + Messages.get(Weapon.class, "too_heavy");
+		} else if (Dungeon.hero.heroClass == HeroClass.HUNTRESS && Dungeon.hero.STR() > STRReq()){
+			info += " " + Messages.get(Weapon.class, "excess_str", Dungeon.hero.STR() - STRReq());
 		}
 
 		if (enchantment != null){
diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties
index 92d86d07f..45d838b9f 100644
--- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties
+++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties
@@ -69,6 +69,7 @@ items.armor.armor.curr_absorb=This armor blocks up to _%d damage_ and requires _
 items.armor.armor.avg_absorb=Typically this armor blocks up to _%d damage_ and requires _%d strength_ to use properly.
 items.armor.armor.too_heavy=Because of your inadequate strength wearing this armor will decrease your ability to move and evade.
 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.
 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.
@@ -870,6 +871,7 @@ items.weapon.missiles.tamahawk.desc=This throwing axe is not that heavy, but it
 
 items.weapon.weapon.identify=You are now familiar enough with your %s to identify it. It is %s.
 items.weapon.weapon.too_heavy=Because of your inadequate strength you will use this weapon with decreased attack speed and accuracy.
+items.weapon.weapon.excess_str=Because of your excess strength, you will deal up to _%d bonus damage_ with this weapon.
 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.