Minor swarmer range buff
This commit is contained in:
@@ -1604,7 +1604,7 @@ public class Blocks implements ContentList{
|
|||||||
shots = 4;
|
shots = 4;
|
||||||
burstSpacing = 5;
|
burstSpacing = 5;
|
||||||
inaccuracy = 10f;
|
inaccuracy = 10f;
|
||||||
range = 215f;
|
range = 235f;
|
||||||
xRand = 6f;
|
xRand = 6f;
|
||||||
size = 2;
|
size = 2;
|
||||||
health = 300 * size * size;
|
health = 300 * size * size;
|
||||||
|
|||||||
@@ -281,10 +281,13 @@ public class FloorRenderer{
|
|||||||
for(int tilex = cx * chunksize; tilex < (cx + 1) * chunksize && tilex < world.width(); tilex++){
|
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++){
|
for(int tiley = cy * chunksize; tiley < (cy + 1) * chunksize && tiley < world.height(); tiley++){
|
||||||
Tile tile = world.rawTile(tilex, 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);
|
used.add(tile.block().cacheLayer);
|
||||||
}else{
|
}
|
||||||
|
|
||||||
|
if(!wall || world.isAccessible(tilex, tiley)){
|
||||||
used.add(tile.floor().cacheLayer);
|
used.add(tile.floor().cacheLayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user