package org.project.item.weapons;

import org.project.entity.Entity;

public class Fireball extends Weapon{
    private static int DEFAULT_DAMAGE = 20;
    private static int DEFAULT_MANACOST = 20;
    private static int DEFAULT_SPECIAL_MANA = 20;


    public Fireball() {
        super(DEFAULT_DAMAGE, DEFAULT_MANACOST, DEFAULT_SPECIAL_MANA);
    }
    @Override
    public void useSpecialAbility(Entity attacker, Entity target) {
        target.takeDamage(this.getDamage() * 3);
        attacker.reduceMana(this.getManaCost() + 10);
    }
    @Override
    public String getType() {
        return "Dagger(Assassins)";
    }
    @Override
    public String getExplanation() {
        return "Magical balls of fire for Wizards.\n"+
                "Damage: "+ this.getDamage() +" Mana cost: " + this.getManaCost() +
                "\nSpecial ability: Throws 3 fireballs at once inflicting 3 times the normal damage.\n";
    }
}
