Flare AI fixes & unit research const reduced
This commit is contained in:
@@ -379,7 +379,12 @@ public class AIController implements UnitController{
|
||||
|
||||
if(arrive){
|
||||
Tmp.v3.set(-unit.vel.x / unit.type.accel * 2f, -unit.vel.y / unit.type.accel * 2f).add((target.getX() - unit.x), (target.getY() - unit.y));
|
||||
vec.add(Tmp.v3).limit(speed * length);
|
||||
if(unit.type.omniMovement){
|
||||
vec.add(Tmp.v3).limit(speed * length);
|
||||
}else{
|
||||
//directly move the unit to prevent a backwards movement vector from messing things up
|
||||
unit.moveAt(Tmp.v3.limit(speed * length));
|
||||
}
|
||||
}
|
||||
|
||||
if(length < -0.5f){
|
||||
|
||||
@@ -1357,7 +1357,7 @@ public class UnitType extends UnlockableContent implements Senseable{
|
||||
if(stacks != null){
|
||||
ItemStack[] out = new ItemStack[stacks.length];
|
||||
for(int i = 0; i < out.length; i++){
|
||||
out[i] = new ItemStack(stacks[i].item, UI.roundAmount((int)(Math.pow(stacks[i].amount, 1.1) * researchCostMultiplier)));
|
||||
out[i] = new ItemStack(stacks[i].item, UI.roundAmount((int)(stacks[i].amount * researchCostMultiplier)));
|
||||
}
|
||||
|
||||
//remove zero-requirements for automatic unlocks
|
||||
|
||||
Reference in New Issue
Block a user