mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 23:38:10 +07:00
Fixed fog radius on units
This commit is contained in:
@ -29,7 +29,10 @@ public class ShootMulti extends ShootPattern{
|
|||||||
source.shoot(totalShots, (x, y, rotation, delay, move) -> {
|
source.shoot(totalShots, (x, y, rotation, delay, move) -> {
|
||||||
for(var pattern : dest){
|
for(var pattern : dest){
|
||||||
pattern.shoot(totalShots, (x2, y2, rot2, delay2, mover) -> {
|
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){
|
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()){
|
if(weapons.isEmpty()){
|
||||||
|
Reference in New Issue
Block a user