Changed too many things to fit in commit log
This commit is contained in:
@@ -51,7 +51,7 @@ public class StatusEffects implements ContentList {
|
||||
|
||||
@Override
|
||||
public void update(Unit unit, float time) {
|
||||
unit.velocity.scl(0.7f);
|
||||
unit.getVelocity().scl(0.7f);
|
||||
|
||||
if (Mathf.chance(Timers.delta() * 0.15f)) {
|
||||
Effects.effect(EnvironmentFx.freezing, unit.x + Mathf.range(unit.getSize() / 2f), unit.y + Mathf.range(unit.getSize() / 2f));
|
||||
@@ -70,7 +70,7 @@ public class StatusEffects implements ContentList {
|
||||
Effects.effect(EnvironmentFx.wet, unit.x + Mathf.range(unit.getSize() / 2f), unit.y + Mathf.range(unit.getSize() / 2f));
|
||||
}
|
||||
|
||||
unit.velocity.scl(0.999f);
|
||||
unit.getVelocity().scl(0.999f);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -90,7 +90,7 @@ public class StatusEffects implements ContentList {
|
||||
|
||||
@Override
|
||||
public void update(Unit unit, float time) {
|
||||
unit.velocity.scl(0.8f);
|
||||
unit.getVelocity().scl(0.8f);
|
||||
unit.damagePeriodic(0.1f);
|
||||
|
||||
if (Mathf.chance(Timers.delta() * 0.2f)) {
|
||||
@@ -106,7 +106,7 @@ public class StatusEffects implements ContentList {
|
||||
Effects.effect(EnvironmentFx.oily, unit.x + Mathf.range(unit.getSize() / 2f), unit.y + Mathf.range(unit.getSize() / 2f));
|
||||
}
|
||||
|
||||
unit.velocity.scl(0.6f);
|
||||
unit.getVelocity().scl(0.6f);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -39,7 +39,7 @@ public class TurretBullets implements ContentList {
|
||||
|
||||
@Override
|
||||
public void init(Bullet b) {
|
||||
b.velocity.setLength(0.6f + Mathf.random(2f));
|
||||
b.getVelocity().setLength(0.6f + Mathf.random(2f));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user