mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-14 03:25:32 +03:00
lightningType follow angle (#5282)
* lightningType follow angle * this is more complicated than it should be time to make it less stupid
This commit is contained in:
parent
be71664436
commit
e4c434e26e
@ -43,7 +43,7 @@ public class Lightning{
|
||||
bhit = false;
|
||||
|
||||
for(int i = 0; i < length / 2; i++){
|
||||
hitCreate.create(null, team, x, y, 0f, damage, 1f, 1f, hitter);
|
||||
hitCreate.create(null, team, x, y, rotation, damage, 1f, 1f, hitter);
|
||||
lines.add(new Vec2(x + Mathf.range(3f), y + Mathf.range(3f)));
|
||||
|
||||
if(lines.size > 1){
|
||||
@ -56,7 +56,7 @@ public class Lightning{
|
||||
if(tile != null && tile.block().insulated && tile.team() != team){
|
||||
bhit = true;
|
||||
//snap it instead of removing
|
||||
lines.get(lines.size -1).set(wx * tilesize, wy * tilesize);
|
||||
lines.get(lines.size - 1).set(wx * tilesize, wy * tilesize);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user