mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 16:00:51 -07:00
No more free core upgrades (#6936)
This commit is contained in:
parent
1c0eff0871
commit
d6acfadab9
1 changed files with 4 additions and 3 deletions
|
|
@ -130,15 +130,16 @@ public class CoreBlock extends StorageBlock{
|
|||
//in the editor, you can place them anywhere for convenience
|
||||
if(state.isEditor()) return true;
|
||||
|
||||
CoreBuild core = team.core();
|
||||
//must have all requirements
|
||||
if(core == null || (!state.rules.infiniteResources && !core.items.has(requirements, state.rules.buildCostMultiplier))) return false;
|
||||
|
||||
//special floor upon which cores can be placed
|
||||
tile.getLinkedTilesAs(this, tempTiles);
|
||||
if(!tempTiles.contains(o -> !o.floor().allowCorePlacement)){
|
||||
return true;
|
||||
}
|
||||
|
||||
CoreBuild core = team.core();
|
||||
//must have all requirements
|
||||
if(core == null || (!state.rules.infiniteResources && !core.items.has(requirements, state.rules.buildCostMultiplier))) return false;
|
||||
return tile.block() instanceof CoreBlock && size > tile.block().size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue