has_flag(flag) | → boolean | Test whether this item prototype has a certain flag set. |
Test whether this item prototype has a certain flag set. | ||
get_spoil_ticks(quality?) new | → uint | The number of ticks before this item spoils, or |
The number of ticks before this item spoils, or | ||
get_ammo_type(ammo_source_type?) | → AmmoType? | The type of this ammo prototype. |
The type of this ammo prototype. | ||
get_inventory_size_bonus(quality?) new | → uint? | The inventory size bonus for this armor prototype. |
The inventory size bonus for this armor prototype. | ||
get_selection_border_color(selection_mode) new | → Color? | The color used when doing normal selection with this selection tool prototype. |
The color used when doing normal selection with this selection tool prototype. | ||
get_selection_mode_flags(selection_mode) new | → SelectionModeFlags? | Flags that affect which entities will be selected. |
Flags that affect which entities will be selected. | ||
get_cursor_box_type(selection_mode) new | → CursorBoxRenderType? | |
get_entity_filter_mode(selection_mode) new | → PrototypeFilterMode? | The entity filter mode used by this selection tool. |
The entity filter mode used by this selection tool. | ||
get_tile_filter_mode(selection_mode) new | → PrototypeFilterMode? | The tile filter mode used by this selection tool. |
The tile filter mode used by this selection tool. | ||
get_entity_filters(selection_mode) new | → array[LuaEntityPrototype]? | The entity filters used by this selection tool. |
The entity filters used by this selection tool. | ||
get_entity_type_filters(selection_mode) new | → dictionary[string → true ]? | The entity type filters used by this selection tool indexed by entity type. [...] |
The entity type filters used by this selection tool indexed by entity type. [...] | ||
get_tile_filters(selection_mode) new | → array[LuaTilePrototype]? | The tile filters used by this selection tool. |
The tile filters used by this selection tool. | ||
get_durability(quality?) new | → double? | The durability of this tool item prototype. |
The durability of this tool item prototype. | ||
place_result | :: R LuaEntityPrototype? | Prototype of the entity that will be created by placing this item, if any. |
Prototype of the entity that will be created by placing this item, if any. | ||
place_as_equipment_result | :: R LuaEquipmentPrototype? | Prototype of the equipment that will be created by placing this item in an equipment grid, if any. |
Prototype of the equipment that will be created by placing this item in an equipment grid, if any. | ||
place_as_tile_result | :: R PlaceAsTileResult? | The place-as-tile result if one is defined, if any. |
The place-as-tile result if one is defined, if any. | ||
stackable | :: R boolean | Is this item allowed to stack at all? |
Is this item allowed to stack at all? | ||
stack_size | :: R uint | Maximum stack size of the item specified by this prototype. |
Maximum stack size of the item specified by this prototype. | ||
fuel_category | :: R string? | The fuel category, if any. |
The fuel category, if any. | ||
burnt_result | :: R LuaItemPrototype? | The result of burning this item as fuel, if any. |
The result of burning this item as fuel, if any. | ||
fuel_value | :: R float | Fuel value when burned. |
Fuel value when burned. | ||
fuel_acceleration_multiplier | :: R double | The acceleration multiplier when this item is used as fuel in a vehicle. |
The acceleration multiplier when this item is used as fuel in a vehicle. | ||
fuel_top_speed_multiplier | :: R double | The fuel top speed multiplier when this item is used as fuel in a vehicle. |
The fuel top speed multiplier when this item is used as fuel in a vehicle. | ||
fuel_emissions_multiplier | :: R double | The emissions multiplier if this is used as fuel. |
The emissions multiplier if this is used as fuel. | ||
fuel_acceleration_multiplier_quality_bonus new | :: R double | Additional fuel acceleration multiplier per quality level. |
Additional fuel acceleration multiplier per quality level. | ||
fuel_top_speed_multiplier_quality_bonus new | :: R double | Additional fuel top speed multiplier per quality level. |
Additional fuel top speed multiplier per quality level. | ||
flags | :: R ItemPrototypeFlags | The flags for this item prototype. |
The flags for this item prototype. | ||
rocket_launch_products | :: R array[Product] | The results of launching this item in a rocket. |
The results of launching this item in a rocket. | ||
can_be_mod_opened | :: R boolean | If this item can be mod-opened. |
If this item can be mod-opened. | ||
spoil_result new | :: R LuaItemPrototype? | The spoil result of this item, if any |
The spoil result of this item, if any | ||
plant_result new | :: R LuaEntityPrototype? | The result entity when planting this item as a seed. |
The result entity when planting this item as a seed. | ||
spoil_to_trigger_result new | :: R SpoilToTriggerResult? | |
destroyed_by_dropping_trigger new | :: R array[TriggerItem] ? | |
weight new | :: R double | Weight of this item |
Weight of this item | ||
ingredient_to_weight_coefficient new | :: R double | |
fuel_glow_color new | :: R Color? | |
default_import_location new | :: R LuaSpaceLocationPrototype | |
ammo_category new | :: R LuaAmmoCategoryPrototype? | |
magazine_size | :: R float? | Size of full magazine. |
Size of full magazine. | ||
reload_time | :: R float? | Amount of extra time (in ticks) it takes to reload the weapon after depleting the magazine. |
Amount of extra time (in ticks) it takes to reload the weapon after depleting the magazine. | ||
equipment_grid | :: R LuaEquipmentGridPrototype? | The prototype of this armor's equipment grid, if any. |
The prototype of this armor's equipment grid, if any. | ||
resistances | :: R dictionary[string → Resistance] ? | Resistances of this armor item, if any, indexed by damage type name. |
Resistances of this armor item, if any, indexed by damage type name. | ||
collision_box new | :: R BoundingBox? | The collision box used by character entities when wearing this armor. |
The collision box used by character entities when wearing this armor. | ||
drawing_box new | :: R BoundingBox? | The drawing box used by character entities when wearing this armor. |
The drawing box used by character entities when wearing this armor. | ||
provides_flight new | :: R boolean? | If this armor provides flight to character entities when worm. |
If this armor provides flight to character entities when worm. | ||
capsule_action | :: R CapsuleAction? | The capsule action for this capsule item prototype. |
The capsule action for this capsule item prototype. | ||
radius_color new | :: R Color? | |
attack_parameters | :: R AttackParameters? | The gun attack parameters. |
The gun attack parameters. | ||
inventory_size | :: R uint? | The main inventory size for item-with-inventory-prototype. |
The main inventory size for item-with-inventory-prototype. | ||
item_filters changed | :: R array[LuaItemPrototype] ? | |
item_group_filters changed | :: R array[LuaGroup] ? | |
item_subgroup_filters changed | :: R array[LuaGroup] ? | |
filter_mode | :: R "none" or "whitelist" or "blacklist" ? | The filter mode used by this item with inventory. |
The filter mode used by this item with inventory. | ||
localised_filter_message | :: R LocalisedString? | The localised string used when the player attempts to put items into this item with inventory that aren't allowed. |
The localised string used when the player attempts to put items into this item with inventory that aren't allowed. | ||
default_label_color | :: R Color? | The default label color used for this item with label, if any. |
The default label color used for this item with label, if any. | ||
draw_label_for_cursor_render | :: R boolean? | If true, and this item with label has a label it is drawn in place of the normal number when held in the cursor. |
If true, and this item with label has a label it is drawn in place of the normal number when held in the cursor. | ||
speed | :: R float? | The repairing speed if this is a repairing tool. |
The repairing speed if this is a repairing tool. | ||
module_effects | :: R ModuleEffects? | Effects of this module. |
Effects of this module. | ||
category | :: R string? | The name of a LuaModuleCategoryPrototype. [...] |
The name of a LuaModuleCategoryPrototype. [...] | ||
tier | :: R uint? | Tier of the module inside its category. [...] |
Tier of the module inside its category. [...] | ||
requires_beacon_alt_mode new | :: R boolean? | |
beacon_tint new | :: R array[Color] ? | |
rails new | :: R array[LuaEntityPrototype] ? | Prototypes of all rails possible to be used by this rail planner prototype. |
Prototypes of all rails possible to be used by this rail planner prototype. | ||
support new | :: R LuaEntityPrototype? | The rail support used by this rail planner. |
The rail support used by this rail planner. | ||
manual_length_limit new | :: R double? | |
always_include_tiles | :: R boolean? | If tiles area always included when doing selection with this selection tool prototype. |
If tiles area always included when doing selection with this selection tool prototype. | ||
skip_fog_of_war new | :: R boolean? | If this selection tool skips things covered by fog of war. |
If this selection tool skips things covered by fog of war. | ||
entity_filter_slots | :: R uint? | The number of entity filters this deconstruction item has. |
The number of entity filters this deconstruction item has. | ||
tile_filter_slots | :: R uint? | The number of tile filters this deconstruction item has. |
The number of tile filters this deconstruction item has. | ||
durability_description_key | :: R string? | The durability message key used when displaying the durability of this tool. |
The durability message key used when displaying the durability of this tool. | ||
factoriopedia_durability_description_key new | :: R string? | The durability message key used when displaying the durability of this tool in Factoriopedia. |
The durability message key used when displaying the durability of this tool in Factoriopedia. | ||
durability_description_value new | :: R string? | The durability message value used when displaying the durability of this tool. |
The durability message value used when displaying the durability of this tool. | ||
infinite | :: R boolean? | If this tool item has infinite durability. |
If this tool item has infinite durability. | ||
valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] |
type | :: R string | Type of this prototype. |
Type of this prototype. | ||
name | :: R string | Name of this prototype. |
Name of this prototype. | ||
order | :: R string | The string used to alphabetically sort these prototypes. [...] |
The string used to alphabetically sort these prototypes. [...] | ||
localised_name | :: R LocalisedString | |
localised_description | :: R LocalisedString | |
group | :: R LuaGroup | Group of this prototype. |
Group of this prototype. | ||
subgroup | :: R LuaGroup | Subgroup of this prototype. |
Subgroup of this prototype. | ||
hidden | :: R boolean | |
hidden_in_factoriopedia | :: R boolean | |
parameter | :: R boolean |
ammo_source_type | :: "default" or "player" or "turret" or "vehicle" ? | Defaults to |
Defaults to |
"none"
or "whitelist"
or "blacklist"
?