Types/ModifierPrototype
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.
- If this is
"inserter-stack-size-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"stack-inserter-capacity-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"laboratory-speed"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-logistic-trash-slots"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"maximum-following-robots-count"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"worker-robot-speed"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"worker-robot-storage"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"ghost-time-to-live"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"turret-attack"
, this modifier is loaded as a Types/TurretAttackModifierPrototype, - If this is
"ammo-damage"
, this modifier is loaded as a Types/AmmoDamageModifierPrototype, - If this is
"give-item"
, this modifier is loaded as a Types/GiveItemModifierPrototype, - If this is
"gun-speed"
, this modifier is loaded as a Types/GunSpeedModifierPrototype, - If this is
"unlock-recipe"
, this modifier is loaded as a Types/UnlockRecipeModifierPrototype, - If this is
"character-crafting-speed"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-mining-speed"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-running-speed"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-build-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-item-drop-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-reach-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-resource-reach-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-item-pickup-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-loot-pickup-distance"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-inventory-slots-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"deconstruction-time-to-live"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"max-failed-attempts-per-tick-per-construction-queue"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"max-successful-attempts-per-tick-per-construction-queue"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"character-health-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"mining-drill-productivity-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"train-braking-force-bonus"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"zoom-to-world-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"zoom-to-world-ghost-building-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"zoom-to-world-blueprint-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"zoom-to-world-deconstruction-planner-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"zoom-to-world-upgrade-planner-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"zoom-to-world-selection-tool-enabled"
, this modifier is loaded as a Types/BoolModifierPrototype, - If this is
"worker-robot-battery"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"laboratory-productivity"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"follower-robot-lifetime"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"artillery-range"
, this modifier is loaded as a Types/SimpleModifierPrototype, - If this is
"nothing"
, this modifier is loaded as a Types/NothingModifierPrototype, - If this is
"character-logistic-requests"
, this modifier is loaded as a Types/BoolModifierPrototype.
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