Save efficiency

This commit is contained in:
Anuken
2022-02-22 21:51:21 -05:00
parent fe0e6ed6da
commit e4fcf3ad5b
2 changed files with 21 additions and 12 deletions

View File

@@ -282,7 +282,7 @@ public class SectorDamage{
//block dps + regen + extra health/shields
for(Building build : Groups.build){
float e = build.efficiency();
float e = build.efficiency;
if(e > 0.08f){
if(build.team == state.rules.defaultTeam && build instanceof Ranged ranged && sparse.contains(t -> t.within(build, ranged.range() + 4*tilesize))){
//TODO make sure power turret network supports the turrets?