mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-10 07:47:25 +07:00
Tweaks
This commit is contained in:
@ -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);
|
||||
}};
|
||||
|
@ -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);
|
||||
}),
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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"),
|
||||
|
@ -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){
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=b03d1d78790c8fa705b150121cef4028ef84757f
|
||||
archash=45377e8f7daca3299262a92d387a0d12fc612e12
|
||||
|
Reference in New Issue
Block a user