take{position=…, equipment=…} → SimpleItemStack | Remove an equipment from the grid. |
take_all() → dictionary string → uint | Remove all equipment from the grid. |
clear() | Clear all equipment from the grid. |
put{name=…, position=…} → LuaEquipment | Insert an equipment into the grid. |
can_move{equipment=…, position=…} → boolean | Check whether moving an equipment would succeed. |
move{equipment=…, position=…} → boolean | Move an equipment within this grid. |
get(position) → LuaEquipment | Find equipment in the Equipment Grid based off a position. |
get_contents() → dictionary string → uint | Get counts of all equipment in this grid. |
prototype :: LuaEquipmentGridPrototype [R] | |
width :: uint [R] | Width of the equipment grid. |
height :: uint [R] | Height of the equipment grid. |
equipment :: array of LuaEquipment [R] | All the equipment in this grid. |
generator_energy :: double [R] | Total energy per tick generated by the equipment inside this grid. |
max_solar_energy :: double [R] | Maximum energy per tick that can be created by any solar panels in the equipment grid. |
available_in_batteries :: double [R] | The total energy stored in all batteries in the equipment grid. |
battery_capacity :: double [R] | Total energy storage capacity of all batteries in the equipment grid. |
shield :: float [R] | The amount of shields this equipment grid has. |
max_shield :: float [R] | The maximum amount of shields this equipment grid has. |
valid :: boolean [R] | Is this object valid? |
help() → string | All methods, and properties that this object supports. |
An equipment grid is the inside of a power armour.
Remove an equipment from the grid.
position
or equipment
must be specified.nil
if no equipment was removed.Remove all equipment from the grid.
Clear all equipment from the grid. I.e. remove it without actually returning it.
Check whether moving an equipment would succeed.
Move an equipment within this grid.
true
if the equipment was successfully moved.Find equipment in the Equipment Grid based off a position.
nil
if equipment could not be found at the given position.Get counts of all equipment in this grid.
Width of the equipment grid.
Height of the equipment grid.
All the equipment in this grid.
Total energy per tick generated by the equipment inside this grid.
Maximum energy per tick that can be created by any solar panels in the equipment grid. Actual generated energy varies depending on the daylight levels.
The total energy stored in all batteries in the equipment grid.
Total energy storage capacity of all batteries in the equipment grid.
The amount of shields this equipment grid has.
The maximum amount of shields this equipment grid has.