Misc cleanup
This commit is contained in:
@@ -1541,7 +1541,6 @@ lenum.shoot = Shoot at a position.
|
|||||||
lenum.shootp = Shoot at a unit/building with velocity prediction.
|
lenum.shootp = Shoot at a unit/building with velocity prediction.
|
||||||
lenum.configure = Building configuration, e.g. sorter item.
|
lenum.configure = Building configuration, e.g. sorter item.
|
||||||
lenum.enabled = Whether the block is enabled.
|
lenum.enabled = Whether the block is enabled.
|
||||||
lenum.color = Illuminator color.
|
|
||||||
|
|
||||||
lenum.always = Always true.
|
lenum.always = Always true.
|
||||||
lenum.idiv = Integer division.
|
lenum.idiv = Integer division.
|
||||||
|
|||||||
@@ -209,6 +209,16 @@ public class BaseAI{
|
|||||||
}
|
}
|
||||||
Tile wtile = world.tile(realX, realY);
|
Tile wtile = world.tile(realX, realY);
|
||||||
|
|
||||||
|
if(tile.block instanceof PayloadConveyor || tile.block instanceof PayloadAcceptor){
|
||||||
|
//near a building
|
||||||
|
for(Point2 point : Edges.getEdges(tile.block.size)){
|
||||||
|
var t = world.build(tile.x + point.x, tile.y + point.y);
|
||||||
|
if(t != null){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//may intersect AI path
|
//may intersect AI path
|
||||||
tmpTiles.clear();
|
tmpTiles.clear();
|
||||||
if(tile.block.solid && wtile != null && wtile.getLinkedTilesAs(tile.block, tmpTiles).contains(t -> path.contains(t.pos()))){
|
if(tile.block.solid && wtile != null && wtile.getLinkedTilesAs(tile.block, tmpTiles).contains(t -> path.contains(t.pos()))){
|
||||||
|
|||||||
@@ -642,6 +642,7 @@ public class HudFragment extends Fragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
void drawInner(Color color, float fract){
|
void drawInner(Color color, float fract){
|
||||||
|
if(fract < 0) return;
|
||||||
if(flip){
|
if(flip){
|
||||||
x += width;
|
x += width;
|
||||||
width = -width;
|
width = -width;
|
||||||
|
|||||||
@@ -30,12 +30,17 @@ public class NuclearReactor extends PowerGenerator{
|
|||||||
public Color lightColor = Color.valueOf("7f19ea");
|
public Color lightColor = Color.valueOf("7f19ea");
|
||||||
public Color coolColor = new Color(1, 1, 1, 0f);
|
public Color coolColor = new Color(1, 1, 1, 0f);
|
||||||
public Color hotColor = Color.valueOf("ff9575a3");
|
public Color hotColor = Color.valueOf("ff9575a3");
|
||||||
public float itemDuration = 120; //time to consume 1 fuel
|
/** ticks to consume 1 fuel */
|
||||||
public float heating = 0.01f; //heating per frame * fullness
|
public float itemDuration = 120;
|
||||||
public float smokeThreshold = 0.3f; //threshold at which block starts smoking
|
/** heating per frame * fullness */
|
||||||
|
public float heating = 0.01f;
|
||||||
|
/** threshold at which block starts smoking */
|
||||||
|
public float smokeThreshold = 0.3f;
|
||||||
|
/** heat threshold at which lights start flashing */
|
||||||
|
public float flashThreshold = 0.46f;
|
||||||
public int explosionRadius = 19;
|
public int explosionRadius = 19;
|
||||||
public int explosionDamage = 1250;
|
public int explosionDamage = 1250;
|
||||||
public float flashThreshold = 0.46f; //heat threshold at which the lights start flashing
|
/** heat removed per unit of coolant */
|
||||||
public float coolantPower = 0.5f;
|
public float coolantPower = 0.5f;
|
||||||
|
|
||||||
public @Load("@-top") TextureRegion topRegion;
|
public @Load("@-top") TextureRegion topRegion;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=383cca56f16c9cb00c77db681860d6f420f25b53
|
archash=8a929ec9ae5eb3501f7d3d69848481d49044aad1
|
||||||
|
|||||||
Reference in New Issue
Block a user