add abilities

This commit is contained in:
2026-05-17 06:23:39 -07:00
parent 07fd0bad33
commit 3ca0ce99db
7 changed files with 272 additions and 0 deletions
@@ -0,0 +1,37 @@
package org.project.abilities;
import org.project.entity.Entity;
public class InfernoBreath extends SpecialAbility{
/*
Dragon use this special ability
its fiery breath deals huge damage to the enemy
*/
private final int breathDamage = 20;
public InfernoBreath() {
super("InfernoBreath",25, 1,AbilityTarget.TARGET);
}
@Override
public void onApply(Entity target) {
super.onApply(target);
}
@Override
public void onTick(Entity target) {
target.takeDamage(breathDamage);
System.out.println("ooooh! " + getName() + " impacted with " + target.getName());
reduceDuration();
}
@Override
public void onExpire(Entity self) {
super.onExpire(self);
}
}