@@ -83,9 +83,9 @@ public static void load(){
8383 forceWreckRegion = true ;
8484
8585 trailType = unit -> new MultiTrail (MultiTrail .rot (unit ),
86- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 50 ), engineColor ),
87- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 64 ), -4.8f , 6f , 0.56f , engineColor ),
88- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 64 ), 4.8f , 6f , 0.56f , engineColor )
86+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 50 , speed ), engineColor ),
87+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 64 , speed ), -4.8f , 6f , 0.56f , engineColor ),
88+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 64 , speed ), 4.8f , 6f , 0.56f , engineColor )
8989 );
9090 }
9191
@@ -100,7 +100,7 @@ public void update(Unit unit){
100100 copy .rotation = MultiTrail ::calcRot ;
101101
102102 TrailFx .trailFadeLow .at (soul .x , soul .y , width , engineColor , copy );
103- soul .trail = new MultiTrail (new TrailHold (Trails .soul (MultiTrail .rot (unit ), trailLength ), engineColor ));
103+ soul .trail = new MultiTrail (new TrailHold (Trails .soul (MultiTrail .rot (unit ), trailLength , speed ), engineColor ));
104104 }else if (trail .trails .length == 1 && !soul .corporeal ()){
105105 MultiTrail copy = trail .copy ();
106106 copy .rotation = MultiTrail ::calcRot ;
@@ -1010,16 +1010,16 @@ interface EngineType{
10101010 offset = 11f ;
10111011 }}.apply (this );
10121012 trailType = unit -> new MultiTrail (MultiTrail .rot (unit ),
1013- new TrailHold (Trails .phantasmal (MultiTrail .rot (unit ), 16 , 3.6f , 6f , 2f ), engineColor ),
1013+ new TrailHold (Trails .phantasmal (MultiTrail .rot (unit ), 16 , 3.6f , 6f , speed , 2f ), engineColor ),
10141014 new TrailHold (Utils .with (Trails .singlePhantasmal (24 ), t -> {
10151015 t .trailChance = 0f ;
1016- t .fadeInterp = e -> (1f - Interp .pow10In .apply (e )) * Interp .pow2In .apply (e );
1017- t .sideFadeInterp = e -> (1f - Interp .pow5In .apply (e )) * Interp .pow3In .apply (e );
1016+ t .fadeInterp = e -> (1f - Interp .pow5In .apply (e )) * Interp .pow2In .apply (e );
1017+ t .sideFadeInterp = e -> (1f - Interp .pow4In .apply (e )) * Interp .pow3In .apply (e );
10181018 }), -4.5f , 2.5f , 0.44f , UnityPal .monolithLight ),
10191019 new TrailHold (Utils .with (Trails .singlePhantasmal (24 ), t -> {
10201020 t .trailChance = 0f ;
1021- t .fadeInterp = e -> (1f - Interp .pow10In .apply (e )) * Interp .pow2In .apply (e );
1022- t .sideFadeInterp = e -> (1f - Interp .pow5In .apply (e )) * Interp .pow3In .apply (e );
1021+ t .fadeInterp = e -> (1f - Interp .pow5In .apply (e )) * Interp .pow2In .apply (e );
1022+ t .sideFadeInterp = e -> (1f - Interp .pow4In .apply (e )) * Interp .pow3In .apply (e );
10231023 }), 4.5f , 2.5f , 0.44f , UnityPal .monolithLight )
10241024 );
10251025 trailLength = 24 ;
@@ -1121,8 +1121,8 @@ public void removed(Bullet b){
11211121 color = UnityPal .monolith ;
11221122 }}.apply (this );
11231123 trailType = unit -> new MultiTrail (MultiTrail .rot (unit ),
1124- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 24 ), -5f , 0f , 1f , UnityPal .monolithLight ),
1125- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 24 ), 5f , 0f , 1f , UnityPal .monolithLight )
1124+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 24 , speed ), -5f , 0f , 1f , UnityPal .monolithLight ),
1125+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 24 , speed ), 5f , 0f , 1f , UnityPal .monolithLight )
11261126 );
11271127 trailLength = 24 ;
11281128
@@ -1227,7 +1227,7 @@ public void draw(Bullet b){
12271227 @ Override
12281228 public void updateTrail (Bullet b ){
12291229 if (!headless && trailLength > 0 && b .trail == null ){
1230- b .trail = Trails .soul (trailLength , 6f , trailWidth - 0.3f );
1230+ b .trail = Utils . with ( Trails .soul (trailLength , 6f , trailWidth - 0.3f , speed ), t -> t . each (( TexturedTrail tt ) -> tt . forceCap = true ) );
12311231 for (int i = 0 ; i < b .trail .length ; i ++) b .trail .update (b .x , b .y , 0f ); // Give a head start.
12321232 }
12331233
@@ -1279,9 +1279,9 @@ public void removed(Bullet b){
12791279 color = UnityPal .monolithLight ;
12801280 }}.apply (this );
12811281 trailType = unit -> new MultiTrail (MultiTrail .rot (unit ),
1282- new TrailHold (Trails .phantasmal (MultiTrail .rot (unit ), 32 , 5.6f , 8f , 0f ), engineColor ),
1283- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 48 , 6f , 3.2f ), -71f / 4f , (89f - 65f ) / 4f , 0.75f , engineColor ),
1284- new TrailHold (Trails .soul (MultiTrail .rot (unit ), 48 , 6f , 3.2f ), 71f / 4f , (89f - 65f ) / 4f , 0.75f , engineColor )
1282+ new TrailHold (Trails .phantasmal (MultiTrail .rot (unit ), 32 , 5.6f , 8f , speed , 0f ), engineColor ),
1283+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 48 , 6f , 3.2f , speed ), -71f / 4f , (89f - 65f ) / 4f , 0.75f , engineColor ),
1284+ new TrailHold (Trails .soul (MultiTrail .rot (unit ), 48 , 6f , 3.2f , speed ), 71f / 4f , (89f - 65f ) / 4f , 0.75f , engineColor )
12851285 );
12861286 trailLength = 48 ;
12871287
0 commit comments