// Script that contains definitions for Breath / Ranged / Cone Attacks
// (still trying to think of the most descriptive name)
// Author: InnerTri


// No imports needed, since this is just a class declaration,
// and a declaration of objects of said class

// These objects are called 



// Classes
// Define a class for Breath Attacks
class BreathAttack {
	radius = 3;
	distance = 10;
	knockback = {x: 0.35, y:0.35};
	damage = 1;
	effectType = "";
	durationTicks = 20;
	amplifier = 1;
	showParticles = true;

	constructor(radius, distance, knockback, damage, effectType = "", durationTicks = 20, amplifier = 1, showParticles = true) {
		this.radius = radius;
		this.distance = distance;
		this.knockback = knockback;
		this.damage = damage;
		this.effectType = effectType;
		this.durationTicks = durationTicks;
		this.amplifier = amplifier;
		this.showParticles = showParticles;
	}
}





// create definitions all of the types of breath attacks

// Skeleton Horse
export const breath_skeleton = new BreathAttack(
	1,
	10,
	{x: 0.35, y:0.35},
	1
);



// Spider Horse
export const breath_spider = new BreathAttack(
	4,
	10,
	{x: 0.35, y:0.35},
	1,
	"slowness",
	60,
	1,
	true
);



// Dragon Horse
export const breath_dragon = new BreathAttack(
	5,
	32,
	{x: 0.5, y:0.5},
	2
);