mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 03:08:38 +07:00
Bugfixes
This commit is contained in:
parent
3251dde4a8
commit
81265500a5
@ -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"){{
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=e731db5f9be2004fab0b3b23206f6c2211d01176
|
||||
archash=d2dcaa6c88e82ee1958b1e019f63f6c64d3f843b
|
||||
|
Loading…
Reference in New Issue
Block a user