mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
Make timescale accessible to logic (#4503)
This commit is contained in:
parent
b05f867800
commit
48ee3d255d
2 changed files with 2 additions and 0 deletions
|
|
@ -1311,6 +1311,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||
case health -> health;
|
||||
case maxHealth -> maxHealth;
|
||||
case efficiency -> efficiency();
|
||||
case timescale -> timeScale;
|
||||
case range -> this instanceof Ranged r ? r.range() / tilesize : 0;
|
||||
case rotation -> rotation;
|
||||
case totalItems -> items == null ? 0 : items.total();
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ public enum LAccess{
|
|||
maxHealth,
|
||||
heat,
|
||||
efficiency,
|
||||
timescale,
|
||||
rotation,
|
||||
x,
|
||||
y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue