Make timescale accessible to logic (#4503)

This commit is contained in:
Patrick 'Quezler' Mounier
2021-02-02 21:20:36 +01:00
committed by GitHub
parent b05f867800
commit 48ee3d255d
2 changed files with 2 additions and 0 deletions

View File

@@ -1311,6 +1311,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
case health -> health; case health -> health;
case maxHealth -> maxHealth; case maxHealth -> maxHealth;
case efficiency -> efficiency(); case efficiency -> efficiency();
case timescale -> timeScale;
case range -> this instanceof Ranged r ? r.range() / tilesize : 0; case range -> this instanceof Ranged r ? r.range() / tilesize : 0;
case rotation -> rotation; case rotation -> rotation;
case totalItems -> items == null ? 0 : items.total(); case totalItems -> items == null ? 0 : items.total();

View File

@@ -21,6 +21,7 @@ public enum LAccess{
maxHealth, maxHealth,
heat, heat,
efficiency, efficiency,
timescale,
rotation, rotation,
x, x,
y, y,