Types/ModifierPrototype

From Official Factorio Wiki
Revision as of 15:40, 26 March 2021 by Bilka (talk | contribs) (Created page with "The effect that is applied when a Prototype/Technology is researched. It is a Types/table that contains at least the field <code>type</code>. A modifier prototype may...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The effect that is applied when a Prototype/Technology is researched. It is a Types/table that contains at least the field type. A modifier prototype may also have other fields depending on the type, because it is loaded as an extension of this type.

Mandatory properties

type

Type: Types/string

One of the listed strings.

Optional properties

icons, icon, icon_size (IconSpecification)

Type: Types/IconSpecification

infer_icon

Type: Types/bool

If set to false, use the icon from the utility sprites for this technology effect icon.

List of modifier types for which infer_icon = true does something[1]:

  • InserterStackSizeBonus
  • StackInserterCapacityBonus
  • WorkerRobotsSpeed
  • WorkerRobotsStorage
  • WorkerRobotsBattery
  • MiningDrillProductivityBonus
  • TrainBrakingForceBonus
  • LaboratorySpeed
  • LaboratoryProductivity
  • ArtilleryRange
  • MaximumFollowingRobotsCount
  • FollowingRobotsLifetime
  • TurretAttack
  • AmmoDamage
  • GunSpeed

use_icon_overlay_constant

Type: Types/bool

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

Defaults for the icons

Default: infer_icon = false, use_icon_overlay_constant = true:

  • CharacterMiningSpeed
  • CharacterInventorySlotsBonus
  • CharacterLogisticTrashSlots
  • ArtilleryRange
  • MaximumFollowingRobotsCount
  • GhostTimeToLive
  • MiningDrillProductivityBonus
  • CharacterCraftingSpeed
  • CharacterRunningSpeed
  • CharacterBuildDistance
  • CharacterItemDropDistance
  • CharacterReachDistance
  • CharacterResourceReachDistance
  • CharacterItemPickupDistance
  • CharacterLootPickupDistance
  • CharacterHealthBonus
  • ZoomToWorldGhostBuildingEnabled
  • ZoomToWorldBlueprintEnabled
  • ZoomToWorldDeconstructionPlannerEnabled
  • ZoomToWorldUpgradePlannerEnabled
  • ZoomToWorldSelectionToolEnabled
  • DeconstructionTimeToLive
  • MaxFailedAttemptsPerTickPerConstructionQueue
  • MaxSuccessfulAttempsPerTickPerConstructionQueue
  • InserterStackSizeBonus
  • StackInserterCapacityBonus

Default: infer_icon = true, use_icon_overlay_constant = true:

  • LaboratorySpeed
  • AmmoDamage
  • TurretAttack
  • GunSpeed
  • FollowingRobotsLifetime
  • TrainBrakingForceBonus
  • WorkerRobotsSpeed
  • WorkerRobotsStorage
  • WorkerRobotsBattery
  • LaboratoryProductivity

Default: infer_icon = false, use_icon_overlay_constant = false:

  • UnlockRecipe
  • GiveItem
  • CharacterLogisticRequests
  • ZoomToWorldEnabled
  • Nothing
  • CharacterAdditionalMiningCategories