mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 02:13:06 +00:00
* Change hardcoded defines to use bitflags (#67722) * Change hardcoded defines to use bitflags Co-authored-by: Tim <timothymtorres@gmail.com>
19 lines
512 B
Plaintext
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)
|