Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## QualityPrototype 'quality' new

Prototype limited to 255 total instances.

Inherits from Prototype « PrototypeBase

## Properties

- default
- sorted

draw_sprite_by_default optional | :: bool |
color | :: Color |
level | :: uint32 | Requires Space Age to use level greater than `0`.
Requires Space Age to use level greater than `0`.
next optional | :: QualityID |
next_probability optional | :: double | Must be in range [0, 1.0].
Must be in range [0, 1.0].
icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]
beacon_power_usage_multiplier optional | :: float | Must be >= 0.
Must be >= 0.
mining_drill_resource_drain_multiplier optional | :: float | Must be in range `[0, 1]`.
Must be in range `[0, 1]`.
science_pack_drain_multiplier optional | :: float | Must be in range `[0, 1]`.
Must be in range `[0, 1]`.

Inherited from Prototype

factoriopedia_alternative optional | :: string | The ID type corresponding to the prototype that inherits from this. [...]
The ID type corresponding to the prototype that inherits from this. [...]

Inherited from PrototypeBase

type | :: string | Specifies the kind of prototype this is. [...]
Specifies the kind of prototype this is. [...]
name[overridden] | :: string | Unique textual identification of the prototype. [...]
Unique textual identification of the prototype. [...]
order optional | :: Order | Used to order prototypes in inventory, recipes and GUIs. [...]
Used to order prototypes in inventory, recipes and GUIs. [...]
localised_name optional | :: LocalisedString | Overwrites the name set in the locale file. [...]
Overwrites the name set in the locale file. [...]
localised_description optional | :: LocalisedString | Overwrites the description set in the locale file. [...]
Overwrites the description set in the locale file. [...]
factoriopedia_description new optional | :: LocalisedString | Provides additional description used in factoriopedia.
Provides additional description used in factoriopedia.
subgroup new optional | :: ItemSubGroupID | The name of an ItemSubGroup.
The name of an ItemSubGroup.
hidden new optional | :: bool |
hidden_in_factoriopedia new optional | :: bool |
parameter new optional | :: bool | Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.
Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.
factoriopedia_simulation new optional | :: SimulationDefinition | The simulation shown when looking at this prototype in the Factoriopedia GUI.
The simulation shown when looking at this prototype in the Factoriopedia GUI.

color | :: Color |
level | :: uint32 | Requires Space Age to use level greater than `0`.
Requires Space Age to use level greater than `0`.
beacon_power_usage_multiplier optional | :: float | Must be >= 0.
Must be >= 0.
draw_sprite_by_default optional | :: bool |
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]
icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.
mining_drill_resource_drain_multiplier optional | :: float | Must be in range `[0, 1]`.
Must be in range `[0, 1]`.
next optional | :: QualityID |
next_probability optional | :: double | Must be in range [0, 1.0].
Must be in range [0, 1.0].
science_pack_drain_multiplier optional | :: float | Must be in range `[0, 1]`.
Must be in range `[0, 1]`.

Inherited from Prototype

factoriopedia_alternative optional | :: string | The ID type corresponding to the prototype that inherits from this. [...]
The ID type corresponding to the prototype that inherits from this. [...]

Inherited from PrototypeBase

name[overridden] | :: string | Unique textual identification of the prototype. [...]
Unique textual identification of the prototype. [...]
type | :: string | Specifies the kind of prototype this is. [...]
Specifies the kind of prototype this is. [...]
factoriopedia_description new optional | :: LocalisedString | Provides additional description used in factoriopedia.
Provides additional description used in factoriopedia.
factoriopedia_simulation new optional | :: SimulationDefinition | The simulation shown when looking at this prototype in the Factoriopedia GUI.
The simulation shown when looking at this prototype in the Factoriopedia GUI.
hidden new optional | :: bool |
hidden_in_factoriopedia new optional | :: bool |
localised_description optional | :: LocalisedString | Overwrites the description set in the locale file. [...]
Overwrites the description set in the locale file. [...]
localised_name optional | :: LocalisedString | Overwrites the name set in the locale file. [...]
Overwrites the name set in the locale file. [...]
order optional | :: Order | Used to order prototypes in inventory, recipes and GUIs. [...]
Used to order prototypes in inventory, recipes and GUIs. [...]
parameter new optional | :: bool | Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.
Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.
subgroup new optional | :: ItemSubGroupID | The name of an ItemSubGroup.
The name of an ItemSubGroup.

## Properties

### draw_sprite_by_default :: bool optional

Default: `true`

### color :: Color

### level :: uint32

Requires Space Age to use level greater than `0`.

### next :: QualityID optional

### next_probability :: double optional

Default: `0`

Must be in range [0, 1.0].

### icons :: array[IconData] optional

Can't be an empty array.

### icon :: FileName optional

Path to the icon file.

Mandatory if `icons` is not defined.

### icon_size :: SpriteSizeType optional

Default: `64`

The size of the square icon, in pixels. E.g. `32` for a 32px by 32px icon. Must be larger than `0`.

Only loaded if `icons` is not defined.

### beacon_power_usage_multiplier :: float optional

Default: `1`

Must be >= 0.

### mining_drill_resource_drain_multiplier :: float optional

Default: `1`

Must be in range `[0, 1]`.

### science_pack_drain_multiplier :: float optional

Default: `1`

Must be in range `[0, 1]`.

## Overridden Properties

### name :: string

Unique textual identification of the prototype. May only contain alphanumeric characters, dashes and underscores. May not exceed a length of 200 characters.

Requires Space Age to create prototypes with name other than `normal` or `quality-unknown`.