Search in sources :

Example 1 with Berserk

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;
}
Also used : KindOfWeapon(com.shatteredpixel.shatteredpixeldungeon.items.KindOfWeapon) Berserk(com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Berserk)

Aggregations

Berserk (com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Berserk)1 KindOfWeapon (com.shatteredpixel.shatteredpixeldungeon.items.KindOfWeapon)1