Files
Bubberstation/code/__DEFINES/power.dm
SkyratBot c38ba89a7e [MIRROR] Change hardcoded defines to use bitflags [MDB IGNORE] (#14285)
* Change hardcoded defines to use bitflags (#67722)

* Change hardcoded defines to use bitflags

Co-authored-by: Tim <timothymtorres@gmail.com>
2022-06-13 06:36:10 -07:00

19 lines
512 B
Plaintext

#define CABLE_LAYER_1 (1<<0)
#define CABLE_LAYER_2 (1<<1)
#define CABLE_LAYER_3 (1<<2)
#define MACHINERY_LAYER_1 1
#define SOLAR_TRACK_OFF 0
#define SOLAR_TRACK_TIMED 1
#define SOLAR_TRACK_AUTO 2
///conversion ratio from joules to watts
#define WATTS / 0.002
///conversion ratio from watts to joules
#define JOULES * 0.002
GLOBAL_VAR_INIT(CHARGELEVEL, 0.001) // Cap for how fast cells charge, as a percentage-per-tick (.001 means cellcharge is capped to 1% per second)
GLOBAL_LIST_EMPTY(powernets)