This commit is contained in:
Anuken
2020-05-15 16:21:47 -04:00
parent bc28dd392b
commit 94651897b2
7 changed files with 19 additions and 12 deletions

View File

@ -1320,7 +1320,7 @@ public class Blocks implements ContentList{
requirements(Category.effect, BuildVisibility.campaignOnly, ItemStack.with(Items.copper, 350, Items.silicon, 140, Items.lead, 200, Items.titanium, 150));
size = 3;
itemCapacity = 100;
launchTime = 60f * 15;
launchTime = 60f * 20;
hasPower = true;
consumes.power(4f);
}};
@ -1329,7 +1329,7 @@ public class Blocks implements ContentList{
requirements(Category.effect, BuildVisibility.campaignOnly, ItemStack.with(Items.titanium, 200, Items.silicon, 150, Items.lead, 250, Items.plastanium, 75));
size = 4;
itemCapacity = 300;
launchTime = 60f * 25;
launchTime = 60f * 35;
hasPower = true;
consumes.power(6f);
}};

View File

@ -1217,13 +1217,18 @@ public class Fx{
Unitc unit = e.data();
float radius = unit.hitSize() * 1.3f;
color(Pal.shield, e.fout());
randLenVectors(e.id, (int)(radius * 0.7f), radius, radius * e.finpow(), (x, y) -> {
Fill.poly(e.x + x, e.y + y, 3, e.fout() * 3f, Angles.angle(x, y));
e.scaled(16f, c -> {
color(Pal.shield);
stroke(c.fout() * 2f + 0.1f);
randLenVectors(e.id, (int)(radius * 1.2f), radius/2f + c.finpow() * radius*1.25f, (x, y) -> {
lineAngle(c.x + x, c.y + y, Mathf.angle(x, y), c.fout() * 5 + 1f);
});
});
color(Pal.shield, e.fout());
stroke(1f * e.fout());
Lines.circle(e.x, e.y, radius);
}),

View File

@ -44,7 +44,7 @@ abstract class ShieldComp implements Healthc, Posc{
@Override
public void update(){
shieldAlpha -= Time.delta() / 12f;
shieldAlpha -= Time.delta() / 15f;
if(shieldAlpha < 0) shieldAlpha = 0f;
}
}

View File

@ -8,7 +8,7 @@ public class Pal{
items = Color.valueOf("2ea756"),
command = Color.valueOf("eab678"),
shield = Color.valueOf("7e8ffc").mul(1.3f).a(0.7f),
shield = Color.valueOf("ffd37f").a(0.7f),
shieldIn = Color.black.cpy().a(0f),
bulletYellow = Color.valueOf("fff8e8"),

View File

@ -150,7 +150,7 @@ public class UnitType extends UnlockableContent{
public void drawShield(Unitc unit){
float alpha = unit.shieldAlpha();
float radius = unit.hitSize() * 1.3f;
Fill.light(unit.x(), unit.y(), Lines.circleVertices(radius), radius, Tmp.c1.set(Pal.shieldIn), Tmp.c2.set(Pal.shield).lerp(Color.white, Mathf.clamp(unit.hitTime())).a(Pal.shield.a * alpha));
Fill.light(unit.x(), unit.y(), Lines.circleVertices(radius), radius, Tmp.c1.set(Pal.shieldIn), Tmp.c2.set(Pal.shield).lerp(Color.white, Mathf.clamp(unit.hitTime() / 2f)).a(Pal.shield.a * alpha));
}
public void drawControl(Unitc unit){

View File

@ -10,6 +10,7 @@ import arc.util.*;
import mindustry.*;
import mindustry.annotations.Annotations.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.game.EventType.*;
import mindustry.gen.*;
import mindustry.graphics.*;
@ -55,7 +56,7 @@ public class LaunchPad extends Block{
if(lightRegion.found()){
Draw.color(lightColor);
float progress = Math.min((float)items.total() / itemCapacity, timer.getTime(timerLaunch) / launchTime);
float progress = Math.min((float)items.total() / itemCapacity, timer.getTime(timerLaunch) / (launchTime / timeScale));
int steps = 3;
float step = 1f;
@ -72,7 +73,7 @@ public class LaunchPad extends Block{
Draw.reset();
}
float cooldown = Mathf.clamp(timer.getTime(timerLaunch) / 90f / timeScale);
float cooldown = Mathf.clamp(timer.getTime(timerLaunch) / (90f / timeScale));
Draw.mixcol(lightColor, 1f - cooldown);
@ -99,6 +100,7 @@ public class LaunchPad extends Block{
entity.add();
Fx.launchPod.at(this);
items.clear();
Effects.shake(3f, 3f, this);
}
}
}

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=b03d1d78790c8fa705b150121cef4028ef84757f
archash=45377e8f7daca3299262a92d387a0d12fc612e12