1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-21 21:38:29 +03:00

unit boosting sensor (#4738)

This commit is contained in:
liuxilu 2021-02-21 22:20:36 +08:00 committed by GitHub
parent 8257fb5e11
commit ca726d579e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
//case dead -> dead || !isAdded(); //TODO 126
case team -> team.id;
case shooting -> isShooting() ? 1 : 0;
case boosting -> type.canBoost && isFlying() ? 1 : 0;
case range -> range() / tilesize;
case shootX -> World.conv(aimX());
case shootY -> World.conv(aimY());

View File

@ -30,6 +30,7 @@ public enum LAccess{
//dead, //TODO 126
range,
shooting,
boosting,
mineX,
mineY,
mining,