Minor bugfixes
This commit is contained in:
@@ -3389,6 +3389,7 @@ public class UnitTypes{
|
|||||||
groundLayer = Layer.legUnit;
|
groundLayer = Layer.legUnit;
|
||||||
|
|
||||||
targetAir = false;
|
targetAir = false;
|
||||||
|
alwaysShootWhenMoving = true;
|
||||||
|
|
||||||
weapons.add(new Weapon("collaris-weapon"){{
|
weapons.add(new Weapon("collaris-weapon"){{
|
||||||
shootSound = Sounds.pulseBlast;
|
shootSound = Sounds.pulseBlast;
|
||||||
|
|||||||
@@ -214,6 +214,8 @@ public class UnitType extends UnlockableContent{
|
|||||||
naval = false,
|
naval = false,
|
||||||
/** if false, RTS AI controlled units do not automatically attack things while moving. This is automatically assigned. */
|
/** if false, RTS AI controlled units do not automatically attack things while moving. This is automatically assigned. */
|
||||||
autoFindTarget = true,
|
autoFindTarget = true,
|
||||||
|
/** if true, this unit will always shoot while moving regardless of slowdown */
|
||||||
|
alwaysShootWhenMoving = false,
|
||||||
|
|
||||||
/** whether this unit has a hover tooltip */
|
/** whether this unit has a hover tooltip */
|
||||||
hoverable = true,
|
hoverable = true,
|
||||||
@@ -693,7 +695,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if a status effects slows a unit when firing, don't shoot while moving.
|
//if a status effects slows a unit when firing, don't shoot while moving.
|
||||||
autoFindTarget = !weapons.contains(w -> w.shootStatus.speedMultiplier < 0.99f);
|
autoFindTarget = !weapons.contains(w -> w.shootStatus.speedMultiplier < 0.99f) || alwaysShootWhenMoving;
|
||||||
|
|
||||||
clipSize = Math.max(clipSize, lightRadius * 1.1f);
|
clipSize = Math.max(clipSize, lightRadius * 1.1f);
|
||||||
singleTarget = weapons.size <= 1 && !forceMultiTarget;
|
singleTarget = weapons.size <= 1 && !forceMultiTarget;
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ public class UnitCargoUnloadPoint extends Block{
|
|||||||
configClear((UnitCargoUnloadPointBuild build) -> build.item = null);
|
configClear((UnitCargoUnloadPointBuild build) -> build.item = null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean outputsItems(){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public class UnitCargoUnloadPointBuild extends Building{
|
public class UnitCargoUnloadPointBuild extends Building{
|
||||||
public Item item;
|
public Item item;
|
||||||
public float staleTimer;
|
public float staleTimer;
|
||||||
|
|||||||
Reference in New Issue
Block a user