v0.4.0: Refactored strength requirements, also changed how they scale

Also refactored class armor a bit so that it is upgradeable
This commit is contained in:
Evan Debenham
2016-05-11 04:54:55 -04:00
parent f724d4c2b9
commit 96c9ca6de4
17 changed files with 111 additions and 98 deletions
@@ -280,7 +280,7 @@ public class Hero extends Char {
evasion /= 2;
}
int aEnc = belongings.armor != null ? belongings.armor.STR - STR() : 9 - STR();
int aEnc = belongings.armor != null ? belongings.armor.STRReq() - STR() : 9 - STR();
if (aEnc > 0) {
return (int)(defenseSkill * evasion / Math.pow( 1.5, aEnc ));
@@ -342,7 +342,7 @@ public class Hero extends Char {
if (hasteLevel != 0)
speed *= Math.pow(1.2, hasteLevel);
int aEnc = belongings.armor != null ? belongings.armor.STR - STR() : 0;
int aEnc = belongings.armor != null ? belongings.armor.STRReq() - STR() : 0;
if (aEnc > 0) {
return (float)(speed * Math.pow( 1.3, -aEnc ));