From e9df213d0ab408977157e06b665e6822ec1ac955 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 16 Mar 2021 18:25:30 -0400 Subject: [PATCH] Decreased sector damage check radius --- core/src/mindustry/maps/SectorDamage.java | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/maps/SectorDamage.java b/core/src/mindustry/maps/SectorDamage.java index 1c0df9f233..4e1b5a5242 100644 --- a/core/src/mindustry/maps/SectorDamage.java +++ b/core/src/mindustry/maps/SectorDamage.java @@ -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; } diff --git a/gradle.properties b/gradle.properties index 9c3c5a3de4..ba35000785 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=f57850f3e251bf14804cbbea536a9f01cf61c22d +archash=dc282cd5ac5e6017992767f1c3827945c3be40fa