💥
This commit is contained in:
@@ -581,7 +581,7 @@ public class Block extends BlockStorage{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Damage.dynamicExplosion(x, y, flammability, explosiveness, power, tilesize * size / 2f, Pal.darkFlame);
|
Damage.dynamicExplosion(x, y, flammability, explosiveness * 3.5f, power, tilesize * size / 2f, Pal.darkFlame);
|
||||||
if(!tile.floor().solid && !tile.floor().isLiquid){
|
if(!tile.floor().solid && !tile.floor().isLiquid){
|
||||||
RubbleDecal.create(tile.drawx(), tile.drawy(), size);
|
RubbleDecal.create(tile.drawx(), tile.drawy(), size);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,8 +127,10 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
|||||||
|
|
||||||
if(randomlyExplode && Mathf.chance(entity.delta() * 0.06 * Mathf.clamp(entity.explosiveness - 0.5f))){
|
if(randomlyExplode && Mathf.chance(entity.delta() * 0.06 * Mathf.clamp(entity.explosiveness - 0.5f))){
|
||||||
//this block is run last so that in the event of a block destruction, no code relies on the block type
|
//this block is run last so that in the event of a block destruction, no code relies on the block type
|
||||||
|
Core.app.post(() -> {
|
||||||
entity.damage(Mathf.random(11f));
|
entity.damage(Mathf.random(11f));
|
||||||
Effects.effect(explodeEffect, tile.worldx() + Mathf.range(size * tilesize / 2f), tile.worldy() + Mathf.range(size * tilesize / 2f));
|
Effects.effect(explodeEffect, tile.worldx() + Mathf.range(size * tilesize / 2f), tile.worldy() + Mathf.range(size * tilesize / 2f));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
entity.productionEfficiency = 0.0f;
|
entity.productionEfficiency = 0.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user