Package mindustry.entities.abilities
Class MoveLightningAbility
java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.MoveLightningAbility
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Whether the spawn side alternatesBullet type that is fired.float
Bullet angle parametersfloat
Bullet angle parametersfloat
Chance of firing every tick.Lightning colorfloat
Lightning damageJittering heat sprite like the shield on v5 Javelinint
Length of the lightning.float
Speeds for when to start lightninging and when to stop getting fasterfloat
Speeds for when to start lightninging and when to stop getting fasterboolean
protected float
float
Offset along the X axisfloat
Shifts where the lightning spawns along the Y axis -
Constructor Summary
ConstructorDescriptionMoveLightningAbility
(float damage, int length, float chance, float y, float minSpeed, float maxSpeed, Color color) MoveLightningAbility
(float damage, int length, float chance, float y, float minSpeed, float maxSpeed, Color color, String heatRegion) -
Method Summary
-
Field Details
-
damage
public float damageLightning damage -
chance
public float chanceChance of firing every tick. Set >= 1 to always fire lightning every tick at max speed -
length
public int lengthLength of the lightning. <= 0 to disable -
minSpeed
public float minSpeedSpeeds for when to start lightninging and when to stop getting faster -
maxSpeed
public float maxSpeedSpeeds for when to start lightninging and when to stop getting faster -
color
Lightning color -
y
public float yShifts where the lightning spawns along the Y axis -
x
public float xOffset along the X axis -
alternate
public boolean alternateWhether the spawn side alternates -
heatRegion
Jittering heat sprite like the shield on v5 Javelin -
bullet
Bullet type that is fired. Can be null -
bulletAngle
public float bulletAngleBullet angle parameters -
bulletSpread
public float bulletSpreadBullet angle parameters -
shootEffect
-
parentizeEffects
public boolean parentizeEffects -
shootSound
-
side
protected float side
-
-
Constructor Details
-
MoveLightningAbility
-
MoveLightningAbility
public MoveLightningAbility(float damage, int length, float chance, float y, float minSpeed, float maxSpeed, Color color)
-
-
Method Details