More base parts

This commit is contained in:
Anuken
2020-10-20 15:43:06 -04:00
parent 30abfc0619
commit 8f58228317
15 changed files with 9 additions and 21 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,2 @@
mschxś%ÍmĂ ŕ·Vű±îĎveZ˛™XmÔvŮí‡#Ä<pǬ ŁŰ sqáJőť2ŤĘšýQ}ŠŔ€ĄśůE¶¦qÓWÚmIg^‰;)¸l)` ®P¶[ö!ŕQ}uŃź»]SĽčËkÍ˙€'?¨ č8ŚťjĹž<C4B9>´

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,2 @@
mschxś%Q
_fšôŐAüě@RKĄ˘F×oUaaF@z÷T·K<>ňž®X®ŕ<01>%żé$[ÂG k;˛Ńyş-o'0 †™áUşjdZjqęQő¨kKńăż`c

View File

@@ -0,0 +1,2 @@
mschxśEOËnÄ ň"[©{ëOpč'ŃÄŠ<C384>¬iµż^UJír( ±ÇăÁ€n
tt;ÁĘąlď<6C>W:–ěŧ ®ĘOĚG

Binary file not shown.

Binary file not shown.

View File

@@ -43,8 +43,6 @@ public class FlyingAI extends AIController{
return null; return null;
} }
//TODO clean up
protected void attack(float circleLength){ protected void attack(float circleLength){
vec.set(target).sub(unit); vec.set(target).sub(unit);

View File

@@ -94,7 +94,7 @@ public class FormationAI extends AIController implements FormationMember{
@Override @Override
public float formationSize(){ public float formationSize(){
return unit.hitSize * 1f; return unit.hitSize * 1.1f;
} }
@Override @Override

View File

@@ -13,8 +13,6 @@ import java.util.*;
import static mindustry.Vars.*; import static mindustry.Vars.*;
public class GroundAI extends AIController{ public class GroundAI extends AIController{
//static final float commandCooldown = 60f * 10;
//float commandTimer = 60*3;
@Override @Override
public void updateMovement(){ public void updateMovement(){
@@ -57,19 +55,5 @@ public class GroundAI extends AIController{
unit.lookAt(unit.vel().angle()); unit.lookAt(unit.vel().angle());
} }
//auto-command works but it's very buggy
/*
if(unit instanceof Commanderc){
Commanderc c = (Commanderc)unit;
//try to command when missing members
if(c.controlling().size <= unit.type().commandLimit/2){
commandTimer -= Time.delta;
if(commandTimer <= 0){
c.commandNearby(new SquareFormation(), u -> !(u.controller() instanceof FormationAI) && !(u instanceof Commanderc));
commandTimer = commandCooldown;
}
}
}*/
} }
} }

View File

@@ -1186,7 +1186,7 @@ public class Blocks implements ContentList{
requirements(Category.power, with(Items.lead, 100, Items.silicon, 75, Items.phasefabric, 25, Items.plastanium, 75, Items.thorium, 50)); requirements(Category.power, with(Items.lead, 100, Items.silicon, 75, Items.phasefabric, 25, Items.plastanium, 75, Items.thorium, 50));
size = 2; size = 2;
powerProduction = 4.5f; powerProduction = 4.5f;
itemDuration = 60 * 15f; itemDuration = 60 * 18f;
}}; }};
solarPanel = new SolarGenerator("solar-panel"){{ solarPanel = new SolarGenerator("solar-panel"){{

View File

@@ -74,7 +74,7 @@ abstract class CommanderComp implements Entityc, Posc{
void command(Formation formation, Seq<Unit> units){ void command(Formation formation, Seq<Unit> units){
clearCommand(); clearCommand();
float spacing = hitSize * 0.65f; float spacing = hitSize * 0.8f;
minFormationSpeed = type.speed; minFormationSpeed = type.speed;
controlling.addAll(units); controlling.addAll(units);