Initial reconstructor impl
This commit is contained in:
@@ -184,7 +184,7 @@ public class Damage{
|
||||
float dst = tr.set(entity.getX() - x, entity.getY() - y).len();
|
||||
entity.vel().add(tr.setLength((1f - dst / radius) * 2f / entity.mass()));
|
||||
|
||||
if(complete && damage >= 9999999f && entity == player){
|
||||
if(complete && damage >= 9999999f && entity.isPlayer()){
|
||||
Events.fire(Trigger.exclusionDeath);
|
||||
}
|
||||
};
|
||||
@@ -270,6 +270,7 @@ public class Damage{
|
||||
}
|
||||
|
||||
@Struct
|
||||
static
|
||||
class PropCellStruct{
|
||||
byte x;
|
||||
byte y;
|
||||
|
||||
@@ -13,8 +13,6 @@ import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.blocks.environment.*;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import static mindustry.Vars.content;
|
||||
|
||||
@Component
|
||||
|
||||
@@ -223,7 +223,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
|
||||
}
|
||||
|
||||
public float rotdeg(){
|
||||
return tile.rotation() * 90;
|
||||
return tile.rotdeg();
|
||||
}
|
||||
|
||||
public int rotation(){
|
||||
@@ -704,7 +704,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
|
||||
}
|
||||
|
||||
public void draw(){
|
||||
Draw.rect(block.region, x, y, block.rotate ? rotation() * 90 : 0);
|
||||
Draw.rect(block.region, x, y, block.rotate ? rotdeg() : 0);
|
||||
}
|
||||
|
||||
public void drawLight(){
|
||||
|
||||
Reference in New Issue
Block a user