Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2020-12-17 10:46:53 -05:00
4 changed files with 4 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 560 B

+3 -3
View File
@@ -260,8 +260,8 @@ public class SectorDamage{
if(tile.build != null && tile.team() == state.rules.defaultTeam && counted.add(tile.pos())){ if(tile.build != null && tile.team() == state.rules.defaultTeam && counted.add(tile.pos())){
//health is divided by block size, because multiblocks are counted multiple times. //health is divided by block size, because multiblocks are counted multiple times.
sumHealth += tile.build.health / tile.block().size; sumHealth += tile.build.health / (tile.block().size * tile.block().size);
totalPathBuild += 1f / tile.block().size; totalPathBuild += 1f / (tile.block().size * tile.block().size);
} }
} }
} }
@@ -409,7 +409,7 @@ public class SectorDamage{
if(wx >= 0 && wy >= 0 && wx < world.width() && wy < world.height() && Mathf.within(dx, dy, radius)){ if(wx >= 0 && wy >= 0 && wx < world.width() && wy < world.height() && Mathf.within(dx, dy, radius)){
Tile other = world.rawTile(wx, wy); Tile other = world.rawTile(wx, wy);
if(!(other.block() instanceof CoreBlock)){ if(!(other.block() instanceof CoreBlock)){
s += other.team() == state.rules.defaultTeam ? other.build.health / other.block().size : 0f; s += other.team() == state.rules.defaultTeam ? other.build.health / (other.block().size * other.block().size) : 0f;
} }
} }
} }
+1 -1
View File
@@ -51,7 +51,7 @@ task dist(type: Jar, dependsOn: configurations.runtimeClasspath){
} }
if(!project.ext.hasSprites()){ if(!project.ext.hasSprites()){
println "Scheduling sprite packi." println "Scheduling sprite packing."
run.dependsOn ":tools:pack" run.dependsOn ":tools:pack"
dist.dependsOn ":tools:pack" dist.dependsOn ":tools:pack"
} }