unit boosting sensor (#4738)
This commit is contained in:
@@ -131,6 +131,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
//case dead -> dead || !isAdded(); //TODO 126
|
//case dead -> dead || !isAdded(); //TODO 126
|
||||||
case team -> team.id;
|
case team -> team.id;
|
||||||
case shooting -> isShooting() ? 1 : 0;
|
case shooting -> isShooting() ? 1 : 0;
|
||||||
|
case boosting -> type.canBoost && isFlying() ? 1 : 0;
|
||||||
case range -> range() / tilesize;
|
case range -> range() / tilesize;
|
||||||
case shootX -> World.conv(aimX());
|
case shootX -> World.conv(aimX());
|
||||||
case shootY -> World.conv(aimY());
|
case shootY -> World.conv(aimY());
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public enum LAccess{
|
|||||||
//dead, //TODO 126
|
//dead, //TODO 126
|
||||||
range,
|
range,
|
||||||
shooting,
|
shooting,
|
||||||
|
boosting,
|
||||||
mineX,
|
mineX,
|
||||||
mineY,
|
mineY,
|
||||||
mining,
|
mining,
|
||||||
|
|||||||
Reference in New Issue
Block a user