You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
357 B
12 lines
357 B
REM A simple program to shut down reactors when their health of cryofluid amount dips too low
|
|
LET reactor = reactor1
|
|
|
|
LET enoughHealth = reactor.health >= reactor.maxHealth / 2
|
|
LET enoughCryofluid = reactor.cryofluid >= reactor.liquidCapacity
|
|
|
|
IF NOT(enoughHealth AND enoughCryofluid) THEN
|
|
reactor.enabled = false
|
|
ELSE
|
|
reactor.enabled = true
|
|
END IF
|