v0.2.3: unarmored rogues now gain evasion as if they were wearing cloth

This commit is contained in:
Evan Debenham 2014-12-03 16:58:27 -05:00
parent 23bfbfd3e7
commit 1ad866e0ef

View File

@ -287,7 +287,7 @@ public class Hero extends Char {
evasion /= 2; evasion /= 2;
} }
int aEnc = belongings.armor != null ? belongings.armor.STR - STR() : 0; int aEnc = belongings.armor != null ? belongings.armor.STR - STR() : 9 - STR();
if (aEnc > 0) { if (aEnc > 0) {
return (int)(defenseSkill * evasion / Math.pow( 1.5, aEnc )); return (int)(defenseSkill * evasion / Math.pow( 1.5, aEnc ));