AI fixes
This commit is contained in:
@@ -51,6 +51,7 @@ public class Liquids{
|
|||||||
viscosity = 0.85f;
|
viscosity = 0.85f;
|
||||||
flammability = 0.1f;
|
flammability = 0.1f;
|
||||||
capPuddles = false;
|
capPuddles = false;
|
||||||
|
hidden = true;
|
||||||
|
|
||||||
colorFrom = Color.valueOf("f98f4a");
|
colorFrom = Color.valueOf("f98f4a");
|
||||||
colorTo = Color.valueOf("9e172c");
|
colorTo = Color.valueOf("9e172c");
|
||||||
|
|||||||
@@ -1236,7 +1236,7 @@ public class UnitTypes{
|
|||||||
//region air support
|
//region air support
|
||||||
|
|
||||||
mono = new UnitType("mono"){{
|
mono = new UnitType("mono"){{
|
||||||
defaultController = MinerAI::new;
|
unitBasedDefaultController = u -> new MinerAI();
|
||||||
|
|
||||||
flying = true;
|
flying = true;
|
||||||
drag = 0.06f;
|
drag = 0.06f;
|
||||||
@@ -1255,7 +1255,7 @@ public class UnitTypes{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
poly = new UnitType("poly"){{
|
poly = new UnitType("poly"){{
|
||||||
defaultController = BuilderAI::new;
|
unitBasedDefaultController = u -> new BuilderAI();
|
||||||
|
|
||||||
flying = true;
|
flying = true;
|
||||||
drag = 0.05f;
|
drag = 0.05f;
|
||||||
@@ -1310,6 +1310,7 @@ public class UnitTypes{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
mega = new UnitType("mega"){{
|
mega = new UnitType("mega"){{
|
||||||
|
//TODO control?
|
||||||
defaultController = RepairAI::new;
|
defaultController = RepairAI::new;
|
||||||
|
|
||||||
mineTier = 3;
|
mineTier = 3;
|
||||||
@@ -3318,6 +3319,7 @@ public class UnitTypes{
|
|||||||
isCounted = false;
|
isCounted = false;
|
||||||
allowedInPayloads = false;
|
allowedInPayloads = false;
|
||||||
logicControllable = false;
|
logicControllable = false;
|
||||||
|
playerControllable = false;
|
||||||
envDisabled = 0;
|
envDisabled = 0;
|
||||||
payloadCapacity = 0f;
|
payloadCapacity = 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ public class Liquid extends UnlockableContent implements Senseable{
|
|||||||
public boolean capPuddles = true;
|
public boolean capPuddles = true;
|
||||||
/** Effect when this liquid vaporizes. */
|
/** Effect when this liquid vaporizes. */
|
||||||
public Effect vaporEffect = Fx.vapor;
|
public Effect vaporEffect = Fx.vapor;
|
||||||
|
/** If true, this liquid is hidden in most UI. */
|
||||||
|
public boolean hidden;
|
||||||
|
|
||||||
public Liquid(String name, Color color){
|
public Liquid(String name, Color color){
|
||||||
super(name);
|
super(name);
|
||||||
@@ -89,6 +91,11 @@ public class Liquid extends UnlockableContent implements Senseable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isHidden(){
|
||||||
|
return hidden;
|
||||||
|
}
|
||||||
|
|
||||||
public int getAnimationFrame(){
|
public int getAnimationFrame(){
|
||||||
return (int)(Time.time / (gas ? animationScaleGas : animationScaleLiquid) * animationFrames + id*5) % animationFrames;
|
return (int)(Time.time / (gas ? animationScaleGas : animationScaleLiquid) * animationFrames + id*5) % animationFrames;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user