Added logic autoPathfind command
This commit is contained in:
@@ -334,6 +334,7 @@ public class Reconstructor extends UnitBlock{
|
||||
@Override
|
||||
public double sense(LAccess sensor){
|
||||
if(sensor == LAccess.progress) return Mathf.clamp(fraction());
|
||||
if(sensor == LAccess.itemCapacity) return Mathf.round(itemCapacity * state.rules.unitCost(team));
|
||||
return super.sense(sensor);
|
||||
}
|
||||
|
||||
|
||||
@@ -207,6 +207,7 @@ public class UnitFactory extends UnitBlock{
|
||||
@Override
|
||||
public double sense(LAccess sensor){
|
||||
if(sensor == LAccess.progress) return Mathf.clamp(fraction());
|
||||
if(sensor == LAccess.itemCapacity) return Mathf.round(itemCapacity * state.rules.unitCost(team));
|
||||
return super.sense(sensor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user