Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# GunSpeedModifier - Prototype Docs

## GunSpeedModifier :: struct

Inherits from BaseModifier

## Properties

- default
- sorted

type | :: `"gun-speed"` |
infer_icon optional | :: boolean | If set to `false`, use the icon from UtilitySprites for this technology effect icon.
If set to `false`, use the icon from UtilitySprites for this technology effect icon.
use_icon_overlay_constant optional | :: boolean | If `false`, do not draw the small "constant" icon over the technology effect icon.
If `false`, do not draw the small "constant" icon over the technology effect icon.
ammo_category | :: AmmoCategoryID | Name of the AmmoCategory that is affected.
Name of the AmmoCategory that is affected.
modifier | :: double | Modification value, which will be added to the current gun speed modifier upon researching.
Modification value, which will be added to the current gun speed modifier upon researching.

Inherited from BaseModifier

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. [...]
hidden optional | :: boolean |

ammo_category | :: AmmoCategoryID | Name of the AmmoCategory that is affected.
Name of the AmmoCategory that is affected.
modifier | :: double | Modification value, which will be added to the current gun speed modifier upon researching.
Modification value, which will be added to the current gun speed modifier upon researching.
type | :: `"gun-speed"` |
infer_icon optional | :: boolean | If set to `false`, use the icon from UtilitySprites for this technology effect icon.
If set to `false`, use the icon from UtilitySprites for this technology effect icon.
use_icon_overlay_constant optional | :: boolean | If `false`, do not draw the small "constant" icon over the technology effect icon.
If `false`, do not draw the small "constant" icon over the technology effect icon.

Inherited from BaseModifier

hidden optional | :: boolean |
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.

## Properties

### type :: `"gun-speed"`

### infer_icon :: boolean optional

Default: `true`

If set to `false`, use the icon from UtilitySprites for this technology effect icon.

### use_icon_overlay_constant :: boolean optional

Default: `true`

If `false`, do not draw the small "constant" icon over the technology effect icon.

### ammo_category :: AmmoCategoryID

Name of the AmmoCategory that is affected.

### modifier :: double

Modification value, which will be added to the current gun speed modifier upon researching.

Type used in

- Modifier