mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-26 15:27:19 +07:00
Made RepairAI only move toward ally buildings
This commit is contained in:
parent
c468bdef6d
commit
aef6ac4335
@ -23,7 +23,7 @@ public class RepairAI extends AIController{
|
||||
}
|
||||
|
||||
if(target != null){
|
||||
if(!target.within(unit, unit.type.range * 0.65f) && target instanceof Building){
|
||||
if(!target.within(unit, unit.type.range * 0.65f) && target instanceof Building b && b.team == unit.team){
|
||||
moveTo(target, unit.type.range * 0.65f);
|
||||
}
|
||||
|
||||
|
@ -1739,7 +1739,7 @@ public class UnitTypes implements ContentList{
|
||||
lifetime = 60f;
|
||||
shootEffect = Fx.shootSmall;
|
||||
smokeEffect = Fx.shootSmallSmoke;
|
||||
tileDamageMultiplier = 0.03f;
|
||||
tileDamageMultiplier = 0.02f;
|
||||
}};
|
||||
}});
|
||||
}};
|
||||
@ -1781,7 +1781,7 @@ public class UnitTypes implements ContentList{
|
||||
lifetime = 60f;
|
||||
shootEffect = Fx.shootSmall;
|
||||
smokeEffect = Fx.shootSmallSmoke;
|
||||
tileDamageMultiplier = 0.03f;
|
||||
tileDamageMultiplier = 0.02f;
|
||||
}};
|
||||
}});
|
||||
}};
|
||||
@ -1821,7 +1821,7 @@ public class UnitTypes implements ContentList{
|
||||
lifetime = 70f;
|
||||
shootEffect = Fx.shootSmall;
|
||||
smokeEffect = Fx.shootSmallSmoke;
|
||||
tileDamageMultiplier = 0.03f;
|
||||
tileDamageMultiplier = 0.02f;
|
||||
homingPower = 0.04f;
|
||||
}};
|
||||
}});
|
||||
|
Loading…
Reference in New Issue
Block a user