use of com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Berserk in project shattered-pixel-dungeon-gdx by 00-Evan.
the class Hero method damageRoll.
@Override
public int damageRoll() {
KindOfWeapon wep = belongings.weapon;
int dmg;
if (wep != null) {
dmg = wep.damageRoll(this) + RingOfForce.armedDamageBonus(this);
} else {
dmg = RingOfForce.damageRoll(this);
}
if (dmg < 0)
dmg = 0;
if (subClass == HeroSubClass.BERSERKER) {
berserk = Buff.affect(this, Berserk.class);
dmg = berserk.damageFactor(dmg);
}
return buff(Fury.class) != null ? (int) (dmg * 1.5f) : dmg;
}
Aggregations