Unit drowning outline color fix

This commit is contained in:
Anuken
2021-07-05 10:55:36 -04:00
parent a7d465439b
commit 1462443f7c
3 changed files with 6 additions and 3 deletions

View File

@@ -377,7 +377,7 @@ public class Vars implements Loadable{
log.log(level, text);
try{
writer.write("[" + Character.toUpperCase(level.name().charAt(0)) +"] " + Log.removeColors(text) + "\n");
writer.write("[" + Character.toUpperCase(level.name().charAt(0)) + "] " + Log.removeColors(text) + "\n");
writer.flush();
}catch(IOException e){
e.printStackTrace();

View File

@@ -749,6 +749,11 @@ public class UnitType extends UnlockableContent{
if(unit.isBoss()){
Draw.mixcol(unit.team.color, Mathf.absin(7f, 1f));
}
Floor floor = unit.isFlying() ? Blocks.air.asFloor() : unit.floorOn();
if(floor.isLiquid){
Draw.color(Color.white, floor.mapColor, unit.drownTime() * 0.4f);
}
}
public void drawOutline(Unit unit){

View File

@@ -198,7 +198,5 @@ public class PayloadDeconstructor extends PayloadBlock{
}
deconstructing = Payload.read(read);
}
}
}