/tg/ Station 13 - Modules - TypesVar Details - Proc Details

stock_part

Represents the concept of a stock part. One is created for every stock part type for every level. Machines have these inside their component_parts. For example, scanning modules use /datum/stock_part/scanning_module. In machines, you can perform a loop through something like for (var/datum/stock_part/scanning_module/part in component_parts)

Vars

physical_object_base_typeWhat's the base path that this stock part refers to? For example, a tier 2 capacitor will have a physical_object_type of /obj/item/capacitor/tier2, but a physical_object_base_type of /obj/item/capacitor
physical_object_referenceA single instance of the physical object type. Used for icons, should never be moved out.
physical_object_typeWhat object does this stock part refer to?
tierBetter parts have higher tiers

Procs

energy_ratingReturns the energy rating of the stock part given a level. The higher this is, the more power machines with these parts will consume.
nameReturns the name of the physical object

Var Details

physical_object_base_type

What's the base path that this stock part refers to? For example, a tier 2 capacitor will have a physical_object_type of /obj/item/capacitor/tier2, but a physical_object_base_type of /obj/item/capacitor

physical_object_reference

A single instance of the physical object type. Used for icons, should never be moved out.

physical_object_type

What object does this stock part refer to?

tier

Better parts have higher tiers

Proc Details

energy_rating

Returns the energy rating of the stock part given a level. The higher this is, the more power machines with these parts will consume.

name

Returns the name of the physical object