Create Barrier Abilities + Heavy Refactoring

This commit is contained in:
Kam committed 2026-02-17 14:32:13 -05:00
1 parent d1f2c9695c
commit c07e9e7006
53 files changed
+1890 -1460

No files matched your search

@@ -16,9 +16,9 @@ import java.util.List;
/**
* Energy Slicer entity - a thin, wide blade projectile that flies in a straight line.
* JJK Cleave/Dismantle inspired. Piercing by default (passes through entities).
* Extends EntityAbilityProjectile to leverage the existing projectile infrastructure.
* Extends EntityEnergyAbility to leverage the existing projectile infrastructure.
*/
public class EntityEnergySlicer extends EntityAbilityProjectile {
public class EntityEnergySlicer extends EntityEnergyProjectile {
private float sliceWidth = 3.0f;
private float sliceThickness = 0.15f;
@@ -50,17 +50,6 @@ public class EntityEnergySlicer extends EntityAbilityProjectile {
calculateInitialVelocity(owner, target, x, y, z);
}
/**
* Setup in charging mode (windup phase).
*/
public void setupCharging(EnergyAnchorData anchor, int chargeDuration, float width, float thickness) {
this.sliceWidth = 0.01f;
this.sliceThickness = 0.01f;
super.setupCharging(anchor, chargeDuration);
// Store target dimensions
this.targetSize = width; // Re-use base field for width
}
// Targets stored during charging for grow animation
private float targetSliceWidth = 3.0f;
private float targetSliceThickness = 0.15f;