Plastanium laser blocking

This commit is contained in:
Anuken
2020-06-06 17:15:08 -04:00
parent 182d8e2daf
commit b4cecbc3b9
4 changed files with 30 additions and 5 deletions

View File

@@ -795,6 +795,7 @@ public class Blocks implements ContentList{
requirements(Category.defense, ItemStack.with(Items.plastanium, 5, Items.metaglass, 2));
health = 190 * wallHealthMultiplier;
insulated = true;
absorbLasers = true;
}};
plastaniumWallLarge = new Wall("plastanium-wall-large"){{
@@ -802,6 +803,7 @@ public class Blocks implements ContentList{
health = 190 * wallHealthMultiplier * 4;
size = 2;
insulated = true;
absorbLasers = true;
}};
thoriumWall = new Wall("thorium-wall"){{
@@ -1484,7 +1486,7 @@ public class Blocks implements ContentList{
powerUse = 2.5f;
shootShake = 2f;
shootEffect = Fx.lancerLaserShoot;
smokeEffect = Fx.lancerLaserShootSmoke;
smokeEffect = Fx.none;
chargeEffect = Fx.lancerLaserCharge;
chargeBeginEffect = Fx.lancerLaserChargeBegin;
heatColor = Color.red;

View File

@@ -884,8 +884,9 @@ public class Fx{
lancerLaserShootSmoke = new Effect(26f, e -> {
color(Color.white);
float length = e.data == null ? 70f : (Float)e.data;
randLenVectors(e.id, 7, 70f, e.rotation, 0f, (x, y) -> {
randLenVectors(e.id, 7, length, e.rotation, 0f, (x, y) -> {
lineAngle(e.x + x, e.y + y, Mathf.angle(x, y), e.fout() * 9f);
});