Flare AI fixes & unit research const reduced

This commit is contained in:
Anuken
2025-11-19 12:25:21 -05:00
parent d4d2a5e54c
commit 774443c960
3 changed files with 8 additions and 3 deletions

View File

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

View File

@@ -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