Fixed cores being placeable on nothing
This commit is contained in:
@@ -209,6 +209,9 @@ public class Blocks implements ContentList{
|
||||
isLiquid = true;
|
||||
cacheLayer = CacheLayer.slag;
|
||||
attributes.set(Attribute.heat, 0.85f);
|
||||
|
||||
lightRadius = 65f;
|
||||
lightColor = Color.orange.cpy().a(0.4f);
|
||||
}};
|
||||
|
||||
stone = new Floor("stone");
|
||||
@@ -243,7 +246,7 @@ public class Blocks implements ContentList{
|
||||
blendGroup = basalt;
|
||||
|
||||
emitLight = true;
|
||||
lightRadius = 60f;
|
||||
lightRadius = 50f;
|
||||
lightColor = Color.orange.cpy().a(0.3f);
|
||||
}};
|
||||
|
||||
|
||||
@@ -419,7 +419,7 @@ public class UnitTypes implements ContentList{
|
||||
continuous = true;
|
||||
cooldownTime = 200f;
|
||||
|
||||
bullet = new ContinuousLaserBulletType(17){{
|
||||
bullet = new ContinuousLaserBulletType(20){{
|
||||
length = 150f;
|
||||
hitEffect = Fx.hitMeltHeal;
|
||||
drawSize = 420f;
|
||||
@@ -430,7 +430,7 @@ public class UnitTypes implements ContentList{
|
||||
|
||||
shootEffect = Fx.greenLaserChargeSmall;
|
||||
|
||||
incendChance = 0.02f;
|
||||
incendChance = 0.05f;
|
||||
incendSpread = 5f;
|
||||
incendAmount = 1;
|
||||
|
||||
@@ -489,7 +489,7 @@ public class UnitTypes implements ContentList{
|
||||
|
||||
bullet = new LaserBulletType(){{
|
||||
length = 500f;
|
||||
damage = 520f;
|
||||
damage = 550f;
|
||||
width = 75f;
|
||||
|
||||
lifetime = 65f;
|
||||
|
||||
@@ -101,7 +101,7 @@ public class CoreBlock extends StorageBlock{
|
||||
CoreBuild core = team.core();
|
||||
//must have all requirements
|
||||
if(core == null || (!state.rules.infiniteResources && !core.items.has(requirements))) return false;
|
||||
return canReplace(tile.block());
|
||||
return tile.block() instanceof CoreBlock && size > tile.block().size;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user