Moved pref saving to specific locations

This commit is contained in:
Anuken
2020-07-02 10:20:16 -04:00
parent 5f6c71b9d3
commit fd2deb0a82
15 changed files with 53 additions and 10 deletions

View File

@@ -17,12 +17,12 @@ public class SurgeWall extends Wall{
public class SurgeEntity extends Building{
@Override
public boolean collision(Bullet bullet){
super.collision(bullet);
if(Mathf.chance(lightningChance)){
Lightning.create(team(), Pal.surge, lightningDamage, x, y, bullet.rotation() + 180f, lightningLength);
}
return true;
return super.collision(bullet);
}
}
}