Impact cryo requirement fix
This commit is contained in:
@@ -1277,7 +1277,7 @@ public class Blocks{
|
|||||||
drawer = new DrawMulti(new DrawDefault(), new DrawHeatOutput());
|
drawer = new DrawMulti(new DrawDefault(), new DrawHeatOutput());
|
||||||
size = 2;
|
size = 2;
|
||||||
heatOutput = 15f;
|
heatOutput = 15f;
|
||||||
craftTime = 60f * 15f;
|
craftTime = 60f * 12f;
|
||||||
consumeItem(Items.phaseFabric);
|
consumeItem(Items.phaseFabric);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,12 @@ public class BeamNode extends PowerBlock{
|
|||||||
int offset = size/2;
|
int offset = size/2;
|
||||||
for(int j = 1 + offset; j <= range + offset; j++){
|
for(int j = 1 + offset; j <= range + offset; j++){
|
||||||
var other = world.build(x + j * dir.x, y + j * dir.y);
|
var other = world.build(x + j * dir.x, y + j * dir.y);
|
||||||
|
|
||||||
|
//hit insulated wall
|
||||||
|
if(other != null && other.isInsulated()){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if(other != null && other.block.hasPower && other.team == Vars.player.team() && !(other.block instanceof PowerNode)){
|
if(other != null && other.block.hasPower && other.team == Vars.player.team() && !(other.block instanceof PowerNode)){
|
||||||
maxLen = j;
|
maxLen = j;
|
||||||
dest = other;
|
dest = other;
|
||||||
@@ -166,6 +172,12 @@ public class BeamNode extends PowerBlock{
|
|||||||
//find first block with power in range
|
//find first block with power in range
|
||||||
for(int j = 1 + offset; j <= range + offset; j++){
|
for(int j = 1 + offset; j <= range + offset; j++){
|
||||||
var other = world.build(tile.x + j * dir.x, tile.y + j * dir.y);
|
var other = world.build(tile.x + j * dir.x, tile.y + j * dir.y);
|
||||||
|
|
||||||
|
//hit insulated wall
|
||||||
|
if(other != null && other.isInsulated()){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//power nodes do NOT play nice with beam nodes, do not touch them as that forcefully modifies their links
|
//power nodes do NOT play nice with beam nodes, do not touch them as that forcefully modifies their links
|
||||||
if(other != null && other.block.hasPower && other.team == team && !(other.block instanceof PowerNode)){
|
if(other != null && other.block.hasPower && other.team == team && !(other.block instanceof PowerNode)){
|
||||||
links[i] = other;
|
links[i] = other;
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class ImpactReactor extends PowerGenerator{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateTile(){
|
public void updateTile(){
|
||||||
if(efficiency > 0 && power.status >= 0.99f){
|
if(efficiency >= 0.9999f && power.status >= 0.99f){
|
||||||
boolean prevOut = getPowerProduction() <= consPower.requestedPower(this);
|
boolean prevOut = getPowerProduction() <= consPower.requestedPower(this);
|
||||||
|
|
||||||
warmup = Mathf.lerpDelta(warmup, 1f, warmupSpeed * timeScale);
|
warmup = Mathf.lerpDelta(warmup, 1f, warmupSpeed * timeScale);
|
||||||
|
|||||||
Reference in New Issue
Block a user