Fixed shielded wall being available on Serpulo

This commit is contained in:
Anuken 2022-08-03 16:09:05 -04:00
parent 8a19582377
commit 58246747ee
2 changed files with 7 additions and 2 deletions

View file

@ -1673,7 +1673,7 @@ public class Blocks{
}};
shieldedWall = new ShieldWall("shielded-wall"){{
requirements(Category.defense, ItemStack.with(Items.phaseFabric, 20, Items.surgeAlloy, 12));
requirements(Category.defense, ItemStack.with(Items.phaseFabric, 20, Items.surgeAlloy, 12, Items.beryllium, 12));
consumePower(3f / 60f);
outputsPower = false;
@ -2554,7 +2554,7 @@ public class Blocks{
explodeEffect = new MultiEffect(Fx.bigShockwave, new WrapEffect(Fx.titanSmoke, Liquids.neoplasm.color), Fx.neoplasmSplat);
explodeSound = Sounds.explosionbig;
powerProduction = 100f;
powerProduction = 140f;
rebuildable = false;
explosionPuddles = 80;

View file

@ -87,6 +87,11 @@ public class ShieldWall extends Wall{
return breakTimer > 0 || !canConsume();
}
@Override
public void pickedUp(){
shieldRadius = 0f;
}
@Override
public void damage(float damage){
float shieldTaken = broken() ? 0f : Math.min(shield, damage);