Minor swarmer range buff

This commit is contained in:
Anuken 2021-07-28 17:08:48 -04:00
parent 61db253d4a
commit fa0f161106
2 changed files with 6 additions and 3 deletions

View File

@ -1604,7 +1604,7 @@ public class Blocks implements ContentList{
shots = 4;
burstSpacing = 5;
inaccuracy = 10f;
range = 215f;
range = 235f;
xRand = 6f;
size = 2;
health = 300 * size * size;

View File

@ -281,10 +281,13 @@ public class FloorRenderer{
for(int tilex = cx * chunksize; tilex < (cx + 1) * chunksize && tilex < world.width(); tilex++){
for(int tiley = cy * chunksize; tiley < (cy + 1) * chunksize && tiley < world.height(); tiley++){
Tile tile = world.rawTile(tilex, tiley);
boolean wall = tile.block().cacheLayer != CacheLayer.normal;
if(tile.block().cacheLayer != CacheLayer.normal){
if(wall){
used.add(tile.block().cacheLayer);
}else{
}
if(!wall || world.isAccessible(tilex, tiley)){
used.add(tile.floor().cacheLayer);
}
}