mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 12:19:59 +00:00
Create Barrier Abilities + Heavy Refactoring
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user