mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Misc requirement tweaks
This commit is contained in:
parent
2ba4a3991b
commit
c8fb0659d4
2 changed files with 7 additions and 7 deletions
|
|
@ -2436,20 +2436,21 @@ public class Blocks{
|
|||
requirements(Category.power, with(Items.beryllium, 8));
|
||||
consumesPower = outputsPower = true;
|
||||
health = 90;
|
||||
consumePowerBuffered(1000f);
|
||||
range = 10;
|
||||
fogRadius = 1;
|
||||
researchCost = with(Items.beryllium, 5);
|
||||
|
||||
consumePowerBuffered(1000f);
|
||||
}};
|
||||
|
||||
//TODO requirements
|
||||
beamTower = new BeamNode("beam-tower"){{
|
||||
requirements(Category.power, with(Items.beryllium, 30, Items.oxide, 20, Items.silicon, 10));
|
||||
requirements(Category.power, with(Items.beryllium, 30, Items.oxide, 10, Items.silicon, 10));
|
||||
size = 3;
|
||||
consumesPower = outputsPower = true;
|
||||
consumePowerBuffered(40000f);
|
||||
range = 23;
|
||||
scaledHealth = 90;
|
||||
|
||||
consumePowerBuffered(40000f);
|
||||
}};
|
||||
|
||||
beamLink = new LongPowerNode("beam-link"){{
|
||||
|
|
@ -2754,7 +2755,6 @@ public class Blocks{
|
|||
consumeLiquid(Liquids.water, 0.15f);
|
||||
}};
|
||||
|
||||
//TODO output heat?
|
||||
ventCondenser = new AttributeCrafter("vent-condenser"){{
|
||||
requirements(Category.production, with(Items.graphite, 20, Items.beryllium, 60));
|
||||
attribute = Attribute.steam;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ public final class FogControl implements CustomChunk{
|
|||
}
|
||||
|
||||
public boolean isDiscovered(Team team, int x, int y){
|
||||
if(!state.rules.staticFog || team.isAI()) return true;
|
||||
if(!state.rules.staticFog || team == null || team.isAI()) return true;
|
||||
|
||||
var data = getDiscovered(team);
|
||||
if(data == null) return false;
|
||||
|
|
@ -114,7 +114,7 @@ public final class FogControl implements CustomChunk{
|
|||
}
|
||||
|
||||
public boolean isVisibleTile(Team team, int x, int y){
|
||||
if(!state.rules.fog || team.isAI()) return true;
|
||||
if(!state.rules.fog|| team == null || team.isAI()) return true;
|
||||
|
||||
var data = data(team);
|
||||
if(data == null) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue