mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
More unit progress
This commit is contained in:
parent
d7e432f730
commit
9cb4645b11
30 changed files with 106 additions and 221 deletions
|
|
@ -112,6 +112,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
Payloadc pay = (Payloadc)unit;
|
||||
|
||||
if(target.isAI() && target.isGrounded() && pay.payloads().size < unit.type().payloadCapacity
|
||||
&& target.mass() < unit.mass()
|
||||
&& target.within(unit, unit.type().hitsize * 1.5f)){
|
||||
pay.pickup(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue