mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Bugfixes
This commit is contained in:
parent
870f06218b
commit
c772e1fcc6
@ -35,8 +35,10 @@ public class FormationAI extends AIController implements FormationMember{
|
||||
if(leader.isShooting){
|
||||
unit.aimLook(leader.aimX(), leader.aimY());
|
||||
}else{
|
||||
if(!unit.moving()){
|
||||
unit.lookAt(unit.vel.angle());
|
||||
if(!leader.moving() || !unit.type().rotateShooting){
|
||||
if(unit.moving()){
|
||||
unit.lookAt(unit.vel.angle());
|
||||
}
|
||||
}else{
|
||||
unit.lookAt(leader.rotation);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{
|
||||
@ReadOnly transient float range, aimX, aimY;
|
||||
@ReadOnly transient boolean isRotate;
|
||||
boolean isShooting;
|
||||
int ammo;
|
||||
float ammo;
|
||||
|
||||
void setWeaponRotation(float rotation){
|
||||
for(WeaponMount mount : mounts){
|
||||
|
@ -266,10 +266,10 @@ public class TypeIO{
|
||||
//no real unit controller state is written, only the type
|
||||
if(control instanceof Player){
|
||||
write.b(0);
|
||||
write.i(((Player)control).id());
|
||||
write.i(((Player)control).id);
|
||||
}else if(control instanceof FormationAI){
|
||||
write.b(1);
|
||||
write.i(((FormationAI)control).leader.id());
|
||||
write.i(((FormationAI)control).leader.id);
|
||||
}else{
|
||||
write.b(2);
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ public class Mods implements Loadable{
|
||||
d.button("$details", Icon.downOpen, Styles.transt, () -> {
|
||||
new Dialog(""){{
|
||||
setFillParent(true);
|
||||
cont.pane(e -> e.add(c.minfo.error)).grow();
|
||||
cont.pane(e -> e.add(c.minfo.error).wrap().grow()).grow();
|
||||
cont.row();
|
||||
cont.button("$ok", Icon.left, this::hide).size(240f, 60f);
|
||||
}}.show();
|
||||
|
@ -41,6 +41,11 @@ public class LiquidTurret extends Turret{
|
||||
return entity.liquids.total() > 0.001f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(Building entity){
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void display(BlockStats stats){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user