Unit drowning outline color fix
This commit is contained in:
@@ -377,7 +377,7 @@ public class Vars implements Loadable{
|
|||||||
log.log(level, text);
|
log.log(level, text);
|
||||||
|
|
||||||
try{
|
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();
|
writer.flush();
|
||||||
}catch(IOException e){
|
}catch(IOException e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -749,6 +749,11 @@ public class UnitType extends UnlockableContent{
|
|||||||
if(unit.isBoss()){
|
if(unit.isBoss()){
|
||||||
Draw.mixcol(unit.team.color, Mathf.absin(7f, 1f));
|
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){
|
public void drawOutline(Unit unit){
|
||||||
|
|||||||
@@ -198,7 +198,5 @@ public class PayloadDeconstructor extends PayloadBlock{
|
|||||||
}
|
}
|
||||||
deconstructing = Payload.read(read);
|
deconstructing = Payload.read(read);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user