mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Place base battery schematics with full charge / Exclude fallback sprites from assetsJar
This commit is contained in:
parent
9f03050d04
commit
fb5945f1e8
2 changed files with 8 additions and 4 deletions
|
|
@ -309,7 +309,7 @@ project(":core"){
|
|||
task assetsJar(type: Jar, dependsOn: ":tools:pack"){
|
||||
archiveClassifier = 'assets'
|
||||
from files("assets"){
|
||||
exclude "config", "cache", "music", "sounds"
|
||||
exclude "config", "cache", "music", "sounds", "sprites/fallback"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -175,9 +175,13 @@ public class BaseGenerator{
|
|||
if(tiles == null) return;
|
||||
|
||||
for(Tile tile : tiles){
|
||||
if(tile.isCenter() && tile.block() instanceof PowerNode && tile.team() == state.rules.waveTeam){
|
||||
tile.build.configureAny(new Point2[0]);
|
||||
tile.build.placed();
|
||||
if(tile.isCenter() && tile.team() == state.rules.waveTeam){
|
||||
if(tile.block() instanceof PowerNode){
|
||||
tile.build.configureAny(new Point2[0]);
|
||||
tile.build.placed();
|
||||
}else if(tile.block() instanceof Battery){
|
||||
tile.build.power.status = 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue