package org.project.entity.enemies;

import org.project.entity.Entity;
import org.project.item.weapons.Weapon;

public class Dragon extends Enemy
{

    public Dragon()
    {
        super("Dragon", 150, 100, null);
    }

    @Override
    public int getXpReward()
    {
        return 500;
    }

    @Override
    public String getEnemyType()
    {
        return "DRAGON";
    }

    @Override
    public void attack(Entity target)
    {
        int damage = 35;
        System.out.println("DRAGON uses FIRE BREATH for " + damage + " damage!");
        System.out.println("The fire breath bypasses all defenses!");
        target.takeDamage(damage);
    }

    @Override
    public void takeDamage(int damage)
    {
        super.takeDamage(damage);
        if (isAlive()) {
            System.out.println("HP: " + getHP() + "/" + getMaxHP());
        }
    }
    @Override
    public int getMaxMP() {
        return 0;
    }
}
