| | |
| | | end |
| | | |
| | | -- Appliances: |
| | | -- has_supply: pos of supply node if the appliance has a power radiator near with sufficient power for the demand else "" |
| | | -- has_supply: pos of supply node if the appliance has a power radiator near |
| | | -- with sufficient power for the demand else "" |
| | | -- EU_demand: The power demand of the device. |
| | | -- EU_charge: Actual use. set to EU_demand if active==1 |
| | | -- active: set to 1 if the device is on |
| | |
| | | -- The supply radius |
| | | local rad = power_radius |
| | | |
| | | local meta1 = nil |
| | | local pos1 = {} |
| | | local used_charge = 0 |
| | | |
| | | -- Index all nodes within supply range |