Home

LuaQualityPrototype

Prototype of a quality.

Parent

Attributes

color

The color of the prototype

level

Level basically specifies the stat-increasing value of this quality level.

next

The next higher level of the quality

next_probability

The probability multiplier of getting the next level of quality.

draw_sprite_by_default

beacon_power_usage_multiplier

mining_drill_resource_drain_multiplier

science_pack_drain_multiplier

default_multiplier

inserter_speed_multiplier

fluid_wagon_capacity_multiplier

inventory_size_multiplier

lab_research_speed_multiplier

crafting_machine_speed_multiplier

crafting_machine_energy_usage_multiplier

logistic_cell_charging_energy_multiplier

tool_durability_multiplier

accumulator_capacity_multiplier

flying_robot_max_energy_multiplier

range_multiplier

equipment_grid_width_bonus

equipment_grid_height_bonus

electric_pole_wire_reach_bonus

electric_pole_supply_area_distance_bonus

beacon_supply_area_distance_bonus

mining_drill_mining_radius_bonus

logistic_cell_charging_station_count_bonus

asteroid_collector_collection_radius_bonus

beacon_module_slots_bonus

crafting_machine_module_slots_bonus

mining_drill_module_slots_bonus

lab_module_slots_bonus

valid

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

object_name

The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.