This commit is contained in:
Skat 2020-11-07 19:46:37 +03:00
parent f8914d0543
commit 9f979cba0d
3 changed files with 4 additions and 4 deletions

View file

@ -186,7 +186,7 @@ public class Control implements ApplicationListener, Loadable{
if(state.isCampaign()){
ui.announce("[accent]" + state.rules.sector.name() + "\n" +
(state.rules.sector.info.resources.any() ? "[lightgray]" + bundle.get("sectors.resources") + "[white] " +
state.rules.sector.info.resources.toString(" ", UnlockableContent::emoji) : ""), 5);
state.rules.sector.info.resources.toString(" ", u -> u.emoji()) : ""), 5);
}
});
});

View file

@ -42,7 +42,7 @@ public class MenuRenderer implements Disposable{
private void generate(){
world.beginMapLoad();
Tiles tiles = world.resize(width, height);
Seq<Block> ores = content.blocks().select(OreBlock.class::isInstance);
Seq<Block> ores = content.blocks().select(b -> b instanceof OreBlock);
shadows = new FrameBuffer(width, height);
int offset = Mathf.random(100000);
Simplex s1 = new Simplex(offset);

View file

@ -4,7 +4,7 @@ import arc.math.*;
import arc.util.*;
public enum LogicOp{
add("+", Double::sum),
add("+", (a, b) -> a + b),
sub("-", (a, b) -> a - b),
mul("*", (a, b) -> a * b),
div("/", (a, b) -> a / b),
@ -29,7 +29,7 @@ public enum LogicOp{
noise("noise", LExecutor.noise::rawNoise2D),
not("not", a -> ~(long)(a)),
abs("abs", Math::abs),
abs("abs", a -> Math.abs(a)),
log("log", Math::log),
log10("log10", Math::log10),
sin("sin", d -> Math.sin(d * 0.017453292519943295D)),