Skip to content

Commit c57c4c2

Browse files
committed
Vanstar unit stuff
1 parent 1f3c1f3 commit c57c4c2

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

src/exogenesis/content/ExoVanillaUnitTypes.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,7 @@ public void draw(Bullet b){
35353535
singleTarget = true;
35363536
faceTarget = false;
35373537
useEngineElevation = false;
3538+
engineSize = 0;
35383539
flying = false;
35393540
shadowElevation = 0.1f;
35403541
groundLayer = Layer.groundUnit;
@@ -3737,7 +3738,7 @@ public void draw(Bullet b){
37373738
useEngineElevation = false;
37383739
parts.addAll(
37393740
new HoverPart() {{
3740-
x = 15.25f;
3741+
x = 19.25f;
37413742
y = 19.75f;
37423743
mirror = true;
37433744
sides = 360;
@@ -3795,7 +3796,7 @@ public void draw(Bullet b){
37953796
progress = PartProgress.warmup;
37963797
mirror = true;
37973798
under = true;
3798-
moves.add(new PartMove(PartProgress.recoil, 3f, -1f, 0f));
3799+
moves.add(new PartMove(PartProgress.recoil, 5f, -2f, 0f));
37993800
moveX = 0.5f;
38003801
moveY = -1.75f;
38013802
}}
@@ -3809,7 +3810,7 @@ public void draw(Bullet b){
38093810
ExoDamageTypes.pierce, 0.2f,
38103811
energy, 0.8f
38113812
);
3812-
shootEffect = new MultiEffect(ExoShootFx.HaborymShootColor, Fx.railHit);
3813+
shootEffect = new MultiEffect(ExoShootFx.HaborymShootColor, ExoShootFx.instShootColor);
38133814
intervalBullet = new EmpBulletType() {{
38143815
sprite = "exogenesis-arrow-bullet";
38153816
hitPowerEffect = chainEffect = Fx.none;
@@ -3833,9 +3834,9 @@ public void draw(Bullet b){
38333834
trailLength = 4;
38343835
despawnEffect = hitEffect = Fx.hitBulletColor;
38353836
}};
3836-
lightning = 2;
3837-
lightningLength = 3;
3838-
lightningLengthRand = 6;
3837+
lightning = 8;
3838+
lightningLength = 8;
3839+
lightningLengthRand = 20;
38393840
lightningColor = backColor = trailColor = hitColor = ExoPal.erekirYellow;
38403841
lightningDamage = 50;
38413842
bulletInterval = 8f;
@@ -3882,7 +3883,6 @@ public void draw(Bullet b){
38823883
phase = 30f;
38833884
layerOffset = -0.001f;
38843885
color = ExoPal.erekirYellow;
3885-
;
38863886
}});
38873887
parts.add(new HoverPart() {{
38883888
x = 48f;
@@ -3918,7 +3918,6 @@ public void draw(Bullet b){
39183918
phase = 90f;
39193919
layerOffset = -0.001f;
39203920
color = ExoPal.erekirYellow;
3921-
;
39223921
}});
39233922
weapons.add(new Weapon("exogenesis-hyperion-weapon") {{
39243923
shootSound = Sounds.mediumCannon;

src/exogenesis/content/effects/ExoShootFx.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package exogenesis.content.effects;
22

33
import arc.graphics.Color;
4+
import arc.graphics.g2d.Lines;
45
import arc.math.Interp;
56
import arc.math.Mathf;
67
import exogenesis.graphics.ExoPal;
@@ -41,6 +42,22 @@ public class ExoShootFx {
4142
Drawf.tri(e.x, e.y, 9f * e.fout(), 40f, e.rotation + (45f + (e.fin(Interp.circleOut) * 20f)) * Mathf.signs[i]);
4243
}
4344
}),
45+
instShootColor = new Effect(24f, e -> {
46+
e.scaled(10f, b -> {
47+
color(Color.white, e.color, b.fin());
48+
stroke(b.fout() * 3f + 0.2f);
49+
Lines.circle(b.x, b.y, b.fin() * 50f);
50+
});
51+
52+
color(e.color);
53+
54+
for(int i : Mathf.signs){
55+
Drawf.tri(e.x, e.y, 13f * e.fout(), 85f, e.rotation + 90f * i);
56+
Drawf.tri(e.x, e.y, 13f * e.fout(), 50f, e.rotation + 20f * i);
57+
}
58+
59+
Drawf.light(e.x, e.y, 180f, e.color, 0.9f * e.fout());
60+
}),
4461
arbitorShoot = new Effect(26f, e -> {
4562
color(ExoPal.empyreanblue);
4663
Drawf.tri(e.x, e.y, 9f * e.fout(), 105f - (20f * e.fin()), e.rotation);

0 commit comments

Comments
 (0)