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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 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();

View file

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