Types/ModifierPrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(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...")
 
m (Removed a mention of an invalid type: https://forums.factorio.com/104088)
 
(2 intermediate revisions by one other user not shown)
Line 58: Line 58:
'''Type''': [[Types/bool]]
'''Type''': [[Types/bool]]


If set to false, use the icon from the utility sprites for this technology effect icon.
If set to false, use the icon from the [[Prototype/UtilitySprites|utility sprites]] for this technology effect icon.


List of modifier types for which <code>infer_icon</code> = true does something<sup>[https://forums.factorio.com/91975]</sup>:
List of modifier types for which <code>infer_icon</code> = true does something<sup>[https://forums.factorio.com/91975]</sup>:
* InserterStackSizeBonus
* "inserter-stack-size-bonus"
* StackInserterCapacityBonus
* "stack-inserter-capacity-bonus"
* WorkerRobotsSpeed
* "worker-robot-speed"
* WorkerRobotsStorage
* "worker-robot-storage"
* WorkerRobotsBattery
* "worker-robot-battery"
* MiningDrillProductivityBonus
* "mining-drill-productivity-bonus"
* TrainBrakingForceBonus
* "train-braking-force-bonus"
* LaboratorySpeed
* "laboratory-speed"
* LaboratoryProductivity
* "laboratory-productivity"
* ArtilleryRange
* "artillery-range"
* MaximumFollowingRobotsCount
* "maximum-following-robots-count"
* FollowingRobotsLifetime
* "follower-robot-lifetime"
* TurretAttack
* "turret-attack"
* AmmoDamage
* "ammo-damage"
* GunSpeed
* "gun-speed"


=== use_icon_overlay_constant ===
=== use_icon_overlay_constant ===
Line 85: Line 85:


Default: <code>infer_icon</code> = false, <code>use_icon_overlay_constant</code> = true:
Default: <code>infer_icon</code> = false, <code>use_icon_overlay_constant</code> = true:
* CharacterMiningSpeed
* "character-mining-speed"
* CharacterInventorySlotsBonus
* "character-inventory-slots-bonus"
* CharacterLogisticTrashSlots
* "character-logistic-trash-slots"
* ArtilleryRange
* "artillery-range"
* MaximumFollowingRobotsCount
* "maximum-following-robots-count"
* GhostTimeToLive
* "ghost-time-to-live"
* MiningDrillProductivityBonus
* "mining-drill-productivity-bonus"
* CharacterCraftingSpeed
* "character-crafting-speed"
* CharacterRunningSpeed
* "character-running-speed"
* CharacterBuildDistance
* "character-build-distance"
* CharacterItemDropDistance
* "character-item-drop-distance"
* CharacterReachDistance
* "character-reach-distance"
* CharacterResourceReachDistance
* "character-resource-reach-distance"
* CharacterItemPickupDistance
* "character-item-pickup-distance"
* CharacterLootPickupDistance
* "character-loot-pickup-distance"
* CharacterHealthBonus
* "character-health-bonus"
* ZoomToWorldGhostBuildingEnabled
* "zoom-to-world-ghost-building-enabled"
* ZoomToWorldBlueprintEnabled
* "zoom-to-world-blueprint-enabled"
* ZoomToWorldDeconstructionPlannerEnabled
* "zoom-to-world-deconstruction-planner-enabled"
* ZoomToWorldUpgradePlannerEnabled
* "zoom-to-world-upgrade-planner-enabled"
* ZoomToWorldSelectionToolEnabled
* "zoom-to-world-selection-tool-enabled"
* DeconstructionTimeToLive
* "deconstruction-time-to-live"
* MaxFailedAttemptsPerTickPerConstructionQueue
* "max-failed-attempts-per-tick-per-construction-queue"
* MaxSuccessfulAttempsPerTickPerConstructionQueue
* "max-successful-attempts-per-tick-per-construction-queue"
* InserterStackSizeBonus
* "inserter-stack-size-bonus"
* StackInserterCapacityBonus
* "stack-inserter-capacity-bonus"
    
    
Default: <code>infer_icon</code> = true, <code>use_icon_overlay_constant</code> = true:  
Default: <code>infer_icon</code> = true, <code>use_icon_overlay_constant</code> = true:  
* LaboratorySpeed
* "laboratory-speed"
* AmmoDamage
* "ammo-damage"
* TurretAttack
* "turret-attack"
* GunSpeed
* "gun-speed"
* FollowingRobotsLifetime
* "follower-robot-lifetime"
* TrainBrakingForceBonus
* "train-braking-force-bonus"
* WorkerRobotsSpeed
* "worker-robot-speed"
* WorkerRobotsStorage
* "worker-robot-storage"
* WorkerRobotsBattery
* "worker-robot-battery"
* LaboratoryProductivity
* "laboratory-productivity"


Default: <code>infer_icon</code> = false, <code>use_icon_overlay_constant</code> = false:  
Default: <code>infer_icon</code> = false, <code>use_icon_overlay_constant</code> = false:  
* UnlockRecipe
* "unlock-recipe"
* GiveItem
* "give-item"
* CharacterLogisticRequests
* "character-logistic-requests"
* ZoomToWorldEnabled
* "zoom-to-world-enabled"
* Nothing
* "nothing"
* CharacterAdditionalMiningCategories

Latest revision as of 12:08, 28 November 2022

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]:

  • "inserter-stack-size-bonus"
  • "stack-inserter-capacity-bonus"
  • "worker-robot-speed"
  • "worker-robot-storage"
  • "worker-robot-battery"
  • "mining-drill-productivity-bonus"
  • "train-braking-force-bonus"
  • "laboratory-speed"
  • "laboratory-productivity"
  • "artillery-range"
  • "maximum-following-robots-count"
  • "follower-robot-lifetime"
  • "turret-attack"
  • "ammo-damage"
  • "gun-speed"

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:

  • "character-mining-speed"
  • "character-inventory-slots-bonus"
  • "character-logistic-trash-slots"
  • "artillery-range"
  • "maximum-following-robots-count"
  • "ghost-time-to-live"
  • "mining-drill-productivity-bonus"
  • "character-crafting-speed"
  • "character-running-speed"
  • "character-build-distance"
  • "character-item-drop-distance"
  • "character-reach-distance"
  • "character-resource-reach-distance"
  • "character-item-pickup-distance"
  • "character-loot-pickup-distance"
  • "character-health-bonus"
  • "zoom-to-world-ghost-building-enabled"
  • "zoom-to-world-blueprint-enabled"
  • "zoom-to-world-deconstruction-planner-enabled"
  • "zoom-to-world-upgrade-planner-enabled"
  • "zoom-to-world-selection-tool-enabled"
  • "deconstruction-time-to-live"
  • "max-failed-attempts-per-tick-per-construction-queue"
  • "max-successful-attempts-per-tick-per-construction-queue"
  • "inserter-stack-size-bonus"
  • "stack-inserter-capacity-bonus"

Default: infer_icon = true, use_icon_overlay_constant = true:

  • "laboratory-speed"
  • "ammo-damage"
  • "turret-attack"
  • "gun-speed"
  • "follower-robot-lifetime"
  • "train-braking-force-bonus"
  • "worker-robot-speed"
  • "worker-robot-storage"
  • "worker-robot-battery"
  • "laboratory-productivity"

Default: infer_icon = false, use_icon_overlay_constant = false:

  • "unlock-recipe"
  • "give-item"
  • "character-logistic-requests"
  • "zoom-to-world-enabled"
  • "nothing"