fixed some sector things, broke more things

This commit is contained in:
Anuken
2020-10-15 15:41:09 -04:00
parent 988e1add82
commit 45b87ec615
12 changed files with 30 additions and 47 deletions

View File

@@ -360,6 +360,13 @@ public class SectorDamage{
}
}
//kill every core if damage is maximum
if(damage >= 1){
for(Building c : state.rules.defaultTeam.cores().copy()){
c.tile.remove();
}
}
float falloff = (damage) / (Math.max(tiles.width, tiles.height) * Mathf.sqrt2);
int peak = 0;