mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
Fixed fog radius on units
This commit is contained in:
parent
4ab4d829af
commit
72b43053cd
@ -29,7 +29,10 @@ public class ShootMulti extends ShootPattern{
|
||||
source.shoot(totalShots, (x, y, rotation, delay, move) -> {
|
||||
for(var pattern : dest){
|
||||
pattern.shoot(totalShots, (x2, y2, rot2, delay2, mover) -> {
|
||||
handler.shoot(x + x2, y + y2, rotation + rot2, delay + delay2, mover);
|
||||
handler.shoot(x + x2, y + y2, rotation + rot2, delay + delay2, b -> {
|
||||
move.move(b);
|
||||
mover.move(b);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -473,7 +473,8 @@ public class UnitType extends UnlockableContent{
|
||||
}
|
||||
|
||||
if(fogRadius < 0){
|
||||
fogRadius = Math.max(11f * 2.3f * 3f, hitSize * 2f) / 8f;
|
||||
//TODO depend on range?
|
||||
fogRadius = Math.max(58f * 3f, hitSize * 2f) / 8f;
|
||||
}
|
||||
|
||||
if(weapons.isEmpty()){
|
||||
|
Loading…
Reference in New Issue
Block a user