Fixed fog radius on units

This commit is contained in:
Anuken 2022-03-10 10:33:45 -05:00
parent 4ab4d829af
commit 72b43053cd
2 changed files with 6 additions and 2 deletions

View File

@ -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);
});
});
}
});

View File

@ -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()){