mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 07:50:54 -07:00
add @commanded for units (#3870)
This commit is contained in:
parent
b12cac7b30
commit
8bc349b68c
2 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||
case mineY -> mining() ? mineTile.y : -1;
|
||||
case flag -> flag;
|
||||
case controlled -> controller instanceof LogicAI || controller instanceof Player ? 1 : 0;
|
||||
case commanded -> controller instanceof FormationAI ? 1 : 0;
|
||||
case payloadCount -> self() instanceof Payloadc pay ? pay.payloads().size : 0;
|
||||
default -> 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public enum LAccess{
|
|||
type,
|
||||
flag,
|
||||
controlled,
|
||||
commanded,
|
||||
name,
|
||||
config,
|
||||
payloadCount,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue