This commit is contained in:
Anuken
2020-09-22 11:16:19 -04:00
parent ce4f67341c
commit b2b8949e26
2 changed files with 1 additions and 12 deletions

View File

@@ -277,9 +277,8 @@ public abstract class BulletType extends Content{
bullet.damage = damage < 0 ? this.damage : damage;
bullet.add();
if(keepVelocity && owner instanceof Hitboxc) bullet.vel.add(((Velc)owner).vel().x, ((Velc)owner).vel().y);
if(keepVelocity && owner instanceof Velc) bullet.vel.add(((Velc)owner).vel().x, ((Velc)owner).vel().y);
return bullet;
}
public void createNet(Team team, float x, float y, float angle, float damage, float velocityScl, float lifetimeScl){

View File

@@ -295,16 +295,6 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
//TODO better waves
state.rules.spawns = defaultWaves.get();
float waveScaling = 1f + difficulty*2;
//scale up the spawning base on difficulty (this is just for testing)
for(SpawnGroup group : state.rules.spawns){
group.unitAmount *= waveScaling;
if(group.unitScaling != SpawnGroup.never){
group.unitScaling /= waveScaling;
}
}
}
@Override