SHOW:
|
|
- or go back to the newest paste.
1 | reactor = peripheral.find("draconic_reactor") | |
2 | gate = peripheral.find("flux_gate") | |
3 | gate.setOverrideEnabled(true) | |
4 | ||
5 | while true do | |
6 | term.clear() | |
7 | term.setCursorPos(1,1) | |
8 | info = reactor.getReactorInfo() | |
9 | ||
10 | - | drainRate = info["fieldDrainRate"] |
10 | + | if (info["status"] == "online") then |
11 | - | gate.setFlowOverride(drainRate * 1.4) |
11 | + | drainRate = info["fieldDrainRate"] |
12 | - | print(drainRate) |
12 | + | gate.setFlowOverride(drainRate * 1.4) |
13 | - | print(drainRate * 1.4) |
13 | + | print(drainRate) |
14 | print(drainRate * 1.4) | |
15 | ||
16 | end | |
17 | ||
18 | ||
19 | os.sleep(0.2) | |
20 | end |