An equipment grid is for example the inside of a power armor.
take{position = …, equipment = …, by_player = …} → SimpleItemStack | Remove an equipment from the grid. |
take_all(by_player) → dictionary[string → uint] | Remove all equipment from the grid. |
clear(by_player) | Clear all equipment from the grid, removing it without actually returning it. |
put{name = …, position = …, by_player = …} → 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[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. |
inhibit_movement_bonus :: boolean [RW] | True if this movement bonus equipment is turned off, otherwise false. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
Remove an equipment from the grid.
nil
if no equipment was removed.Remove all equipment from the grid.
Clear all equipment from the grid, removing it without actually returning it.
Insert an equipment into the grid.
nil
if the equipment could not be added.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.
True if this movement bonus equipment is turned off, otherwise false.