This commit is contained in:
Anuken 2020-07-28 17:19:57 -04:00
parent 3251dde4a8
commit 81265500a5
4 changed files with 10 additions and 8 deletions

View File

@ -1150,13 +1150,13 @@ public class Blocks implements ContentList{
solarPanel = new SolarGenerator("solar-panel"){{
requirements(Category.power, with(Items.lead, 10, Items.silicon, 15));
powerProduction = 0.06f;
powerProduction = 0.07f;
}};
largeSolarPanel = new SolarGenerator("solar-panel-large"){{
requirements(Category.power, with(Items.lead, 100, Items.silicon, 145, Items.phasefabric, 15));
size = 3;
powerProduction = 0.9f;
powerProduction = 0.95f;
}};
thoriumReactor = new NuclearReactor("thorium-reactor"){{

View File

@ -139,7 +139,7 @@ public class WaveGraph extends Table{
for(Mode m : Mode.all){
t.button("$wavemode." + m.name(), Styles.fullTogglet, () -> {
mode = m;
}).group(group).height(32f).update(b -> b.setChecked(m == mode)).width(130f);
}).group(group).height(35f).update(b -> b.setChecked(m == mode)).width(130f);
}
}).growX();
}

View File

@ -4,7 +4,7 @@ import arc.math.*;
import arc.struct.*;
import mindustry.world.meta.*;
import static mindustry.Vars.state;
import static mindustry.Vars.*;
public class SolarGenerator extends PowerGenerator{
@ -25,9 +25,11 @@ public class SolarGenerator extends PowerGenerator{
@Override
public void updateTile(){
productionEfficiency =
Mathf.maxZero(Attribute.light.env() + state.rules.solarPowerMultiplier < 0 ?
Mathf.maxZero(Attribute.light.env() +
(state.rules.solarPowerMultiplier < 0 ?
(state.rules.lighting ? 1f - state.rules.ambientLight.a : 1f) :
state.rules.solarPowerMultiplier);
state.rules.solarPowerMultiplier
));
}
}
}

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=e731db5f9be2004fab0b3b23206f6c2211d01176
archash=d2dcaa6c88e82ee1958b1e019f63f6c64d3f843b