Home

QualityPrototype

One quality step. Its effects are specified by the level and the various multiplier and bonus properties. Properties ending in _multiplier are applied multiplicatively to their base property, properties ending in _bonus are applied additively.

Parent

Properties

draw_sprite_by_default

color

level

Requires Space Age to use level greater than 0.

next

next_probability

The quality effect of the module is multiplied by this. For example, if a module's quality effect is 0.2 and the current quality's next_probability is 0.1, then the chance to get the next quality item is 2%.

Must be in range [0, 1.0].

icons

Can't be an empty array.

icon

Path to the icon file.

Only loaded, and mandatory if icons is not defined.

icon_size

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

Must be >= 0.

mining_drill_resource_drain_multiplier

Must be in range [0, 1].

science_pack_drain_multiplier

Must be in range [0, 1].

Only affects labs with LabPrototype::uses_quality_drain_modifier set.

name

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.

default_multiplier

Must be >= 0.01.

inserter_speed_multiplier

Must be >= 0.01.

fluid_wagon_capacity_multiplier

Must be >= 0.01.

Only affects fluid wagons with FluidWagonPrototype::quality_affects_capacity set.

inventory_size_multiplier

Must be >= 0.01.

lab_research_speed_multiplier

Must be >= 0.01.

crafting_machine_speed_multiplier

Must be >= 0.01.

Will be ignored by crafting machines with CraftingMachinePrototype::crafting_speed_quality_multiplier set.

crafting_machine_energy_usage_multiplier

Must be >= 0.01.

Only affects crafting machines with CraftingMachinePrototype::quality_affects_energy_usage set.

Will be ignored by crafting machines with CraftingMachinePrototype::energy_usage_quality_multiplier set.

logistic_cell_charging_energy_multiplier

Must be >= 0.01.

tool_durability_multiplier

Must be >= 0.01.

Affects the durability of tool items like science packs, repair tools and armor.

accumulator_capacity_multiplier

Must be >= 0.01.

flying_robot_max_energy_multiplier

Must be >= 0.01.

range_multiplier

Must be within [1, 3].

Affects the range of attack parameters, e.g. those used by combat robots, units, guns and turrets.

asteroid_collector_collection_radius_bonus

Must be >= 0.

Performance warning: the navigation has to pre-calculate ranges for the highest tier collector possible, so you should keep this collection radius within reasonable values.

equipment_grid_width_bonus

equipment_grid_height_bonus

electric_pole_wire_reach_bonus

Must be >= 0.

electric_pole_supply_area_distance_bonus

Must be >= 0.

beacon_supply_area_distance_bonus

Only affects beacons with BeaconPrototype::quality_affects_supply_area set.

Must be >= 0 and <= 64.

mining_drill_mining_radius_bonus

Only affects mining drills with MiningDrillPrototype::quality_affects_mining_radius set.

Must be >= 0.

logistic_cell_charging_station_count_bonus

beacon_module_slots_bonus

Only affects beacons with BeaconPrototype::quality_affects_module_slots set.

crafting_machine_module_slots_bonus

Only affects crafting machines with CraftingMachinePrototype::quality_affects_module_slots set.

Will be ignored by crafting machines with CraftingMachinePrototype::module_slots_quality_bonus set.

mining_drill_module_slots_bonus

Only affects mining drills with MiningDrillPrototype::quality_affects_module_slots set.

lab_module_slots_bonus

Only affects labs with LabPrototype::quality_affects_module_slots set.