LuaEquipment

An item in a LuaEquipmentGrid, for example one's power armor.

Note: An equipment reference becomes invalid once the equipment is removed or the equipment grid it resides in is destroyed.
class LuaEquipment - sort
name :: string [R] Name of this equipment.
type :: string [R] Type of this equipment.
position :: Position [R] Position of this equipment in the equipment grid.
shape :: table [R] Shape of this equipment.
shield :: double [RW] Current shield value of the equipment.
max_shield :: double [R] Maximum shield value.
max_solar_power :: double [R] Maximum solar power generated.
movement_bonus :: double [R] Movement speed bonus.
generator_power :: double [R] Energy generated per tick.
energy :: double [RW] Current available energy.
max_energy :: double [R] Maximum amount of energy that can be stored in this equipment.
prototype :: LuaEquipmentPrototype [R]
burner :: LuaBurner [R] The burner energy source for this equipment or nil if there isn't one.
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.
name :: string [Read-only]

Name of this equipment.

type :: string [Read-only]

Type of this equipment.

position :: Position [Read-only]

Position of this equipment in the equipment grid.

shape :: table [Read-only]

Shape of this equipment.

Table with the following fields:

shield :: double [Read-Write]

Current shield value of the equipment.

Note: Can't be set higher than LuaEquipment::max_shield.
max_shield :: double [Read-only]

Maximum shield value.

max_solar_power :: double [Read-only]

Maximum solar power generated.

movement_bonus :: double [Read-only]

Movement speed bonus.

generator_power :: double [Read-only]

Energy generated per tick.

energy :: double [Read-Write]

Current available energy.

max_energy :: double [Read-only]

Maximum amount of energy that can be stored in this equipment.

prototype :: LuaEquipmentPrototype [Read-only]

burner :: LuaBurner [Read-only]

The burner energy source for this equipment or nil if there isn't one.