v0.2.2: modified weightstone speed logic, now factors itself in before ring of furor.

This commit is contained in:
Evan Debenham 2014-10-29 16:09:26 -04:00
parent a17c141738
commit 6810d0adef

View File

@ -124,16 +124,17 @@ public class Weapon extends KindOfWeapon {
encumrance -= 2; encumrance -= 2;
} }
float DLY = this.DLY * (imbue == Imbue.LIGHT ? 0.667f : (imbue == Imbue.HEAVY ? 1.667f : 1.0f));
int bonus = 0; int bonus = 0;
for (Buff buff : hero.buffs(RingOfFuror.Furor.class)) { for (Buff buff : hero.buffs(RingOfFuror.Furor.class)) {
bonus += ((RingOfFuror.Furor)buff).level; bonus += ((RingOfFuror.Furor)buff).level;
} }
float DLY = (float)(0.25 + (this.DLY - 0.25)*Math.pow(0.8, bonus)); DLY = (float)(0.25 + (DLY - 0.25)*Math.pow(0.8, bonus));
return return
(encumrance > 0 ? (float)(DLY * Math.pow( 1.2, encumrance )) : DLY) * (encumrance > 0 ? (float)(DLY * Math.pow( 1.2, encumrance )) : DLY);
(imbue == Imbue.LIGHT ? 0.667f : (imbue == Imbue.HEAVY ? 1.667f : 1.0f));
} }
@Override @Override