Navanax buff (#8925)
* Update UnitTypes.java its late at night imma just commit changes and pray i didnt fuck up anywhere * Allow changing suppress effect color * Fx.regenSuppressParticle and Fx.regenSuppressSeek now color-aware - regenSuppressParticle's color handling changed, allows changing the from color intead of the to color * Damage.applySuppression accepts color as an argument, old method signature still exists * SuppressionFieldAbility has a new field allowing to specify the color for effect particles * BulletType has a new field allowing to specify the color for suppress effect particles * BuildingComp has a new field storing the color to be used for suppression effect * name --------- Co-authored-by: BalaM314 <71201189+BalaM314@users.noreply.github.com>
This commit is contained in:
@@ -27,6 +27,7 @@ public class SuppressionFieldAbility extends Ability{
|
||||
public boolean active = true;
|
||||
public Interp particleInterp = f -> Interp.circleOut.apply(Interp.slope.apply(f));
|
||||
public Color particleColor = Pal.sap.cpy();
|
||||
public Color effectColor = Pal.sapBullet;
|
||||
|
||||
public float applyParticleChance = 13f;
|
||||
|
||||
@@ -38,7 +39,7 @@ public class SuppressionFieldAbility extends Ability{
|
||||
|
||||
if((timer += Time.delta) >= reload){
|
||||
Tmp.v1.set(x, y).rotate(unit.rotation - 90f).add(unit);
|
||||
Damage.applySuppression(unit.team, Tmp.v1.x, Tmp.v1.y, range, reload, reload, applyParticleChance, unit);
|
||||
Damage.applySuppression(unit.team, Tmp.v1.x, Tmp.v1.y, range, reload, reload, applyParticleChance, unit, effectColor);
|
||||
timer = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user