Flux speed buff / Server drowning / Delta buff

This commit is contained in:
Anuken
2018-09-04 19:02:40 -04:00
parent 7b90544d91
commit baa7cb3a10
10 changed files with 30 additions and 11 deletions

View File

@@ -302,7 +302,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
}
if(floor.isLiquid){
Draw.tint(Color.WHITE, floor.liquidColor, drownTime);
Draw.tint(Color.WHITE, floor.liquidColor, Mathf.clamp(drownTime));
}else{
Draw.tint(Color.WHITE);
}
@@ -461,6 +461,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
interpolate();
updateBuilding(this); //building happens even with non-locals
status.update(this); //status effect updating also happens with non locals for effect purposes
updateVelocityStatus(mech.drag, mech.maxSpeed); //velocity too, for visual purposes
if(getCarrier() != null){
x = getCarrier().getX();

View File

@@ -259,7 +259,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
drownTime = Mathf.clamp(drownTime);
if(drownTime >= 1f){
if(drownTime >= 0.999f){
damage(health + 1);
}

View File

@@ -87,7 +87,7 @@ public class Lightning extends TimedEntity implements Poolable, DrawTrait, SyncT
if(checkShield(team, x2, y2)) break;
float fangle = angle;
angle += Mathf.range(30f);
angle += Mathf.range(15f);
rect.setSize(attractRange).setCenter(x, y);
Units.getNearbyEnemies(team, rect, entity -> {