New preset / Indication of vulnerable sectors
This commit is contained in:
@@ -177,7 +177,7 @@ public class ItemTurret extends Turret{
|
||||
totalAmmo += a;
|
||||
|
||||
//only add ammo if this is a valid ammo type
|
||||
if(ammoTypes.containsKey(item)){
|
||||
if(item != null && ammoTypes.containsKey(item)){
|
||||
ammo.add(new ItemEntry(item, a));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ public class CoreBlock extends StorageBlock{
|
||||
super.onDestroyed();
|
||||
|
||||
//add a spawn to the map for future reference - waves should be disabled, so it shouldn't matter
|
||||
if(state.isCampaign() && team == state.rules.waveTeam){
|
||||
if(state.isCampaign() && team == state.rules.waveTeam && team.cores().size <= 1){
|
||||
//do not recache
|
||||
tile.setOverlayQuiet(Blocks.spawn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user