From 6f517507800bb5597da2bda28a203c6f4fd4c105 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 27 Feb 2022 17:49:21 -0500 Subject: [PATCH] Minor visual changes --- core/src/mindustry/content/Blocks.java | 12 +++----- core/src/mindustry/content/UnitTypes.java | 34 +++++++++++------------ gradle.properties | 2 +- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 3b52d98371..533657f118 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -3425,7 +3425,7 @@ public class Blocks{ disperse = new ItemTurret("disperse"){{ requirements(Category.turret, with(Items.carbide, 50, Items.oxide, 150, Items.silicon, 200, Items.beryllium, 350)); - ammo(Items.scrap, new BasicBulletType(){{ + ammo(Items.tungsten, new BasicBulletType(){{ damage = 40; speed = 8.5f; width = height = 16; @@ -3437,8 +3437,8 @@ public class Blocks{ collidesTiles = false; shootEffect = Fx.shootBig2; smokeEffect = Fx.shootSmokeDisperse; - frontColor = trailColor = Color.white; - backColor = Color.valueOf("869cbe"); + frontColor = Color.white; + backColor = trailColor = hitColor = Color.sky; trailChance = 0.44f; lifetime = 34f; @@ -3447,10 +3447,6 @@ public class Blocks{ trailEffect = Fx.disperseTrail; hitEffect = despawnEffect = Fx.hitBulletColor; - - //controversial - //homingDelay = 10f; - //homingPower = 0.01f; }}); @@ -3984,7 +3980,7 @@ public class Blocks{ //region logic message = new MessageBlock("message"){{ - requirements(Category.logic, with(Items.graphite, 5)); + requirements(Category.logic, with(Items.graphite, 5, Items.copper, 5)); }}; switchBlock = new SwitchBlock("switch"){{ diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 0982af9713..d55e23e0ea 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -2500,29 +2500,16 @@ public class UnitTypes{ spread = 3.5f; }}; - //TODO make this look nice + //TODO make this look nicer bullet = new RailBulletType(){{ length = 140f; - damage = 50f; + damage = 45f; hitColor = Color.valueOf("feb380"); hitEffect = endEffect = Fx.hitBulletColor; pierceDamageFactor = 0.8f; smokeEffect = Fx.colorSpark; - //lines - messy - if(false) - smokeEffect = new Effect(22f, e -> { - color(e.color); - stroke(e.fout() * 0.9f + 0.6f); - - Fx.rand.setSeed(e.id); - for(int i = 0; i < 7; i++){ - Fx.v.trns(e.rotation, Fx.rand.random(8f, length - 8f)); - Lines.lineAngleCenter(e.x + Fx.v.x, e.y + Fx.v.y, e.rotation + e.finpow(), e.foutpowdown() * 20f * Fx.rand.random(0.5f, 1f) + 0.3f); - } - }); - endEffect = new Effect(14f, e-> { color(e.color); Drawf.tri(e.x, e.y, e.fout() * 1.5f, 5f, e.rotation); @@ -2542,12 +2529,23 @@ public class UnitTypes{ Drawf.tri(e.x, e.y, w, 4f * e.fout(), e.rotation + 180f); }); - lineEffect = new Effect(14f, e -> { + lineEffect = new Effect(20f, e -> { if(!(e.data instanceof Vec2 v)) return; - stroke(e.fout() * 1.5f); color(e.color); - Lines.line(e.x, e.y, v.x, v.y); + stroke(e.fout() * 0.9f + 0.6f); + + Fx.rand.setSeed(e.id); + for(int i = 0; i < 7; i++){ + Fx.v.trns(e.rotation, Fx.rand.random(8f, v.dst(e.x, e.y) - 8f)); + Lines.lineAngleCenter(e.x + Fx.v.x, e.y + Fx.v.y, e.rotation + e.finpow(), e.foutpowdown() * 20f * Fx.rand.random(0.5f, 1f) + 0.3f); + } + + e.scaled(14f, b -> { + stroke(b.fout() * 1.5f); + color(e.color); + Lines.line(e.x, e.y, v.x, v.y); + }); }); pointEffectSpace = 8f; diff --git a/gradle.properties b/gradle.properties index 90ee44fa87..f2488e038d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,4 +24,4 @@ android.useAndroidX=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=157fec7f27 +archash=63916d3b6c