Build error fix / Anuken/Mindustry-Suggestions/issues/2897

This commit is contained in:
Anuken
2021-08-24 09:28:51 -04:00
parent 901d594768
commit 8949fd279e
3 changed files with 14 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ public class Damage{
if(damage){
for(int i = 0; i < Mathf.clamp(power / 700, 0, 8); i++){
int length = 5 + Mathf.clamp((int)(power / 500), 1, 20);
Time.run(i * 0.8f + Mathf.random(4f), () -> Lightning.create(Team.derelict, Pal.power, 3, x, y, Mathf.random(360f), length + Mathf.range(2)));
Time.run(i * 0.8f + Mathf.random(4f), () -> Lightning.create(Team.derelict, Pal.power, 3 + Mathf.pow(power, 0.35f), x, y, Mathf.random(360f), length + Mathf.range(2)));
}
if(fire){