Misc cleanup

This commit is contained in:
Anuken
2021-01-19 19:55:21 -05:00
parent c53a6a7c04
commit fa8d43bbc9
7 changed files with 17 additions and 8 deletions

View File

@@ -277,8 +277,7 @@ public abstract class BulletType extends Content{
}
if(weaveMag > 0){
float scl = Mathf.randomSeed(id, 0.9f, 1.1f);
b.vel.rotate(Mathf.sin(b.time + Mathf.PI * weaveScale/2f * scl, weaveScale * scl, weaveMag) * Time.delta);
b.vel.rotate(Mathf.sin(b.time + Mathf.PI * weaveScale/2f, weaveScale, weaveMag * (Mathf.randomSeed(b.id, 0, 1) == 1 ? -1 : 1)) * Time.delta);
}
if(trailChance > 0){