mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 03:59:26 +02:00
i don't like this
This commit is contained in:
@@ -279,18 +279,19 @@ public class OverDrawer {
|
||||
|
||||
public static void drawMassLink(MassDriver.MassDriverBuild from){
|
||||
float sin = Mathf.absin(Time.time, 6f, 1f);
|
||||
Groups.build.each(b -> b instanceof MassDriver.MassDriverBuild fromMass &&
|
||||
|
||||
Groups.build.each(b -> {
|
||||
if(b instanceof MassDriver.MassDriverBuild fromMass &&
|
||||
world.build(fromMass.link) == from &&
|
||||
from.within(fromMass.x, fromMass.y, ((MassDriver)fromMass.block).range) &&
|
||||
!linkedMasses.contains(from), b -> {
|
||||
linkedMasses.add((MassDriver.MassDriverBuild) b);
|
||||
drawMassLink((MassDriver.MassDriverBuild) b);
|
||||
!linkedMasses.contains(fromMass)) {
|
||||
linkedMasses.add(fromMass);
|
||||
drawMassLink(fromMass);
|
||||
}
|
||||
});
|
||||
|
||||
if(world.build(from.link) instanceof MassDriver.MassDriverBuild to && from != to && to.within(from.x, from.y, ((MassDriver)from.block).range)){
|
||||
if(world.build(from.link) instanceof MassDriver.MassDriverBuild to){
|
||||
Tmp.v1.set(from.x + from.block.offset, from.y + from.block.offset).sub(to.x, to.y).limit(from.block.size * tilesize + sin + 0.5f);
|
||||
float x2 = from.x - Tmp.v1.x, y2 = from.y - Tmp.v1.y,
|
||||
x1 = to.x + Tmp.v1.x, y1 = to.y + Tmp.v1.y;
|
||||
float x2 = from.x - Tmp.v1.x, y2 = from.y - Tmp.v1.y, x1 = to.x + Tmp.v1.x, y1 = to.y + Tmp.v1.y;
|
||||
int segs = (int)(to.dst(from.x, from.y)/tilesize);
|
||||
|
||||
Lines.stroke(4f, Pal.gray);
|
||||
|
||||
Reference in New Issue
Block a user