Decreased sector damage check radius

This commit is contained in:
Anuken 2021-03-16 18:25:30 -04:00
parent 150aab3530
commit e9df213d0a
2 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ public class SectorDamage{
//first, calculate the total health of blocks in the path
//radius around the path that gets counted
int radius = 7;
int radius = 5;
IntSet counted = new IntSet();
for(Tile t : sparse2){
@ -273,7 +273,7 @@ public class SectorDamage{
for(Building build : Groups.build){
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() + radius*tilesize))){
if(build.team == state.rules.defaultTeam && build instanceof Ranged ranged && sparse.contains(t -> t.within(build, ranged.range() + 4*tilesize))){
if(build.block instanceof Turret t && build instanceof TurretBuild b && b.hasAmmo()){
sumDps += t.shots / t.reloadTime * 60f * b.peekAmmo().estimateDPS() * e;
}

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=f57850f3e251bf14804cbbea536a9f01cf61c22d
archash=dc282cd5ac5e6017992767f1c3827945c3be40fa