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 ?
(state.rules.lighting ? 1f - state.rules.ambientLight.a : 1f) :
state.rules.solarPowerMultiplier);
Mathf.maxZero(Attribute.light.env() +
(state.rules.solarPowerMultiplier < 0 ?
(state.rules.lighting ? 1f - state.rules.ambientLight.a : 1f) :
state.rules.solarPowerMultiplier
));
}
}
}